Opened 11 years ago

Last modified 7 years ago

#671 closed defect (Fixed)

tor 0.2.0.24-rc: mutex initialization problem?

Reported by: jmurphy Owned by: nickm
Priority: Low Milestone: 0.2.0.x-final
Component: Core Tor/Tor Version: 0.2.0.23-rc
Severity: Keywords:
Cc: jmurphy Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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
#2 0x0810f835 in tor_mutex_new () at compat.c:1756
#3 0x08108b84 in init_logging () at log.c:498
#4 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
#2 0x080e9f45 in tor_mutex_new () at compat.c:1756
#3 0x080e3294 in init_logging () at log.c:498
#4 0x080aae7c in tor_main (argc=1 argv=0xbfbfeaa4) at min.c:1968
#5 0x080e2982 in main (argc=Cannot access memory at address 0x0
) at tor_main.c:29

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (5)

comment:1 Changed 11 years ago by nickm

Oops! Could you check to see whether the latest version in the 0.2.0 subversion branch (at

https://tor-svn.freehaven.net/svn/tor/branches/tor-0_2_0-patches/

) works better? I think I got it, but I don't have a freebsd box to test on.

comment:2 Changed 11 years ago by jmurphy

Nick:

I hadn't tested the svn branch before you released the 0.2.0.25-rc tarball, but I tested that newest tarball, and the obvious problems for multithreaded tor on FreeBSD 7-STABLE have been fixed. Thank you for dealing with the problem so quickly. The new version has an impressively smaller memory footprint, among other things.

Regards,

j.m.

comment:3 Changed 11 years ago by nickm

Great! Glad to hear it's working now.

comment:4 Changed 11 years ago by nickm

flyspray2trac: bug closed.

comment:5 Changed 7 years ago by nickm

Component: Tor ClientTor
Note: See TracTickets for help on using tickets.