Opened 13 years ago

Last modified 7 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: 0.1.1.12-alpha
Severity: Keywords:
Cc: mindcandy28 Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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 82.165.233.43:9001 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/libssl.so.0
#269 0x082a4a78 in ?? ()
#270 0x081c2120 in ?? ()
#271 0xbfdd26a8 in ?? ()
#272 0x4005485a in SSL_connect () from /usr/lib/libssl.so.0
#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)
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -mcpu=pentium -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
OPENSSLDIR: "/etc/ssl"

LDD info for TOR binary :

ldd /usr/local/bin/tor

libz.so.1 => /usr/lib/libz.so.1 (0x40026000)
libssl.so.0 => /usr/lib/libssl.so.0 (0x40037000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40068000)
libdl.so.2 => /lib/libdl.so.2 (0x400b9000)
libevent-1.1a.so.1 => /usr/local/lib/libevent-1.1a.so.1 (0x400bd000)
libc.so.6 => /lib/libc.so.6 (0x400c4000)
libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x401f3000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

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

Child Tickets

Change History (3)

comment:1 Changed 13 years ago by mindcandy28

Mea Culpa! .. I found the error finally .. it was a legacy version of libssl.so linked to the old 0.9.7 library.
ldd.so.conf 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 ldd.so.conf 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 13 years ago by nickm

flyspray2trac: bug closed.

comment:3 Changed 7 years ago by nickm

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