Closed GoogleCodeExporter closed 9 years ago
Here is a link to TOR Project Trac ticket opened by me:
https://trac.torproject.org/projects/tor/ticket/15584
Original comment by pfac...@gmail.com
on 4 Apr 2015 at 2:36
Looks like something within torsocks. I was able to minimize problem as follows:
/*
* Example .so library which somehow crashes torsocks.so.
*
* # gcc -shared -O1 -Wall -ggdb3 tsocks-crasher.c -fPIC -o tsocks-crasher.so
* # LD_PRELOAD='/usr/lib/torsocks/libtorsocks.so /root/src/test/tsocks-crasher.so' /bin/true
*
*/
__attribute__((constructor))
static void init(void)
{
extern int close(int);
close(0);
}
Original comment by alkondratenko
on 4 Apr 2015 at 9:18
BTW libtcmalloc_debug.so is not intended for "production" use. It's essentially
malloc debugger. Consider using libtcmalloc_minimal.so or libtcmalloc.so
instead.
It does not make a difference in this case though.
Original comment by alkondratenko
on 4 Apr 2015 at 9:20
Seems to be fixed by torsocks team.
https://trac.torproject.org/projects/tor/ticket/15584#comment:4
Original comment by pfac...@gmail.com
on 12 May 2015 at 4:19
Great. Closing then.
Original comment by alkondratenko
on 17 May 2015 at 6:53
Original issue reported on code.google.com by
pfac...@gmail.com
on 4 Apr 2015 at 2:34