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