[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Mail crashing KMail....
From:       Maarten ter Huurne <mth () stack ! nl>
Date:       2001-06-07 21:44:03
[Download RAW message or body]

On Wednesday 06 June 2001 20:20, Christian A Strømmen [Number1/NumeroUno] 
wrote:

> I just recompiled from a fresh cvs checkout here today, started up kde &
> kmail, checked my mail, and poff... kmail crashed..

Same thing happened here, when I opened the message you attached.
KMail from kdenetwork-2.1.1 using kdelibs-2.1.1.

> It appears that a junk-mail that was sent to me has some code that makes
> kmail crash..  I've attached the mail as a text-file.  Could somebody
> please look into this?  A mail shouldn't be able to take down kmail..

I ran some experiments and found the problem: KMail crashes while displaying 
a very long line. The junk-mail doesn't seem to have long lines at first 
sight, but because of the "message/rfc822" encoding the huge string becomes a 
single line when it's displayed.

The following program creates a simple text file containing a really long 
line:
===
int main()
{
    int i;
    printf("The next line is really long:\n");
    for (i = 0; i < 1000; i++) {
        printf("0123456789");
    }
    printf("\nIt's over now.\n");
    return 0;
}
===
Redirect this program's output to a file. Then attach that file to a newly 
composed message in KMail. Then right-click the attachment and select "view". 
KMail will crash (on this machine, anyway).

This is the trace:
   0x41010ee9 in __wait4 () from /usr/local/lib/libc.so.6
#0  0x41010ee9 in __wait4 () from /usr/local/lib/libc.so.6
#1  0x4106d658 in __DTOR_END__ () from /usr/local/lib/libc.so.6
#2  0x408802a0 in KCrash::defaultCrashHandler ()
   from /usr/kde2.1.1/lib/libkdecore.so.3
#3  <signal handler called>
#4  0x41080681 in XftRenderExtents16 () from /usr/X11R6/lib/libXft.so.1
#5  0x41079370 in XftTextExtents16 () from /usr/X11R6/lib/libXft.so.1
#6  0x40a64283 in QFontMetrics::width () from /usr/qt/lib/libqt.so.2
#7  0x750072 in ?? ()

I am wondering if this is really a KMail bug. I'm using Qt 2.3.0 and XFree86 
4.0.2. Can anyone with different versions run the test and report whether or 
not your KMail crashes? Especially if you have either a newer XFree86 (4.0.3 
or 4.1) or one without the render extension built in.

If you have trouble restarting KMail after this test, rename "dead-letter" in 
your home dir to something else. Isn't it ironic that the very file that is 
meant to make crashes less painful can actually be the source of another 
crash?

Bye,
		Maarten
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic