Opened 2 years ago

Last modified 2 years ago

#24738 needs_information defect

Abort trap: 6 after installation Mac OS 10.13.1

Reported by: lL__ Owned by:
Priority: Very High Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor: unspecified
Severity: Normal Keywords: tor, error, abort, trap
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I want to install Tor from source for Mac OS 10.13.1.
I downloaded tor-0.3.19 from your site. (I also tried these steps with tor-0.3.2.8-rc, tor-0.2.8.17, tor-0.2.5.14, tor-0.2.9.13, loaded from here https://dist.torproject.org/)
I did:
1) ./configure && make
2) make install
No errors appeared.
After that I tried to execute tor by typing tor in terminal.

I got:

Dec 24 21:20:54.192 [notice] Tor 0.3.1.9 (git-727d3f1b5e6eeda7) running on Darwin with Libevent 2.0.22-stable, OpenSSL LibreSSL 2.2.7, Zlib 1.2.11, Liblzma 5.2.3, and Libzstd N/A.
Dec 24 21:20:54.192 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Dec 24 21:20:54.193 [notice] Read configuration file "/usr/local/etc/tor/torrc".
Dec 24 21:20:54.198 [warn] Warning from libevent: kq_init: detected broken kqueue; not using.: Invalid argument
Dec 24 21:20:54.199 [notice] Opening Socks listener on 127.0.0.1:9050
Dec 24 21:20:54.000 [notice] Parsing GEOIP IPv4 file /usr/local/share/tor/geoip.
Dec 24 21:20:54.000 [notice] Parsing GEOIP IPv6 file /usr/local/share/tor/geoip6.
Dec 24 21:20:54.000 [notice] We were built to run on a 64-bit CPU, with OpenSSL 1.0.1 or later, but with a version of OpenSSL that apparently lacks accelerated support for the NIST P-224 and P-256 groups. Building openssl with such support (using the enable-ec_nistp_64_gcc_128 option when configuring it) would make ECDH much faster.

============================================================ T= 1514139655
Tor 0.3.1.9 (git-727d3f1b5e6eeda7) died: Caught signal 11
0   tor                                 0x0000000109d30c8e crash_handler + 46
1   libsystem_platform.dylib            0x00007fff511cff5a _sigtramp + 26
2   libssl.35.dylib                     0x00007fff50a9e732 SSL_CTX_new + 242
3   tor                                 0x0000000109d5a874 tor_tls_context_init_one + 228
4   tor                                 0x0000000109d5a65b tor_tls_context_init + 283
5   tor                                 0x0000000109d04edc init_keys_client + 108
6   tor                                 0x0000000109d05028 init_keys + 72
7   tor                                 0x0000000109cbebe0 do_main_loop + 560
8   tor                                 0x0000000109cc142c tor_main + 172
9   tor                                 0x0000000109c108eb main + 27
10  libdyld.dylib                       0x00007fff50f4f145 start + 1
11  ???                                 0x0000000000000001 0x0 + 1
Abort trap: 6}}}

What did I do wrong ?
What is this strange error ?
How can I avoid it ?

Please, help me, I very need Tor working.

Child Tickets

Change History (10)

comment:1 Changed 2 years ago by Dbryrtfbcbhgf

Reinstall libevent and openssl and that should fix the bug, here are the instructions. https://trac.torproject.org/projects/tor/wiki/doc/MacBuild#ObtainingaRecentlibevent
Install openssl using the instructions here https://trac.torproject.org/projects/tor/wiki/doc/MacBuild#BuildingOpenSSLfromSource

If you can not get tor to run in terminal after the above steps are followed enter /usr/local/tor/bin/tor in terminal and click return

I just compiled tor 0.3.2.8 rc from source on my Mac running 10.13.2 (17C88) and no error occurs, so it is likely something wrong with your openssl and or libevent, just reinstall them using the links above.

Last edited 2 years ago by Dbryrtfbcbhgf (previous) (diff)

comment:2 Changed 2 years ago by lL__

I reinstalled libevent and openssl, all without any errors.

But tor-0.3.2.8-rc give me an errors again. I can't make it.

./configure && make were done without errors.

