Bug 3 - STARTTLS crashes sylpheed
Summary: STARTTLS crashes sylpheed
Status: RESOLVED WORKSFORME
Alias: None
Product: Sylpheed-Claws (GTK1)
Classification: Unclassified
Component: Other (show other bugs)
Version: 0.8.8
Hardware: PC Linux
: normal
Assignee: Christoph Hohmann
URL:
Depends on:
Blocks:
 
Reported: 2003-01-03 15:59 UTC by Oliver Haertel
Modified: 2003-05-16 04:43 UTC (History)
1 user (show)

See Also:


Attachments

Description Oliver Haertel 2003-01-03 15:59:21 UTC
Receiving mail with checked STARTTLS in SSL tab 
crashes sylpheed.
Simple debuging revealed a seg fault in SSL_connect
(ssl.c:106). I also tried latest openssl-0.9.6h same there.

(gdb) bt full
#0  0x00000000 in ?? ()
No symbol table info available.
#1  0x4044b404 in ssl3_send_alert () from /lib/libssl.so.2
No symbol table info available.
#2  0x4044a595 in ssl3_get_record () from /lib/libssl.so.2
No symbol table info available.
#3  0x4044ac94 in ssl3_read_bytes () from /lib/libssl.so.2
No symbol table info available.
#4  0x4044bc50 in ssl3_get_message () from /lib/libssl.so.2
No symbol table info available.
#5  0x40445fd2 in ssl3_get_server_hello () from
/lib/libssl.so.2
No symbol table info available.
#6  0x40445860 in ssl3_connect () from /lib/libssl.so.2
No symbol table info available.
#7  0x40450020 in SSL_connect () from /lib/libssl.so.2
No symbol table info available.
#8  0x08140349 in ssl_init_socket_with_method
(sockinfo=0x8620770, 
    method=SSL_METHOD_TLSv1) at ssl.c:106
        method = 135777161
        server_cert = (X509 *) 0x817cb89
        ssl = (SSL *) 0x8624500
#9  0x080f1060 in pop3_stls_recv (sock=0x8620770,
data=0x861c640) at pop.c:130
        sock = (SockInfo *) 0x8620770

cheers Oliver
Comment 1 Christoph Hohmann 2003-01-04 09:51:32 UTC
This looks like a NULL value in a function pointer. The only line in the ssl
source that could cause this segfault is:

desc=s->method->ssl3_enc->alert_value(desc);

These are all static values that are not changed by sylpheed as far as i know.

Is this bug reproduceable? If yes can you try to reproduce it with a openssl
library with debugging symbols? Maybe this is a bug in OpenSSL. If you get the
error with debugging symbols it would be good if you could print
*s->method->ssl3_enc with gdb.
Comment 2 Oliver Haertel 2003-02-14 06:55:45 UTC
*** Bug 49 has been marked as a duplicate of this bug. ***
Comment 3 Colin Leroy 2003-02-14 10:32:04 UTC
I'd like to test it a bit (just added starttls to my smtp server and it works),
Oliver, could you give me your pop server's name (or ip) ? I don't need a valid
login. 

Cheers
Colin
Comment 4 Christoph Hohmann 2003-05-16 04:43:33 UTC
Using Sylpheed 0.8.11claws156 and OpenSSL 0.9.7b STARTTLS works without problems
for me.

Note You need to log in before you can comment on or make changes to this bug.