[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #15584 [Torsocks]: Linking libtorsocks with libtcmalloc results in SIGSEGV
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs