Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
T
Tor
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,066
    • Issues 1,066
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • The Tor Project
  • Core
  • Tor
  • Issues
  • #27532

Closed
Open
Opened Sep 07, 2018 by teor@teor

Bug: tor_tls_context_new: Assertion dh failed

I get an assertion failure on macOS 10.13:

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ brew list --versions | grep openssl
openssl 1.0.2o_2

(Yes, gcc is an alias for clang on macOS by default.)

Our macOS CI passes with:

$ gcc --version
...
Target: x86_64-apple-darwin17.4.0
...
$ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl; fi
Warning: openssl 1.0.2p is already installed and up-to-date
To reinstall 1.0.2p, run `brew reinstall openssl`

https://travis-ci.org/teor2345/tor/jobs/425576549#L1132

Have we broken compatibility with 1.0.2o?

I've done a make clean, so it's probably not my machine.

Here is the tor log:

$ /Users/base/tor-master/build-c/src/app/tor --ignore-missing-torrc -f /Users/base/chutney/net/nodes/000a/torrc --list-fingerprint --orport 1 --datadirectory /Users/base/chutney/net/nodes/000a
Sep 06 07:32:14.174 [notice] Tor 0.3.5.0-alpha-dev (git-22e24031452d5785) running on Darwin with Libevent 2.1.8-stable, OpenSSL 1.0.2o, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.5.
...
Sep 06 07:32:14.176 [notice] Configuration file "/Users/base/chutney/net/nodes/000a/torrc" not present, using reasonable defaults.
...
Sep 06 07:27:13.545 [err] tor_assertion_failed_: Bug: ../src/lib/tls/tortls_openssl.c:632: tor_tls_context_new: Assertion dh failed; aborting. (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug: Assertion dh failed in tor_tls_context_new at ../src/lib/tls/tortls_openssl.c:632. Stack trace: (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     0   tor                                 0x000000010be5572c log_backtrace_impl + 76 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     1   tor                                 0x000000010be45bd8 tor_assertion_failed_ + 392 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     2   tor                                 0x000000010bd7454e tor_tls_context_new + 4190 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     3   tor                                 0x000000010bd7050c tor_tls_context_init + 156 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     4   tor                                 0x000000010bc8742f init_keys + 2191 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     5   tor                                 0x000000010b8e6da6 tor_run_main + 1734 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     6   tor                                 0x000000010ba48721 tor_main + 161 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     7   tor                                 0x000000010b842bdb main + 27 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     8   libdyld.dylib                       0x00007fff54fbe015 start + 1 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Sep 06 07:27:13.547 [err] Bug:     9   ???                                 0x0000000000000009 0x0 + 9 (on Tor 0.3.5.0-alpha-dev 22e24031452d5785)
Abort trap: 6
Exit 134
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.3.5.x-final
Milestone
Tor: 0.3.5.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: tpo/core/tor#27532