[tor-bugs] #15584 [Torsocks]: Linking libtorsocks with libtcmalloc results in SIGSEGV
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Apr 5 07:08:24 UTC 2015
#15584: Linking libtorsocks with libtcmalloc results in SIGSEGV
-------------------------+-------------------------------------------------
Reporter: post- | Owner: dgoulet
factum | Status: needs_review
Type: defect | Milestone:
Priority: normal | Version:
Component: | Keywords: sigsegv libtcmalloc libtorsocks
Torsocks | torsocks ld_preload
Resolution: | Parent ID:
Actual Points: |
Points: |
-------------------------+-------------------------------------------------
Changes (by yawning):
* status: new => needs_review
Comment:
And this is the torsocks fix. Since C++ is a thing, and torsocks should
support people doing various silly and not so silly things in their
constructors, this is probably better than patching libtcmalloc.
https://github.com/Yawning/torsocks/compare/bug15584
I ended up implementing my own `pthread_once()` analog since I didn't feel
that changing libtorsocks to always link against a real pthread
implementation on Linux was all that great. Changing the code to use
`pthread_once()` is easy if people happen to disagree with me.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15584#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list