[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #12115 [Tor]: Sandbox: Stack trace after HUP when changing DirPort, ORPort, or DisableNetwork



#12115: Sandbox: Stack trace after HUP when changing DirPort, ORPort, or
DisableNetwork
-----------------------+------------------------------------
 Reporter:  alphawolf  |          Owner:
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor        |        Version:  Tor: 0.2.5.4-alpha
 Keywords:  sandbox    |  Actual Points:
Parent ID:             |         Points:
-----------------------+------------------------------------
 Stack trace generated when sandbox is enabled and DirPort or ORPort is
 changed, or DisableNetwork is changed from 1 to 0.  In each case the stack
 trace is identical, and all that varies is what type of listener is being
 opened on the previous log line.


 {{{
 May 23 17:35:26.000 [notice] Opening OR listener on 0.0.0.0:9001

 ============================================================ T= 1400880926
 (Sandbox) Caught a bad syscall attempt (syscall listen)
 /usr/bin/tor(+0x123aea)[0x7f044b80daea]
 /lib/x86_64-linux-gnu/libc.so.6(listen+0x7)[0x7f0449e19a07]
 /lib/x86_64-linux-gnu/libc.so.6(listen+0x7)[0x7f0449e19a07]
 /usr/bin/tor(retry_all_listeners+0xd08)[0x7f044b7b13d8]
 /usr/bin/tor(set_options+0x16c3)[0x7f044b7a7123]
 /usr/bin/tor(options_init_from_string+0x2d9)[0x7f044b7a7e39]
 /usr/bin/tor(options_init_from_torrc+0x1a7)[0x7f044b7a8137]
 /usr/bin/tor(process_signal+0x46c)[0x7f044b7213bc]
 /usr/lib/x86_64-linux-
 gnu/libevent-2.0.so.5(event_base_loop+0x9a5)[0x7f044ad76715]
 /usr/bin/tor(do_main_loop+0x195)[0x7f044b720295]
 /usr/bin/tor(tor_main+0xe85)[0x7f044b722805]
 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f0449d54b45]
 /usr/bin/tor(+0x32adb)[0x7f044b71cadb]
 }}}


 Tor built from latest master (git-824bebd40954d2f7), with all the Debian
 goodness.

 /usr/share/tor/tor-service-defaults-torrc:
 {{{
 DataDirectory /var/lib/tor
 PidFile /var/run/tor/tor.pid
 RunAsDaemon 1
 User debian-tor
 ControlSocket /var/run/tor/control
 ControlSocketsGroupWritable 1
 CookieAuthentication 1
 CookieAuthFileGroupReadable 1
 CookieAuthFile /var/run/tor/control.authcookie
 Log notice file /var/log/tor/log
 }}}
 torrc:
 {{{
 DisableNetwork 0 # only crashes going from 1 to 0, Opening Socks listener
 ORPort 9001 # Crash when changed, OR listener
 DirPort 9030 # Crash when changed, Directory listener
 Sandbox 1
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12115>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs