Bug 182629 - KMail crashes after saving an email to file and then replying to an email
Summary: KMail crashes after saving an email to file and then replying to an email
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.10.3
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: junior-jobs
: 186322 207934 222651 230355 242746 247139 248835 263779 266085 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-31 22:10 UTC by Etienne
Modified: 2011-11-25 21:14 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Etienne 2009-01-31 22:10:05 UTC
Version:           1.10.3 (using 4.1.3 (KDE 4.1.3), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.27-11-generic

To reproduce:

1. Right-click on an Email and Save As...
2. After saving, click on Reply.
3. Application crashes.


I can reproduce at will doing these steps.



Application: KMail (kmail), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb411d6c0 (LWP 20628)]
[New Thread 0xb10f9b90 (LWP 20771)]
(no debugging symbols found)
...
(no debugging symbols found)
[KCrash handler]
#6  0x09677e28 in ?? ()
#7  0xb77057d3 in KMCommand::qt_metacall () from /usr/lib/libkmailprivate.so.4
#8  0xb7705e22 in KMReplyToCommand::qt_metacall ()
   from /usr/lib/libkmailprivate.so.4
#9  0xb7e35a60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb7e367e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0xb7e3bdb7 in ?? () from /usr/lib/libQtCore.so.4
#12 0xb7e3bedc in ?? () from /usr/lib/libQtCore.so.4
#13 0xb7e3053f in QObject::event () from /usr/lib/libQtCore.so.4
#14 0xb670f8ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#15 0xb671772e in QApplication::notify () from /usr/lib/libQtGui.so.4
#16 0xb70a6b2d in KApplication::notify () from /usr/lib/libkdeui.so.5
#17 0xb7e20e61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#18 0xb7e4ed81 in ?? () from /usr/lib/libQtCore.so.4
#19 0xb7e4b520 in ?? () from /usr/lib/libQtCore.so.4
#20 0xb62d66f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0xb62d9da3 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0xb62d9f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0xb7e4b478 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#24 0xb67a9ea5 in ?? () from /usr/lib/libQtGui.so.4
#25 0xb7e1f52a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#26 0xb7e1f6ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#27 0xb7e21da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#28 0xb670f767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#29 0x0804a6c0 in _start ()
#0  0xb7f34430 in __kernel_vsyscall ()
Comment 1 Christophe Marin 2009-02-01 14:39:11 UTC
Thank you for your report.
Unfortunately, your backtrace is not helpful.

As you are able to reproduce this crash, can you please install the debug package and provide a better one ?

You will find more informations on this page :
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 2 Etienne 2009-02-01 22:12:34 UTC
There you go -- that's with the debug installed


Application: KMail (kmail), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb410b6c0 (LWP 30143)]
[KCrash handler]
#6  0x096cb0b5 in ?? ()
#7  0xb76f37d3 in KMCommand::qt_metacall (this=0x9712d78, 
    _c=QMetaObject::InvokeMetaMethod, _id=157371552, _a=0x9712d78)
    at /build/buildd/kdepim-4.1.3/obj-i486-linux-gnu/kmail/kmcommands.moc:85
#8  0xb76f3e22 in KMReplyToCommand::qt_metacall (this=0x9712d78, 
    _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfe23da8)
    at /build/buildd/kdepim-4.1.3/obj-i486-linux-gnu/kmail/kmcommands.moc:822
#9  0xb7e23a60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb7e247e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0xb7e29db7 in ?? () from /usr/lib/libQtCore.so.4
#12 0xb7e29edc in ?? () from /usr/lib/libQtCore.so.4
#13 0xb7e1e53f in QObject::event () from /usr/lib/libQtCore.so.4
#14 0xb66fd8ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#15 0xb670572e in QApplication::notify () from /usr/lib/libQtGui.so.4
#16 0xb7094b2d in KApplication::notify (this=0xbfe24558, receiver=0x9766c40, 
    event=0xbfe2423c)
    at /build/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#17 0xb7e0ee61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#18 0xb7e3cd81 in ?? () from /usr/lib/libQtCore.so.4
#19 0xb7e39520 in ?? () from /usr/lib/libQtCore.so.4
#20 0xb62c46f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0xb62c7da3 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0xb62c7f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0xb7e39478 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#24 0xb6797ea5 in ?? () from /usr/lib/libQtGui.so.4
#25 0xb7e0d52a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#26 0xb7e0d6ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#27 0xb7e0fda5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#28 0xb66fd767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#29 0x0804a6c0 in main (argc=1869762599, argv=0x74726570)
    at /build/buildd/kdepim-4.1.3/kmail/main.cpp:146
#0  0xb7f22430 in __kernel_vsyscall ()
Comment 3 Jaime Torres 2009-02-07 12:56:43 UTC
Confirmed in opensuse with kde 4.2.0. Save As, reply, crash.

#5  0x0000000000865820 in ?? ()
#6  0x00007f74f6849c7e in KMCommand::slotStart (this=0x263ee40) at /usr/src/debug/kdepim-4.2.0/kmail/kmcommands.cpp:249
#7  0x00007f74f683fe22 in KMCommand::qt_metacall (this=0x263ee40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffffa88d00)
    at /usr/src/debug/kdepim-4.2.0/build/kmail/kmcommands.moc:85
#8  0x00007f74f4308284 in QMetaObject::activate (sender=0x24eb990, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xcb59d0) at kernel/qobject.cpp:3031
#9  0x00007f74f430e5af in QSingleShotTimer::timerEvent (this=0x24eb990) at kernel/qtimer.cpp:294
#10 0x00007f74f4302bb3 in QObject::event (this=0x24eb990, e=0x0) at kernel/qobject.cpp:1120
#11 0x00007f74f30c717d in QApplicationPrivate::notify_helper (this=0x63fd30, receiver=0x24eb990, e=0x7fffffa89410) at kernel/qapplication.cpp:3803
#12 0x00007f74f30cef2a in QApplication::notify (this=0x7fffffa89920, receiver=0x24eb990, e=0x7fffffa89410) at kernel/qapplication.cpp:3768
#13 0x00007f74f748cb1b in KApplication::notify (this=0x7fffffa89920, receiver=0x24eb990, event=0x7fffffa89410) at /usr/src/debug/kdelibs-4.2.0/kdeui/kernel/kapplication.cpp:307
#14 0x00007f74f42f3e81 in QCoreApplication::notifyInternal (this=0x7fffffa89920, receiver=0x24eb990, event=0x7fffffa89410) at kernel/qcoreapplication.cpp:587
#15 0x00007f74f43200d0 in QTimerInfoList::activateTimers (this=0x643480) at kernel/qcoreapplication.h:209
#16 0x00007f74f431c44d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:160
#17 0x00007f74e997f0db in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f74e99828ad in ?? () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f74e9982a6b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#20 0x00007f74f431c3af in QEventDispatcherGlib::processEvents (this=0x637620, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#21 0x00007f74f3157d0f in QGuiEventDispatcherGlib::processEvents (this=0xda4420, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#22 0x00007f74f42f2782 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -5728464}) at kernel/qeventloop.cpp:143
#23 0x00007f74f42f290d in QEventLoop::exec (this=0x7fffffa89770, flags={i = -5728384}) at kernel/qeventloop.cpp:194
#24 0x00007f74f42f4dfd in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#25 0x0000000000402deb in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.2.0/kmail/main.cpp:146
Comment 4 Johan Thelmen 2009-03-15 16:45:55 UTC
Same in Kubuntu jaunty KDE 4.2.1, QT4.5

(gdb) bt                                            
#0  0x0000000002ded3f0 in ?? ()                     
#1  0x00007fd8b1c168de in KMCommand::slotStart (this=0x2dae290) at /build/buildd/kdepim-4.2.1/kmail/kmcommands.cpp:249
#2  0x00007fd8b1c078b2 in KMCommand::qt_metacall (this=0x2dae290, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffbaf0d3c0)
    at /build/buildd/kdepim-4.2.1/obj-x86_64-linux-gnu/kmail/kmcommands.moc:86                                                                   
#3  0x00007fd8ae44d1f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4                                                                  
#4  0x00007fd8ae45252f in ?? () from /usr/lib/libQtCore.so.4                                                                                     
#5  0x00007fd8ae4474d3 in QObject::event () from /usr/lib/libQtCore.so.4                                                                         
#6  0x00007fd8aeb7c83d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4                                                      
#7  0x00007fd8aeb84a2a in QApplication::notify () from /usr/lib/libQtGui.so.4                                                                    
#8  0x00007fd8b2903e7b in KApplication::notify (this=0x7fffbaf0dee0, receiver=0xd7ae70, event=0x7fffbaf0da80) at /build/buildd/kde4libs-4.2.1a/kdeui/kernel/kapplication.cpp:307
#9  0x00007fd8ae43775c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4                                                                                      
#10 0x00007fd8ae4647f6 in ?? () from /usr/lib/libQtCore.so.4                                                                                                                    
#11 0x00007fd8ae460f0d in ?? () from /usr/lib/libQtCore.so.4                                                                                                                    
#12 0x00007fd8a553319a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0                                                                                             
#13 0x00007fd8a5536870 in ?? () from /usr/lib/libglib-2.0.so.0                                                                                                                  
#14 0x00007fd8a5536a0c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0                                                                                            
#15 0x00007fd8ae460e6f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4                                                                                   
#16 0x00007fd8aec14c9f in ?? () from /usr/lib/libQtGui.so.4                                                                                                                     
#17 0x00007fd8ae436002 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4                                                                                             
#18 0x00007fd8ae4363cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4                                                                                                      
#19 0x00007fd8ae438694 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4                                                                                                
#20 0x000000000040309b in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/kdepim-4.2.1/kmail/main.cpp:146                                        
(gdb) frame 1                                                                                                                                                                   
#1  0x00007fd8b1c168de in KMCommand::slotStart (this=0x2dae290) at /build/buildd/kdepim-4.2.1/kmail/kmcommands.cpp:249                                                          
249       if ( ( mb ) && ( mMsgList.count() == 1 ) && ( mb->isMessage() ) &&                                                                                                    
(gdb) print mb                                                                                                                                                                  
$1 = (class KMMsgBase *) 0x289c3b0                                                                                                                                              
(gdb) print this                                                                                                                                                                
$2 = (KMCommand * const) 0x2dae290                                                                                                                                              
(gdb) list
244
245       KMMsgBase *mb = 0;
246       if ( mMsgList.size() > 0 )
247         mb = *(mMsgList.begin());
248
249       if ( ( mb ) && ( mMsgList.count() == 1 ) && ( mb->isMessage() ) &&
250            ( mb->parent() == 0 ) )
251       {
252         // Special case of operating on message that isn't in a folder
253         mRetrievedMsgs.append((KMMessage*)mMsgList.takeFirst());
(gdb) print mMsgList.count()
Cannot evaluate function -- may be inlined
(gdb) print mb->isMessage()
[Thread 0x7fd89429c950 (LWP 26256) exited]
Program received signal SIGSEGV, Segmentation fault.
0x0000000002ded3f0 in ?? ()

Problem with the isMessage?
Comment 5 Christophe Marin 2009-09-21 23:38:11 UTC
*** Bug 186322 has been marked as a duplicate of this bug. ***
Comment 6 Christophe Marin 2009-09-21 23:38:58 UTC
*** Bug 207934 has been marked as a duplicate of this bug. ***
Comment 7 Björn Ruberg 2010-03-14 01:00:12 UTC
*** Bug 222651 has been marked as a duplicate of this bug. ***
Comment 8 Björn Ruberg 2010-03-14 01:00:26 UTC
*** Bug 230355 has been marked as a duplicate of this bug. ***
Comment 9 Björn Ruberg 2010-08-07 18:51:25 UTC
*** Bug 242746 has been marked as a duplicate of this bug. ***
Comment 10 Nicolas L. 2010-08-10 11:04:17 UTC
*** Bug 247139 has been marked as a duplicate of this bug. ***
Comment 11 George Metaxas 2010-11-17 11:56:47 UTC
I think that this issue may have been resolved. I am following the steps described above, and I'm not getting a crash. 
Using KDE 4.5.3, KMail 1.13.5 and Qt 4.6.3.
Comment 12 Christophe Marin 2011-01-22 14:31:54 UTC
*** Bug 263779 has been marked as a duplicate of this bug. ***
Comment 13 Christophe Marin 2011-02-11 16:57:57 UTC
*** Bug 266085 has been marked as a duplicate of this bug. ***
Comment 14 Christophe Marin 2011-02-14 16:14:12 UTC
*** Bug 248835 has been marked as a duplicate of this bug. ***
Comment 15 Christophe Marin 2011-04-24 21:51:32 UTC
(In reply to comment #3)
> Confirmed in opensuse with kde 4.2.0. Save As, reply, crash.
> 
Cannot reproduce with kmail2. Was anyone able to reproduce that with kdepim 4.6 beta 5 ?
Comment 16 BRULE Herman 2011-04-24 22:15:23 UTC
Here have bug with: kdepim & kmail 4.4.11.1
Comment 17 Christophe Marin 2011-11-25 21:14:40 UTC
(In reply to comment #15)
> (In reply to comment #3)
> > Confirmed in opensuse with kde 4.2.0. Save As, reply, crash.
> > 
> Cannot reproduce with kmail2. Was anyone able to reproduce that with kdepim 4.6
> beta 5 ?

No feedback. Closing then