Opened 10 years ago

Last modified 7 years ago

#1008 closed defect (Fixed)

Constant crashes on freebsd

Reported by: tortor Owned by:
Priority: High Milestone:
Component: Core Tor/Tor Version: 0.2.1.14-rc
Severity: Keywords:
Cc: tortor, nickm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I was running tor for months on freebsd on 0.2.0.19 with no problems.

Then I updated to 0.2.0.34 and started getting regular sometimes daily crashes,
i also then tried 0.2.1.13-rc and then 14-rc with the same problems.

Tor will randomly crash on signal 11.
If i look at the core file with gdb I see its crashing in the ssl3_write function in libssl.

Complete gdb output:

gdb /usr/local/bin/tor tor.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `tor'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libevent-1.4.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libevent-1.4.so.3
Reading symbols from /usr/local/lib/libssl.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libssl.so.5
Reading symbols from /usr/local/lib/libcrypto.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libcrypto.so.5
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x080b3287 in ?? ()
[New Thread 0x28501100 (LWP 100125)]
[New LWP 100172]
(gdb)
(gdb) bt
#0 0x080b3287 in ?? ()
#1 0x286f4420 in ?? ()
#2 0x2991b000 in ?? ()
#3 0x29900000 in ?? ()
#4 0x281afcfa in ssl3_write () from /usr/local/lib/libssl.so.5
#5 0x287a1a10 in ?? ()
#6 0x28a17c50 in ?? ()
#7 0x2889ec00 in ?? ()
#8 0x2889ec04 in ?? ()
#9 0xbfbfe9f8 in ?? ()
#10 0x080b45e4 in ?? ()
#11 0x28a17c50 in ?? ()
#12 0x00000200 in ?? ()
#13 0x287a1a10 in ?? ()
#14 0x00000000 in ?? ()
#15 0x29900000 in ?? ()
#16 0x0813ddf8 in ?? ()
#17 0xbfbfea08 in ?? ()
#18 0x2889ec3c in ?? ()
#19 0x2889ec48 in ?? ()
#20 0x00000001 in ?? ()
#21 0x00000001 in ?? ()
#22 0x0000002c in ?? ()
#23 0x287a1a10 in ?? ()
#24 0x4a3964e6 in ?? ()
#25 0xbfbfea18 in ?? ()
#26 0x0807b6fb in ?? ()
#27 0x287a1a10 in ?? ()
#28 0x00000001 in ?? ()
#29 0x4a3964e6 in ?? ()
#30 0x287a1a10 in ?? ()
#31 0x00002b90 in ?? ()
#32 0x287a1a10 in ?? ()
#33 0xbfbfea48 in ?? ()
#34 0x0806e394 in ?? ()
#35 0x287a1a10 in ?? ()
#36 0x00000200 in ?? ()
#37 0x4a3964e6 in ?? ()
#38 0x00000d81 in ?? ()
#39 0x00000006 in ?? ()
#40 0x00000000 in ?? ()
#41 0x00002b90 in ?? ()
#42 0x000032d0 in ?? ()
#43 0x00002b90 in ?? ()
#44 0x000032d0 in ?? ()
#45 0xbfbfea98 in ?? ()
#46 0x0807218d in ?? ()
#47 0x00002b90 in ?? ()
#48 0xbfbfea80 in ?? ()
#49 0xbfbfea7c in ?? ()
#50 0x287a1a30 in ?? ()
#51 0x287a1a10 in ?? ()
#52 0x28fd1dd0 in ?? ()
#53 0xbfbfea98 in ?? ()
#54 0x0806d0cd in ?? ()
#55 0x294220a0 in ?? ()
#56 0x00000000 in ?? ()
#57 0x00000000 in ?? ()
#58 0x00002b90 in ?? ()
#59 0x00000000 in ?? ()
#60 0x00000004 in ?? ()
#61 0x4a3964e6 in ?? ()
#62 0x28194170 in JCR_LIST () from /usr/local/lib/libevent-1.4.so.3
#63 0x287a1a10 in ?? ()
#64 0x28fd1dd0 in ?? ()
#65 0xbfbfeac8 in ?? ()
#66 0x080aa1a1 in ?? ()
#67 0x287a1a10 in ?? ()
#68 0x00000000 in ?? ()
#69 0x081228c3 in ?? ()
#70 0x08121336 in ?? ()
#71 0x00000029 in ?? ()
#72 0x00000000 in ?? ()
#73 0x0007434d in ?? ()
#74 0x28194170 in JCR_LIST () from /usr/local/lib/libevent-1.4.so.3
#75 0x28194170 in JCR_LIST () from /usr/local/lib/libevent-1.4.so.3
#76 0x080aa130 in ?? ()
#77 0xbfbfeb38 in ?? ()
#78 0x28184565 in event_base_loop () from /usr/local/lib/libevent-1.4.so.3
Previous frame inner to this frame (corrupt stack?)
(gdb) quit

[Automatically added by flyspray2trac: Operating System: BSD]

Child Tickets

Change History (7)

comment:1 Changed 10 years ago by nickm

That's very strange. Do the stack traces look like this on all the Tor versions you've tried?

Also, have you tried 0.2.1.15-alpha? (It corrects a few crash bugs.)

If you have one version of Tor that works and another that doesn't, you could probably use "git bisect" to figure
out which version introduced the problem, but let's try to narrow down what's going on first.

comment:2 Changed 10 years ago by tortor

Yes all the stack traces look the same, I dont really know how to use gdb i just found some commands by using google.
I believe its because I did not build with debug symbols.

I was running freebsd 7.0 and tor 0.2.0.19 for months and it never crashed.
I upgraded to freebsd 7.1 and tor 0.2.0.34, thats when I started getting crashes.
I figured I would try the RC to see if it made a difference, it crashes a bit less often maybe but still crashes in libssl.

I also tried a fresh install of 7.1 which made no difference. so maybe its something to do with 7.1, i haven't tested exactly where the problem started, if it was freebsd or tor upgrade, or both, none of my other apps that use libssl have problems.

I installed it from freebsd ports, so no i haven't tried 0.2.1.15 as its not on ports yet (they are very slow with the tor updates), and I didn't see anything in the notes about this being fixed.

comment:3 Changed 10 years ago by Sebastian

Hey, are you still experiencing these issues? Did the behaviour change at all with
0.2.1.19-stable? I've tried Tor on Freebsd 7.2 and don't notice any problems so far

comment:4 Changed 10 years ago by tortor

I have been running 0.2.1.19-stable since it was released and no crashes yet.
Looks like its fixed.
Thanks.

comment:5 Changed 10 years ago by nickm

Excellent; I'll close the bug.

comment:6 Changed 10 years ago by nickm

flyspray2trac: bug closed.

comment:7 Changed 7 years ago by nickm

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