Bug 121382 - some received mails make kmail crash
Summary: some received mails make kmail crash
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.9.1
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-04 20:14 UTC by Ga
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
zipped mail that makes KMail crash (4.19 KB, application/x-tar)
2006-02-22 18:33 UTC, Nicos Gollan
Details
Another "crash-mail" (3.06 KB, application/x-tar)
2006-02-23 13:32 UTC, Nicos Gollan
Details
HTML file that makes Konqueror crash (377 bytes, text/html)
2006-02-24 02:14 UTC, Nicos Gollan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ga 2006-02-04 20:14:36 UTC
Version:           1.9.1 (using KDE KDE 3.5.0)
Installed from:    Mandriva RPMs
Compiler:          linked to libgcc_s-4.0.2.so.1: so gcc 4.0.2?..  
OS:                Linux

On Mandriva cooker (updated from 01/02/2006):

Some received mails make kmail crash: when trying to reads mails in folder, clicking on some mails make kmail crash immediatly, before the mail be seen on screen. The KDE "crash/debug/bug" window never appears. I don't know what kind of email make kmail crash, it is too fast: kmail crashes quickly.

But i have with message, at the console:
*** glibc detected *** corrupted double-linked list: 0xb6eef8b8 ***

This bug is highly reproductible, each time i click on these  mails, it crashes.

Regards,
Gaetan.
Comment 1 Philip Rodrigues 2006-02-05 00:49:15 UTC
Can you attach one of those mails (compressed) here?
Comment 2 Ga 2006-02-06 21:18:29 UTC
-----------------

Your last mail made kmail crash too...so i read it  manually in .Mail folder.

Maybe the PGP signature make kmail crash?

But other mails, which make kde crash too, don't have one...so..


Regards,

Gaetan.
Comment 3 Philip Rodrigues 2006-02-09 00:07:14 UTC
Can you get a backtrace with gdb? (ie, start up kmail in gdb, or attach gdb to a running kmail, since you say the crash dialog doesn't appear.)
Comment 4 Nicos Gollan 2006-02-22 18:32:23 UTC
I get the same thing with certain Spam mails apparently from Taiwan. I'll attach one to the bug, gzipped as it is including Spamassassin markup.

I tried running KMail in gdb. When the error occured, all I got was "Program exited normally.". Perhaps a problem in X.org's font rendering?
Comment 5 Nicos Gollan 2006-02-22 18:33:49 UTC
Created attachment 14816 [details]
zipped mail that makes KMail crash

Might cause trouble with KMail!
Comment 6 Nicos Gollan 2006-02-22 18:36:43 UTC
Sorry for so many mails in a short time, but I forgot to mention:

I'm using version 1.8.3, the error did not occur in whatever version debian was packaging for the 3.3.x KDE releases, this is the first time I saw this and I had several mails before that only now cause the crash.
Comment 7 Nicos Gollan 2006-02-23 13:32:30 UTC
Created attachment 14825 [details]
Another "crash-mail"

Another mail that causes the crash. Also contains asian characters, this time
it has a base64 encoded body.
Comment 8 Nicos Gollan 2006-02-24 01:26:17 UTC
It appears that the problem lies with the big5 encoded Subject header. After changing it, KMail doesn't crash anymore. The big5 part of the From: header works properly, even when set to the text causing the crash.

Also, KMail doesn't crash when the message view is set to "all headers" which as I see it doesn't do any formatting and doesn't respect encoding, and most of all *doesn't use bold fonts*! As soon as any of the Big5 encoded stuff is set in bold, KMail crashes.
Comment 9 Nicos Gollan 2006-02-24 02:14:16 UTC
Created attachment 14844 [details]
HTML file that makes Konqueror crash

OK, this could be bigger than just KMail or even KDE. I think it's a bug in QT.
I've created a little sample as an attachment, that COULD CRASH YOUR BROWSER!

There seems to be a problem with displaying that single line in bold. I've even
made QT Designer crash. To do this, just open the designer, make an empty form,
create a text label in there and copy the line in the HTML file into the label.
Then set the label text to bold. Makes the Designer crash every time, no matter
what font. (Got to be bold though, italic doesn't cause problems.) It dies
with:

designer-qt3: symbol lookup error: /usr/lib/libXft.so.2: undefined symbol:
FT_GlyphSlot_Embolden

When run from gdb:
Program exited with code 0177.
but no backtrace. It seems that Qt applications die "gracefully" there.

I'm using QT 3.3.5 from Debian testing packages. The designer from QT 4.1.0
does not seem to be affected. I tried GTK programs (katoob and Firefox) which
are also unaffected.
Comment 10 Nicos Gollan 2006-02-24 11:09:24 UTC
It appears that's a problem with some versions/packages of libXft2. See here:
http://lists.debian.org/debian-testing-changes/2006/02/msg00020.html

Downgrading to a 2.1.2 package solves the problem for me. Still, I'm wondering why only QT 3 is affected.
Comment 11 Philip Rodrigues 2006-02-24 11:43:28 UTC
Nice work tracking it down Nicos. I'll close as INVALID (ie, not a bug in KDE). If you find reason to believe that it's a bug in KMail, please reopen.