Opened 15 years ago

Last modified 8 years ago

#246 closed defect (Not a bug)

segfault after upgrade to Openssl-0.9.8

Reported by: mindcandy28 Owned by:
Priority: High Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: mindcandy28 Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


After upgrading to Openssl-0.9.8, tor SegFaults when trying to establish a TLSv3 session.
This bug exists in both current-stable, and .11-alpha and .12-alpha.

Relevent debug info :
(tor compiled with --enable-debug)

Jan 25 10:32:02.287 [debug] connection_or_finished_connecting(): OR connect() to router at finished.
Jan 25 10:32:02.287 [debug] connection_tls_start_handshake(): starting TLS handshake on fd 7
Jan 25 10:32:02.287 [debug] connection_tls_continue_handshake(): wanted read
Jan 25 10:32:02.287 [debug] connection_tls_continue_handshake(): wanted read
Jan 25 10:32:02.501 [debug] conn_read_callback(): socket 7 wants to read.
Segmentation fault (core dumped)

stack backtrace :

#268 0x40066fd0 in ?? () from /usr/lib/
#269 0x082a4a78 in ?? ()
#270 0x081c2120 in ?? ()
#271 0xbfdd26a8 in ?? ()
#272 0x4005485a in SSL_connect () from /usr/lib/
#273 0x082a4a78 in ?? ()
#274 0x0825bbe8 in ?? ()
#275 0x082d5fe0 in ?? ()
#276 0x080be2eb in tor_tls_handshake (tls=0xbfdd23c4) at tortls.c:556
Previous frame inner to this frame (corrupt stack?)

OpenSSL version info :

OpenSSL 0.9.8a 11 Oct 2005
built on: Tue Jan 24 14:01:00 EST 2006
platform: linux-elf
options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) idea(int) blowfish(idx)
OPENSSLDIR: "/etc/ssl"

LDD info for TOR binary :

ldd /usr/local/bin/tor => /usr/lib/ (0x40026000) => /usr/lib/ (0x40037000) => /lib/ (0x40068000) => /lib/ (0x400b9000) => /usr/local/lib/ (0x400bd000) => /lib/ (0x400c4000) => /usr/lib/ (0x401f3000)
/lib/ => /lib/ (0x40000000)

[Automatically added by flyspray2trac: Operating System: Other Linux]

Child Tickets

Change History (3)

comment:1 Changed 15 years ago by mindcandy28

Mea Culpa! .. I found the error finally .. it was a legacy version of linked to the old 0.9.7 library. was automatically re-linking the older shared libssl library because it was higher in the search order. I had to manually delete the old libraries, and add the /usr/local/ssl/lib path to and re-run ldconfig -- then it compiled and worked.

You can close this case .. I can't figure out how to mark it as resolved.

comment:2 Changed 15 years ago by nickm

flyspray2trac: bug closed.

comment:3 Changed 8 years ago by nickm

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