Opened 11 years ago

Last modified 7 years ago

#811 closed defect (Fixed)

can't open/start tor due to a bug

Reported by: ecotea Owned by:
Priority: Very High Milestone:
Component: Core Tor/Tor Version: 0.2.1.4-alpha
Severity: Keywords:
Cc: ecotea, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

i can't open or start tor due to a bug. (Please note both od the bugs listed) I recently installed tor and can't seem to figure out why it says this:
Sep 06 19:04:09.948 [Notice] Tor v0.2.1.5-alpha (r16710). This is experimental software. Do not rely on it for strong anonymity. (Running on Darwin Power Macintosh)
Sep 06 19:04:09.963 [Notice] Your ContactInfo config option is not set. Please consider setting it, so we can contact you if your server is misconfigured or something else goes wrong.
Sep 06 19:04:09.964 [Notice] Initialized libevent version 1.4.7-stable using method kqueue. Good.
Sep 06 19:04:09.965 [Notice] Opening OR listener on 0.0.0.0:9001
Sep 06 19:04:09.966 [Notice] Opening Directory listener on 0.0.0.0:9030
Sep 06 19:04:09.967 [Notice] Opening Socks listener on 127.0.0.1:9050
Sep 06 19:04:09.967 [Notice] Opening Control listener on 127.0.0.1:9051
Sep 06 19:04:11.640 [Notice] Your Tor server's identity key fingerprint is 'Unnamed E0FD F8F7 6A06 4AF1 3B2A CAD7 C323 CB8D 1FC2 1468'
Sep 06 19:04:11.648 [Error] Bug: policies.c:1230: addr_policy_free: Assertion p == found->policy failed; aborting.
Sep 06 22:35:36.885 [Notice] Tor v0.2.1.5-alpha (r16710). This is experimental software. Do not rely on it for strong anonymity. (Running on Darwin Power Macintosh)
Sep 06 22:35:36.891 [Notice] Your ContactInfo config option is not set. Please consider setting it, so we can contact you if your server is misconfigured or something else goes wrong.
Sep 06 22:35:36.892 [Notice] Initialized libevent version 1.4.7-stable using method kqueue. Good.
Sep 06 22:35:36.893 [Notice] Opening OR listener on 0.0.0.0:9001
Sep 06 22:35:36.894 [Notice] Opening Directory listener on 0.0.0.0:9030
Sep 06 22:35:36.895 [Notice] Opening Socks listener on 127.0.0.1:9050
Sep 06 22:35:36.896 [Notice] Opening Control listener on 127.0.0.1:9051
Sep 06 22:35:38.614 [Notice] Your Tor server's identity key fingerprint is 'Unnamed E0FD F8F7 6A06 4AF1 3B2A CAD7 C323 CB8D 1FC2 1468'
Sep 06 22:35:38.616 [Error] Bug: policies.c:1230: addr_policy_free: Assertion p == found->policy failed; aborting.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (18)

comment:1 Changed 11 years ago by nickm

Interesting! If you know how to use gdb, and you have the apple developer tools installed, please try running

gdb tor
then type "run"
then type "backtrace" when it crashes

If not, I'll try to reproduce it on an osx host. Can you paste your torrc? That might help.

comment:2 Changed 11 years ago by nickm

