Menu

#29 Crash when sending with SSL

open
nobody
None
5
2004-12-25
2004-12-25
No

Sylpheed crashes with segmentation fault (no window
left) when sending mail with TSL or SSL-encoded SMTP
connection. However, while there is no trace left in
the sent-folder, mails do get send out successfully. In
fact, the crash happens right at the end of the
send-process, right after the progress box for the send
process disappears.

The crash only happens if sending encoded AND if
attachments are included in the mail AND if the total
size of the message exceeds a certain volume (about
24K). This phenomenon is specific to the gtk2-port, and
it seems to persist through all versions including the
current 1.0.0-20041224.

Running with gdb gives the following additional
information:

-------------
(gdb) run
Starting program: /usr/local/bin/sylpheed
[Thread debugging using libthread_db enabled]
[New Thread 1083088128 (LWP 3181)]
Detaching after fork from child process 3182.
Detaching after fork from child process 3184.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1083088128 (LWP 3181)]
0x080e856c in sock_check (source=0x8397ad8) at socket.c:299
299 FD_SET(sock->sock, &fds);
(gdb) bt
#0 0x080e856c in sock_check (source=0x8397ad8) at
socket.c:299
#1 0x4042d144 in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
--------------

Setting a breakpoint at line 299 of socket.c allows to
control the send process in that it stops after each
chunk of about 1K of data being sent. Still, after all
data has been sent (progress dialog says: Quitting) it
segfaults as before.

I compared socket.c with the gtk-1.2 version to realize
that the whole socket communication has changed from
gtk-1.2 to gtk-2.0. I understand too little from this,
SMTP and SSL to hunt down the phenomenon any further.

Used libraries:
ldd /usr/local/bin/sylpheed
linux-gate.so.1 => (0xffffe000)
libgthread-2.0.so.0 =>
/usr/lib/libgthread-2.0.so.0 (0x40029000)
libpthread.so.0 => /lib/tls/libpthread.so.0
(0x4002e000)
libgtk-x11-2.0.so.0 =>
/usr/lib/libgtk-x11-2.0.so.0 (0x4003f000)
libgdk-x11-2.0.so.0 =>
/usr/lib/libgdk-x11-2.0.so.0 (0x402a5000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0
(0x40316000)
libgdk_pixbuf-2.0.so.0 =>
/usr/lib/libgdk_pixbuf-2.0.so.0 (0x40331000)
libm.so.6 => /lib/tls/libm.so.6 (0x40345000)
libpangoxft-1.0.so.0 =>
/usr/lib/libpangoxft-1.0.so.0 (0x40368000)
libpangox-1.0.so.0 =>
/usr/lib/libpangox-1.0.so.0 (0x4038c000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0
(0x40399000)
libgobject-2.0.so.0 =>
/usr/lib/libgobject-2.0.so.0 (0x403cd000)
libgmodule-2.0.so.0 =>
/usr/lib/libgmodule-2.0.so.0 (0x40402000)
libdl.so.2 => /lib/libdl.so.2 (0x40406000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
(0x40409000)
libgpgme.so.6 => /usr/lib/libgpgme.so.6
(0x40476000)
libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7
(0x40499000)
libcrypto.so.0.9.7 =>
/usr/lib/libcrypto.so.0.9.7 (0x404cb000)
libc.so.6 => /lib/tls/libc.so.6 (0x405cd000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6
(0x40715000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2
(0x40000000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2
(0x407f7000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6
(0x407fc000)
libXinerama.so.1 =>
/usr/X11R6/lib/libXinerama.so.1 (0x40804000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6
(0x40807000)
libXft.so.2 => /usr/X11R6/lib/libXft.so.2
(0x40815000)
libXrender.so.1 =>
/usr/X11R6/lib/libXrender.so.1 (0x40827000)
libfontconfig.so.1 =>
/usr/lib/libfontconfig.so.1 (0x4082f000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6
(0x40858000)
libz.so.1 => /lib/libz.so.1 (0x408b7000)
libexpat.so.0 => /usr/lib/libexpat.so.0
(0x408c8000)

I am running Mandrake 10.0, both on an Athlon (K7S5A)
and on a Pentium IV (some Asus board, very stable),
with sylpheed compiled under gcc-3.3.2.

This is a great mail client that I use on a daily
basis, keep up the work!

Discussion

  • Nobody/Anonymous

    Logged In: NO

    No attachments are required to cause this problem. Sylpheed
    can exit after sending a plain text 8KB mail 7 bit encoded
    with US-ASCII ;).

    ----DEBUG OUTPUT----

    .....
    session (0x83ec9a0): connected
    [22:12:20] SMTP< 220
    .....
    [22:12:20] ESMTP> STARTTLS
    .....
    [22:12:20] SMTP< 221 xxxx.xxxxxx.xx closing connection
    session (0x83ec9a0): closed

    ----END DEBUG OUTPUT----

    I don't know if I should post the contents of the mail here.

     
  • Ian Lewis

    Ian Lewis - 2005-03-26

    Logged In: YES
    user_id=478898

    Sylpheed also crashes intermittently when receiving mail
    using SSL for me as well. Debug shows similar output. It
    seems to happen pretty randomly.

     
  • Ian Lewis

    Ian Lewis - 2005-04-16

    Logged In: YES
    user_id=478898

    It still crashes with version 1.0.0-gtk2-20041224 and seems
    to crash nearly every time I try to download mail from
    gmail. I also get an Error dialog "Error occurred when
    sending the message" but no crash every time I send mail
    using gmail.

     

Log in to post a comment.

MongoDB Logo MongoDB