[Box Backup] Segmentation fault from bbackupquery (exception Connection TLSHandshakeFailed)

Ben Bennett boxbackup@fluffy.co.uk
Mon, 29 Jan 2007 14:14:18 -0500


On Mon, Jan 29, 2007 at 04:40:50PM +0000, Ben Summers wrote:
> 
> 
> Can you build bbackupquery with debug symbols, and try again?

Here is the trace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209936208 (LWP 19673)]
0xb7faaf2f in deflate_slow () from /lib/libz.so
(gdb) back
#0  0xb7faaf2f in deflate_slow () from /lib/libz.so
#1  0xb7faa48a in deflate () from /lib/libz.so
#2  0xb7f4f039 in zlib_stateful_compress_block () from /usr/lib/libcrypto.so.0.9.8
#3  0xb7f4eb2e in COMP_compress_block () from /usr/lib/libcrypto.so.0.9.8
#4  0xb7e3aeaa in ssl3_do_compress () from /usr/lib/libssl.so.0.9.8
#5  0xb7e3afe9 in do_ssl3_write () from /usr/lib/libssl.so.0.9.8
#6  0xb7e3b3f4 in ssl3_write_bytes () from /usr/lib/libssl.so.0.9.8
#7  0xb7e3d2b0 in ssl3_do_write () from /usr/lib/libssl.so.0.9.8
#8  0xb7e3d3d5 in ssl3_send_finished () from /usr/lib/libssl.so.0.9.8
#9  0xb7e38320 in ssl3_connect () from /usr/lib/libssl.so.0.9.8
#10 0xb7e48eaa in SSL_connect () from /usr/lib/libssl.so.0.9.8
#11 0x080664b8 in SocketStreamTLS::Handshake ()
#12 0x080665be in SocketStreamTLS::Open ()
#13 0x0804b78f in main ()

Any suggestions on where to progress from here?


> It looks like it's crashing with libz, the compression library. Have  
> you noticed anything else strange on your machine?

No... everything else has been perfectly fine.  Perplexing.  I can ssh
out and in.  I can gzip, but I am not certain it is using zlib.

 

> Just out of interest, why would you run a machine with -fomit-frame- 
> pointer and stripped libraries?

Well, stripping is the default.  And most distros ship stripped
libraries and binaries.  As to -fomit-frame-pointer, in the few years
I have been running gentoo, this is the first time that I have needed
them.  So I would rather have the extra register for computation most
of the time.  It gives a measurable speed increase for some classes of
computation.  In my case it is a win for encoding and since I do some
video editing, it is useful..

			    -ben