make check give me this:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS check-local
FAIL: src/test/test
PASS: src/test/test-slow
PASS: src/test/test-memwipe
PASS: src/test/test_workqueue
PASS: src/test/test_keygen.sh
PASS: src/test/test_key_expiration.sh
PASS: src/test/test-timers
SKIP: src/test/fuzz_static_testcases.sh
PASS: src/test/test_zero_length_keys.sh
PASS: src/test/test_workqueue_cancel.sh
SKIP: src/test/test_workqueue_efd.sh
SKIP: src/test/test_workqueue_efd2.sh
PASS: src/test/test_workqueue_pipe.sh
SKIP: src/test/test_workqueue_pipe2.sh
PASS: src/test/test_workqueue_socketpair.sh
SKIP: src/test/test_switch_id.sh
PASS: src/test/test_ntor.sh
PASS: src/test/test_hs_ntor.sh
PASS: src/test/test_bt.sh
============================================================================
Testsuite summary for tor 0.3.2.8-rc
============================================================================
# TOTAL: 19
# PASS:  13
# SKIP:  5
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
make[2]: *** [test-suite.log] Error 1
make[1]: *** [check-TESTS] Error 2
make: *** [check-am] Error 2

comment:3 in reply to:  2 Changed 2 years ago by Dbryrtfbcbhgf

Replying to lL__:

I reinstalled libevent and openssl, all without any errors.

But tor-0.3.2.8-rc give me an errors again. I can't make it.

./configure && make were done without errors.

make check give me this:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS check-local
FAIL: src/test/test
PASS: src/test/test-slow
PASS: src/test/test-memwipe
PASS: src/test/test_workqueue
PASS: src/test/test_keygen.sh
PASS: src/test/test_key_expiration.sh
PASS: src/test/test-timers
SKIP: src/test/fuzz_static_testcases.sh
PASS: src/test/test_zero_length_keys.sh
PASS: src/test/test_workqueue_cancel.sh
SKIP: src/test/test_workqueue_efd.sh
SKIP: src/test/test_workqueue_efd2.sh
PASS: src/test/test_workqueue_pipe.sh
SKIP: src/test/test_workqueue_pipe2.sh
PASS: src/test/test_workqueue_socketpair.sh
SKIP: src/test/test_switch_id.sh
PASS: src/test/test_ntor.sh
PASS: src/test/test_hs_ntor.sh
PASS: src/test/test_bt.sh
============================================================================
Testsuite summary for tor 0.3.2.8-rc
============================================================================
# TOTAL: 19
# PASS:  13
# SKIP:  5
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
make[2]: *** [test-suite.log] Error 1
make[1]: *** [check-TESTS] Error 2
make: *** [check-am] Error 2

Try building tor using.

./configure --prefix=/usr/local/tor --with-openssl-dir=/usr/local/ssl --with-libevent-dir=/usr/local/lib && make && make check && sudo make install
if that does not fix the issue please post the make check error.

Last edited 2 years ago by Dbryrtfbcbhgf (previous) (diff)

comment:4 Changed 2 years ago by arma

Your crash looks like it's in openssl somewhere, so trying to build with the openssl you meant to use seems like a good idea. (Often people with problems like this have two or more versions of openssl installed, and Tor picks random pieces of each of them when building, which doesn't work well.)

If all you need is a working Tor binary, you might want to grab the Tor Browser for MacOS, which has a Tor binary in it.

Also, in case nobody has said it, if your goal is web browsing, you should be using Tor Browser, not trying to build Tor yourself.

comment:5 Changed 2 years ago by lL__

Why the

FAIL: src/test/test

may appear?
It's cause?

Maybe because hardware acceleration is disabled in openssl configuration? Or it doesn't matter especially for tor?

Last edited 2 years ago by lL__ (previous) (diff)

comment:6 Changed 2 years ago by lL__

Why the src/test/test could fail?
Can you please explain

comment:7 Changed 2 years ago by nickm

Try looking in ./test-suite.log to see which test failed, and how.

comment:8 Changed 2 years ago by dgoulet

Milestone: Tor: unspecified

comment:9 Changed 2 years ago by nickm

Status: newneeds_information

comment:10 Changed 2 years ago by dgoulet

Component: Core TorCore Tor/Tor
Note: See TracTickets for help on using tickets.