{One possibility: this is related to byte-order on the PowerPC processor. That's just about the only way that
"Darwin Power Macintosh" is different from intel osx. If I can't reproduce this on my intel osx laptop,
that's probably why.}

comment:3 Changed 11 years ago by nickm

{Another possibility: this could be caused if we are changing address policy objects after making them canonical.}

comment:4 Changed 11 years ago by nickm

{aaaaand, load_policy_from_option changes the prt_min and prt_max values of any policy entries it encounters. This
could be the bug. I wonder if we can avoid the general case.}

If you can do that backtrace thing, or post your torrc, that might still help.

comment:5 Changed 11 years ago by nickm

Also, do you see this bug with 0.2.1.4-alpha, or is it new in 0.2.1.5-alpha?

comment:6 Changed 11 years ago by nickm

svn revision r16802 may fix this, unless there are more instances of the problem somewhere.

comment:7 Changed 11 years ago by nickm

Are you still there? I'd like to know if we've fixed this bug, or if it still happens.

comment:8 Changed 11 years ago by ecotea

Hi Nick,

Thank you for helping me. No, unfortunately the bug is still there. I have a mac powerbook. I also have a new bookpro that seems to be working well with Tor. (actually, I don't know if I installed it correctly)? Is there anything else I could try. Again, thank you kindly for you're assistance in this matter. -Tea

comment:9 Changed 11 years ago by nickm

Have you tried the version of Tor from the subversion repository, or is it still 0.2.1.5-alpha that's failing?

comment:10 Changed 11 years ago by valhs

still exists

(gdb) run
Starting program: /usr/bin/tor
Reading symbols for shared libraries . done
Oct 01 20:10:20.331 [notice] Tor v0.2.1.6-alpha (r17011). This is experimental software. Do not rely on it for strong anonymity. (Running on Darwin Power Macintosh)
Oct 01 20:10:20.346 [warn] ControlPort is open, but no authentication method has been configured. This means that any program on your computer can reconfigure your Tor. That's bad! You should upgrade your Tor controller as soon as possible.
Oct 01 20:10:20.348 [notice] Initialized libevent version 1.4.8-stable using method kqueue. Good.
Oct 01 20:10:20.349 [notice] Opening OR listener on 0.0.0.0:9090
Oct 01 20:10:20.350 [notice] Opening Directory listener on 0.0.0.0:9091
Oct 01 20:10:20.351 [notice] Opening Control listener on 127.0.0.1:9051
Oct 01 20:10:20.389 [notice] Parsing GEOIP file.
Oct 01 20:10:23.186 [notice] Your Tor server's identity key fingerprint is 'valhs 7089 818A D947 8B57 9EA6 836D 390C 09
Oct 01 20:10:34.288 [err] Bug: policies.c:1240: addr_policy_free: Assertion p == found->policy failed; aborting.
policies.c:1240 addr_policy_free: Assertion p == found->policy failed; aborting.

Program received signal SIGABRT, Aborted.
0x900481ac in kill ()
(gdb) backtrace
#0 0x900481ac in kill ()
#1 0x9012d7b4 in abort ()
#2 0x00068660 in addr_policy_free ()
#3 0x000686f4 in addr_policy_list_free ()
#4 0x00086be0 in routerinfo_free ()
#5 0x00086d64 in signed_descriptor_from_routerinfo ()
#6 0x00089b98 in routerlist_insert_old ()
#7 0x0008cd44 in router_add_to_routerlist ()
#8 0x00091a18 in router_load_routers_from_string ()
#9 0x00091cb0 in router_reload_router_list_impl ()
#10 0x00091e70 in router_reload_router_list ()
#11 0x00062cc4 in do_main_loop ()
#12 0x00062f34 in tor_main ()
#13 0x00001bcc in _start ()
#14 0x000018d0 in start ()
(gdb)

comment:11 Changed 11 years ago by valhs

maybe it helps more

(gdb) run
Starting program: /temp/tor/tor/src/or/tor
Oct 02 20:16:28.008 [notice] Tor v0.2.1.6-alpha-dev (r17037). This is experimental software. Do not rely on it for strong anonymity. (Running on Darwin Power Macintosh)
Oct 02 20:16:28.011 [notice] Configuration file "/usr/local/etc/tor/torrc" not present, using reasonable defaults.
Oct 02 20:16:28.017 [notice] Initialized libevent version 1.4.8-stable using method kqueue. Good.
Oct 02 20:16:28.018 [notice] Opening Socks listener on 127.0.0.1:9050
Oct 02 20:16:28.021 [notice] Parsing GEOIP file.
Oct 02 20:16:36.023 [err] Bug: policies.c:1240: addr_policy_free: Assertion p == found->policy failed; aborting.
policies.c:1240 addr_policy_free: Assertion p == found->policy failed; aborting.

Program received signal SIGABRT, Aborted.
0x900481ac in kill ()
(gdb) backtrace
#0 0x900481ac in kill ()
#1 0x9012d7b4 in abort ()
#2 0x00068f70 in addr_policy_free (p=0xe2b28) at policies.c:1240
#3 0x00069004 in addr_policy_list_free (lst=0x15e9dc0) at policies.c:1225
#4 0x00087560 in routerinfo_free (router=0x15e9cd0) at routerlist.c:2267
#5 0x0008d6c4 in router_add_to_routerlist (router=0x15e9cd0, msg=0xbffff978, from_cache=1, from_fetch=0) at routerlist.c:2950
#6 0x000923a8 in router_load_routers_from_string (s=0x26491d0 "", eos=0x61 <Address 0x61 out of bounds>, saved_location=SAVED_IN_CACHE, requested_fingerprints=0x0, descriptor_digests=-1073743492, prepend_annotations=0x15e9cd0 "") at routerlist.c:3408
#7 0x00092640 in router_reload_router_list_impl (store=0x1157b58) at routerlist.c:760
#8 0x00092800 in router_reload_router_list () at routerlist.c:810
#9 0x00063644 in do_main_loop () at main.c:1431
#10 0x000638b4 in tor_main (argc=-1, argv=0xbffffc94) at main.c:2079
#11 0x000020bc in _start ()
#12 0x00001dc0 in start ()
(gdb)

comment:12 Changed 11 years ago by valhs

first my C knowledge is really minimal anyway I created xcode project to try to find out when and why p == found->policy is unequal
was not successful values where to difficult to interpret
commented out the line 'tor_assert(p == found->policy);'
program runs for one day without apparent problems

comment:13 Changed 11 years ago by valhs

forgotten, only one comparison was unequal

comment:14 Changed 10 years ago by nickm

This may be the same as bug 845.

comment:15 Changed 10 years ago by nickm

If you can try the latest svn, it might fix this. Or it might give a more useful error message before it dies.

comment:16 Changed 10 years ago by nickm

I'm pretty sure that this is the same as bug 845, and that the fix in r17188 should fix this too. If svn trunk doesn't
solve this, please flag the bug to be reopened.

comment:17 Changed 10 years ago by nickm

flyspray2trac: bug closed.

comment:18 Changed 7 years ago by nickm

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