
Hi, I have been running Tor on tor2web mode[1] and now it has started to crash. See error on /log http://nzxj65x32vh2fkhk.onion/pwnzwpknl To understand the bug I re-installed Tor in Tor2web mode for debbuing: make clean && CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3" ./configure --disab le-asciidoc --enable-tor2web-mode && make && make install And running it gdb tor (gdb) run Program received signal SIGSEGV, Segmentation fault. 0x00005555555c02d6 in rend_client_get_random_intro_impl ( entry=0x5555555bf1bf <rend_client_fetch_v2_desc+114>, strict=0, warnings=0) at src/or/rendclient.c:1353 1353 smartlist_add_all(usable_nodes, entry->parsed->intro_nodes); Any ideas what is the problem? Is there anything more I could do to debug this? [1] https://github.com/globaleaks/Tor2web/wiki/Installation-Guide Best, Juha

On 29 Apr 2016, at 14:05, Nurmi, Juha <juha.nurmi@ahmia.fi> wrote:
Hi,
I have been running Tor on tor2web mode[1] and now it has started to crash.
See error on /log http://nzxj65x32vh2fkhk.onion/pwnzwpknl
To understand the bug I re-installed Tor in Tor2web mode for debbuing:
make clean && CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3" ./configure --disab le-asciidoc --enable-tor2web-mode && make && make install
And running it
gdb tor (gdb) run
Program received signal SIGSEGV, Segmentation fault. 0x00005555555c02d6 in rend_client_get_random_intro_impl ( entry=0x5555555bf1bf <rend_client_fetch_v2_desc+114>, strict=0, warnings=0) at src/or/rendclient.c:1353 1353 smartlist_add_all(usable_nodes, entry->parsed->intro_nodes);
Any ideas what is the problem? Is there anything more I could do to debug this?
Looks like either "entry" or "parsed" is NULL. You could tell us what version of tor you're running (it's not master, the line numbers are wrong), and give us the last few log messages before the crash.
[1] https://github.com/globaleaks/Tor2web/wiki/Installation-Guide
Best, Juha _______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
Tim Wilson-Brown (teor) teor2345 at gmail dot com PGP 968F094B ricochet:ekmygaiu4rzgsk6n

On Fri, Apr 29, 2016 at 02:24:20PM +1000, Tim Wilson-Brown - teor wrote:
Program received signal SIGSEGV, Segmentation fault. 0x00005555555c02d6 in rend_client_get_random_intro_impl ( entry=0x5555555bf1bf <rend_client_fetch_v2_desc+114>, strict=0, warnings=0) at src/or/rendclient.c:1353 1353 smartlist_add_all(usable_nodes, entry->parsed->intro_nodes);
Any ideas what is the problem? Is there anything more I could do to debug this?
Looks like either "entry" or "parsed" is NULL.
You could tell us what version of tor you're running (it's not master, the line numbers are wrong), and give us the last few log messages before the crash.
Yep! Also, the output of 'bt all' could be useful. See https://www.torproject.org/docs/faq#TorCrash for more things to think about -- the debug-level log right before it happens will be useful, and also knowing when during operation it happens (soon after? reliably? etc), and also your torrc. But most importantly, you should open a ticket on trac and start accumulating details there. That way the history will be on the trac ticket, and people can follow it there rather than here. Thanks, --Roger

Thanks for debugging help! I created a ticket: https://trac.torproject.org/projects/tor/ticket/18930#ticket -Juha On Fri, Apr 29, 2016 at 7:28 AM, Roger Dingledine <arma@mit.edu> wrote:
On Fri, Apr 29, 2016 at 02:24:20PM +1000, Tim Wilson-Brown - teor wrote:
Program received signal SIGSEGV, Segmentation fault. 0x00005555555c02d6 in rend_client_get_random_intro_impl ( entry=0x5555555bf1bf <rend_client_fetch_v2_desc+114>, strict=0, warnings=0) at src/or/rendclient.c:1353 1353 smartlist_add_all(usable_nodes, entry->parsed->intro_nodes);
Any ideas what is the problem? Is there anything more I could do to debug this?
Looks like either "entry" or "parsed" is NULL.
You could tell us what version of tor you're running (it's not master, the line numbers are wrong), and give us the last few log messages before the crash.
Yep! Also, the output of 'bt all' could be useful.
See https://www.torproject.org/docs/faq#TorCrash for more things to think about -- the debug-level log right before it happens will be useful, and also knowing when during operation it happens (soon after? reliably? etc), and also your torrc.
But most importantly, you should open a ticket on trac and start accumulating details there. That way the history will be on the trac ticket, and people can follow it there rather than here.
Thanks, --Roger
_______________________________________________ tor-dev mailing list tor-dev@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
participants (3)
-
Nurmi, Juha
-
Roger Dingledine
-
Tim Wilson-Brown - teor