By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 132

Summary: kmail composer crashes when closing (reproducible)
Product: TDE Reporter: Gilles Schintgen <gilles>
Component: tdepimAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: critical CC: acinonyx, bugwatch, darrella, panamajo, vizzy
Priority: P4    
Version: 3.5.10   
Hardware: i386   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:

Description Gilles Schintgen 2009-11-15 07:29:29 CST
First of all, thanks a lot for maintaining KDE3 builds for the newer Kubuntu versions.

Unfortunately kmail is quite unusable. *Each* time I close the composer (by clicking the window decoration "X" or by clicking the "send" button), kmail crashes instantly.

Here's the backtrace as given by KDE's crash handler:

[Thread debugging using libthread_db enabled]
[New Thread 0xb5ba4b70 (LWP 2910)]
[New Thread 0xb63a5b70 (LWP 2909)]
[New Thread 0xb6ba6b70 (LWP 2908)]
[New Thread 0xb73a7b70 (LWP 2907)]
[KCrash handler]
#6  0x072e3131 in DCOPObject::~DCOPObject() () from /opt/kde3/lib/libDCOP.so.4
#7  0x004b805d in KMComposeWin::~KMComposeWin() ()
   from /opt/kde3/lib/libkmailprivate.so
#8  0x061dd4f0 in QObject::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#9  0x06216e2c in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#10 0x062d7e12 in QMainWindow::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#11 0x0040e8a2 in KMComposeWin::event(QEvent*) ()
   from /opt/kde3/lib/libkmailprivate.so
#12 0x061784b7 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#13 0x061793fb in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#14 0x014fd71c in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#15 0x0617a5c7 in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/lib/libqt-mt.so.3
#16 0x0617a756 in QApplication::sendPostedEvents() ()
   from /usr/lib/libqt-mt.so.3
#17 0x0612260d in QEventLoop::processEvents(unsigned int) ()
   from /usr/lib/libqt-mt.so.3
#18 0x061914b0 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#19 0x06191356 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#20 0x06178b0f in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#21 0x0804a684 in ?? ()
#22 0x017d9b56 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#23 0x0804a3c1 in ?? ()

This crash also happens (reproducibly) with a fresh user account, so it can't be caused by the old configuration files that I copied over to the .kde3 folder of my main account.

I'm using KDE3.5 on a fresh Karmic install (installed from the KDE3-image made available on your website).

Any help is appreciated.
Comment 1 vizzy 2009-11-20 05:15:38 CST
I come to this website to report this exact Kmail bug.

At first, I suspected something was corrupted in my Kmail setttings/mail folder after transferring it from Kubuntu 8.04. But after numerous tries I finally went to try Live CD of this Karmic KDE3 distribution and this bug can be re-produces on Live CD as well.

Just start Kmail, compose new message and hit window close or send. The crash seem to occur on 'new message' window close.
Comment 2 Timothy Pearson 2009-11-20 12:15:36 CST
Can someone install the kdepim-dbg package (the debugging symbols) and regenerate the backtrace?

Thanks!
Comment 3 Vasilis Tsiligiannis 2009-11-22 17:40:25 CST
(In reply to comment #2)
> Can someone install the kdepim-dbg package (the debugging symbols) and
> regenerate the backtrace?
> 
> Thanks!

I can reproduce it both on x86 and AMD64.

Here is the backtrace with debug symbols:

[Thread debugging using libthread_db enabled]
[New Thread 0x7fca20628910 (LWP 25407)]
[New Thread 0x7fca20e29910 (LWP 25406)]
[New Thread 0x7fca2162a910 (LWP 25405)]
[New Thread 0x7fca21e2b910 (LWP 25404)]
[KCrash handler]
#5  0x00007fca284e32f7 in ~DCOPObject (this=0x2c31fc8, 
    __in_chrg=<value optimised out>)
    at /build/buildd/kdelibs-kde3-3.5.10/./dcop/dcopobject.cpp:81
#6  0x00007fca2e5ff946 in ~KMComposeWin (this=0x2c31940, 
    __in_chrg=<value optimised out>, __vtt_parm=<value optimised out>)
    at /build/buildd/kdepim-kde3-3.5.10/./kmail/kmcomposewin.cpp:490
#7  0x00007fca2773513a in QObject::event (this=0x2c31940, e=0x2c971d0)
    at kernel/qobject.cpp:753
#8  0x00007fca27768d93 in QWidget::event (this=0x2c31fc8, e=0x0)
    at kernel/qwidget.cpp:4681
#9  0x00007fca276d6785 in QApplication::internalNotify (
    this=<value optimised out>, receiver=0x2c31940, e=0x2c971d0)
    at kernel/qapplication.cpp:2638
#10 0x00007fca276d752e in QApplication::notify (this=0x7fffd594cbe0, 
    receiver=0x2c31940, e=0x2c971d0) at kernel/qapplication.cpp:2526
#11 0x00007fca288d4a64 in KApplication::notify (this=0x7fffd594cbe0, 
    receiver=0x2c31940, event=0x2c971d0)
    at /build/buildd/kdelibs-kde3-3.5.10/./kdecore/kapplication.cpp:550
#12 0x00007fca276d8483 in QApplication::sendEvent (receiver=0x0, 
    event_type=<value optimised out>) at kernel/qapplication.h:523
#13 QApplication::sendPostedEvents (receiver=0x0, 
    event_type=<value optimised out>) at kernel/qapplication.cpp:3302
#14 0x00007fca27687495 in QEventLoop::processEvents (this=0x1d62ff0, flags=0)
    at kernel/qeventloop_x11.cpp:205
#15 0x00007fca276ed5c1 in QEventLoop::enterLoop (this=0x1d62ff0)
    at kernel/qeventloop.cpp:201
#16 0x00007fca276ed472 in QEventLoop::exec (this=0x2c31fc8)
    at kernel/qeventloop.cpp:148
#17 0x0000000000402f13 in main (argc=<value optimised out>, 
    argv=0x7fffd594cea8)
    at /build/buildd/kdepim-kde3-3.5.10/./kmail/main.cpp:110
Current language:  auto
The current source language is "auto; currently c".
Comment 4 Timothy Pearson 2009-12-04 01:58:13 CST
STATUS UPDATE
This bug has been traced at length to a regression in gcc, specifically in the interaction of the Kmail KMCompiserWin class and gcc4.4.  Compilation under gcc4.3, with no other changes, results in a working, stable Kmail program.

I will simply recompile with gcc4.3 on the PPA, as there is no reason to move to 4.4 in this instance.  Hopefully with time gcc4 will stabilize and I will be able to recompile against it for Lucid.
Comment 5 Timothy Pearson 2009-12-06 13:02:34 CST
Fix uploaded in kdepim-kde3 4:3.5.10-0ubuntu4.

Thanks for reporting!
Comment 6 Timothy Pearson 2012-01-31 19:04:46 CST
*** Bug 830 has been marked as a duplicate of this bug. ***