Opened 5 years ago

Closed 5 years ago

#12035 closed defect (fixed)

Crash/stack trace with Sandbox enabled and DirReqStatistics not disabled

Reported by: alphawolf Owned by:
Priority: Medium Milestone: Tor: 0.2.5.x-final
Component: Core Tor/Tor Version: Tor: 0.2.5.4-alpha
Severity: Keywords: sandbox, crash
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Tor crashes @ log rotation time if sandbox is enabled and DirReqStatistics is not disabled. Version is Tor 0.2.5.4-alpha-dev (git-081ff5fa83cf146a) on Debian Jessie.

log:

May 17 06:25:03.000 [warn] sandbox_intern_string(): Bug: No interned sandbox parameter found for /var/lib/tor/stats
May 17 06:25:03.000 [warn] sandbox_intern_string(): Bug: No interned sandbox parameter found for /var/lib/tor/stats/dirreq-stats.tmp

============================================================ T= 1400322303
(Sandbox) Caught a bad syscall attempt (syscall open)
/usr/bin/tor(+0x124e7a)[0x7f0630d98e7a]
/lib/x86_64-linux-gnu/libpthread.so.0(open64+0x2d)[0x7f062f87a19d]
/lib/x86_64-linux-gnu/libpthread.so.0(open64+0x2d)[0x7f062f87a19d]
/usr/bin/tor(tor_open_cloexec+0x40)[0x7f0630d84940]
/usr/bin/tor(start_writing_to_file+0xfb)[0x7f0630d9444b]
/usr/bin/tor(+0x1205ab)[0x7f0630d945ab]
/usr/bin/tor(+0x1206f8)[0x7f0630d946f8]
/usr/bin/tor(write_to_data_subdir+0x53)[0x7f0630d32983]
/usr/bin/tor(geoip_dirreq_stats_write+0x137)[0x7f0630d77487]
/usr/bin/tor(+0x359bc)[0x7f0630ca99bc]
/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5(event_base_loop+0x414)[0x7f0630300184]
/usr/bin/tor(do_main_loop+0x19d)[0x7f0630caa5bd]
/usr/bin/tor(tor_main+0x12b5)[0x7f0630cacf75]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f062f2deb45]
/usr/bin/tor(+0x32e0b)[0x7f0630ca6e0b]

/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: (trimmed for brevity...)

ORPort 443 NoListen
ORPort 9001 NoAdvertise

DirPort 80 NoListen
DirPort 9030 NoAdvertise
# DirReqStatistics 0

ExitPolicy reject *:* # no exits allowed

Sandbox 1

Child Tickets

Change History (2)

comment:1 Changed 5 years ago by nickm

Should be fixed in f87071f49efb47a2d52583730c29ba287e620227 ; please reopen if it isn't.

comment:2 Changed 5 years ago by nickm

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.