tor 0.2.0.24-rc: mutex initialization problem?
This bug report actually applies only to 0.2.0.24-rc (the field was not available yet in the Version entry above.) This version of tor cannot now be built on FreeBSD 7-STABLE i386 with multithreading support. The resulting binary dumps core. I believe the error is related to problems with the initialization of the recursive mutexes introduced for logging in the new version of tor. Pthreads in this version of FreeBSD are handled in libthr, and the pertinent libraries are supposed to be POSIX compliant. (See http://www.FreeBSD.org/cgi/cvsweb.cgi/src/lib/libthr .) A backtrace of crashes of the test program run during "make check" and of the tor binary:
#0 0x2838129b in pthread_mutexattr_init () from /lib/libthr.so.3 #1 0x2838141b in pthread_mutex_init () from /lib/libthr.so.3 legacy/trac#2 (closed) 0x0810f835 in tor_mutex_new () at compat.c:1756 legacy/trac#3 (closed) 0x08108b84 in init_logging () at log.c:498 legacy/trac#4 (closed) 0x0810f4b0 in main (c=1 v=Cannot access memory at address 0x4 ) at test.c:3564
#0 0x2835029b in pthread_mutexattr_init () from /lib/libthr.so.3 #1 0x2835041b in pthread_mutex_init () from /lib/libthr.so.3 legacy/trac#2 (closed) 0x080e9f45 in tor_mutex_new () at compat.c:1756 legacy/trac#3 (closed) 0x080e3294 in init_logging () at log.c:498 legacy/trac#4 (closed) 0x080aae7c in tor_main (argc=1 argv=0xbfbfeaa4) at min.c:1968 legacy/trac#5 (closed) 0x080e2982 in main (argc=Cannot access memory at address 0x0 ) at tor_main.c:29
[Automatically added by flyspray2trac: Operating System: All]
Trac:
Username: jmurphy