Bug 259821

Summary: program stops by add new mailads
Product: [Unmaintained] kmail Reporter: Steen Jespersgaard <itsteen>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: 1.13.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Steen Jespersgaard 2010-12-14 10:47:25 UTC
Application: kmail (1.13.5)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-23-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fe5033c8820 (LWP 2348))]

Thread 3 (Thread 0x7fe4eb346700 (LWP 2349)):
#0  0x00007fe4ffe24203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe4f6edf009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fe4f6edf7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007fe4ef34f0f4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007fe4f6f047e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fe4fd92a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007fe4ffe3092d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe4d7219700 (LWP 2351)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007fe50065eda2 in wait (this=<value optimized out>, mutex=0x2633d10, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2633d10, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fe500653da2 in QThreadPoolThread::run (this=0x2633ec0) at concurrent/qthreadpool.cpp:140
#4  0x00007fe50065e27e in QThreadPrivate::start (arg=0x2633ec0) at thread/qthread_unix.cpp:266
#5  0x00007fe4fd92a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007fe4ffe3092d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe5033c8820 (LWP 2348)):
[KCrash Handler]
#6  qobject_cast<QTreeModel*> (this=0x7fe500a837c0, item=0x1de4870, expand=false) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:455
#7  treeModel (this=0x7fe500a837c0, item=0x1de4870, expand=false) at ../../include/QtGui/private/../../../src/gui/itemviews/qtreewidget_p.h:222
#8  QTreeWidget::setItemExpanded (this=0x7fe500a837c0, item=0x1de4870, expand=false) at itemviews/qtreewidget.cpp:3140
#9  0x00007fe501cbd064 in setExpanded (this=0x240b8e0) at /usr/include/qt4/QtGui/qtreewidget.h:409
#10 KMail::FolderView::restoreItemStates (this=0x240b8e0) at ../../kmail/folderview.cpp:389
#11 0x00007fe501cc38c7 in KMail::FolderView::reload (this=0x240b8e0, openFoldersForUpdate=false) at ../../kmail/folderview.cpp:671
#12 0x00007fe501f03c07 in KMMainWidget::readConfig (this=0x21f0a40) at ../../kmail/kmmainwidget.cpp:593
#13 0x00007fe501f14d79 in KMMainWidget::KMMainWidget (this=0x21f0a40, parent=<value optimized out>, aGUIClient=<value optimized out>, actionCollection=<value optimized out>, config=...) at ../../kmail/kmmainwidget.cpp:232
#14 0x00007fe501c55153 in KMMainWin::KMMainWin (this=0x219ef70, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../kmail/kmmainwin.cpp:41
#15 0x00007fe501e2ffc7 in KMKernel::openReader (this=0x7fff75c44dc0, onlyCheck=false) at ../../kmail/kmkernel.cpp:422
#16 0x00007fe501e37468 in KMKernel::action (this=0x7fff75c44dc0, mailto=<value optimized out>, check=112, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=...) at ../../kmail/kmkernel.cpp:1939
#17 0x00007fe501e39c1c in KMKernel::handleCommandLine (this=<value optimized out>, noArgsOpensReader=<value optimized out>) at ../../kmail/kmkernel.cpp:368
#18 0x0000000000402612 in KMailApplication::newInstance (this=0x7fff75c44f30) at ../../kmail/main.cpp:87
#19 0x00007fe502dec976 in KUniqueApplicationAdaptor::newInstance (this=0x1d44bb0, asn_id=<value optimized out>, args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:440
#20 0x00007fe502decfb6 in KUniqueApplicationAdaptor::qt_metacall (this=0x1d44bb0, _c=QMetaObject::InvokeMetaMethod, _id=39991280, _a=0x7fff75c43fc0) at ./kuniqueapplication_p.moc:81
#21 0x00007fe4fdb630ee in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>) at qdbusintegrator.cpp:919
#22 0x00007fe4fdb6436f in QDBusConnectionPrivate::activateCall (this=<value optimized out>, object=0x1d44bb0, flags=337, msg=...) at qdbusintegrator.cpp:822
#23 0x00007fe4fdb64e65 in QDBusConnectionPrivate::activateObject (this=<value optimized out>, node=<value optimized out>, msg=..., pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1379
#24 0x00007fe4fdb65108 in QDBusActivateObjectEvent::placeMetaCall (this=0x229d350) at qdbusintegrator.cpp:1493
#25 0x00007fe500763bde in QObject::event (this=0x7fff75c44f30, e=0x7fe500a837c0) at kernel/qobject.cpp:1219
#26 0x00007fe500c40186 in QApplication::event (this=0x7fff75c44f30, e=0x229d350) at kernel/qapplication.cpp:2439
#27 0x00007fe500c3cfdc in QApplicationPrivate::notify_helper (this=0x1e308b0, receiver=0x7fff75c44f30, e=0x229d350) at kernel/qapplication.cpp:4396
#28 0x00007fe500c42aed in QApplication::notify (this=0x7fff75c44f30, receiver=0x7fff75c44f30, e=0x229d350) at kernel/qapplication.cpp:4277
#29 0x00007fe502de5156 in KApplication::notify (this=0x7fff75c44f30, receiver=0x7fff75c44f30, event=0x229d350) at ../../kdeui/kernel/kapplication.cpp:310
#30 0x00007fe500751cdc in QCoreApplication::notifyInternal (this=0x7fff75c44f30, receiver=0x7fff75c44f30, event=0x229d350) at kernel/qcoreapplication.cpp:732
#31 0x00007fe500754c22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1cfc150) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1cfc150) at kernel/qcoreapplication.cpp:1373
#33 0x00007fe50077e653 in sendPostedEvents (s=0x1e34000) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#34 postEventSourceDispatch (s=0x1e34000) at kernel/qeventdispatcher_glib.cpp:277
#35 0x00007fe4f6edb342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#36 0x00007fe4f6edf2a8 in ?? () from /lib/libglib-2.0.so.0
#37 0x00007fe4f6edf45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#38 0x00007fe50077e193 in QEventDispatcherGlib::processEvents (this=0x1cfb8a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#39 0x00007fe500cefa4e in QGuiEventDispatcherGlib::processEvents (this=0x7fe500a837c0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007fe500750a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#41 0x00007fe500750dec in QEventLoop::exec (this=0x7fff75c44d60, flags=) at kernel/qeventloop.cpp:201
#42 0x00007fe500754ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#43 0x0000000000403212 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../kmail/main.cpp:156

The crash can be reproduced some of the time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fe5033c8820 (LWP 2348))]

Thread 3 (Thread 0x7fe4eb346700 (LWP 2349)):
#0  0x00007fe4ffe24203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe4f6edf009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fe4f6edf7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007fe4ef34f0f4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007fe4f6f047e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fe4fd92a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007fe4ffe3092d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe4d7219700 (LWP 2351)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007fe50065eda2 in wait (this=<value optimized out>, mutex=0x2633d10, time=30000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2633d10, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fe500653da2 in QThreadPoolThread::run (this=0x2633ec0) at concurrent/qthreadpool.cpp:140
#4  0x00007fe50065e27e in QThreadPrivate::start (arg=0x2633ec0) at thread/qthread_unix.cpp:266
#5  0x00007fe4fd92a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007fe4ffe3092d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe5033c8820 (LWP 2348)):
[KCrash Handler]
#6  qobject_cast<QTreeModel*> (this=0x7fe500a837c0, item=0x1de4870, expand=false) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:455
#7  treeModel (this=0x7fe500a837c0, item=0x1de4870, expand=false) at ../../include/QtGui/private/../../../src/gui/itemviews/qtreewidget_p.h:222
#8  QTreeWidget::setItemExpanded (this=0x7fe500a837c0, item=0x1de4870, expand=false) at itemviews/qtreewidget.cpp:3140
#9  0x00007fe501cbd064 in setExpanded (this=0x240b8e0) at /usr/include/qt4/QtGui/qtreewidget.h:409
#10 KMail::FolderView::restoreItemStates (this=0x240b8e0) at ../../kmail/folderview.cpp:389
#11 0x00007fe501cc38c7 in KMail::FolderView::reload (this=0x240b8e0, openFoldersForUpdate=false) at ../../kmail/folderview.cpp:671
#12 0x00007fe501f03c07 in KMMainWidget::readConfig (this=0x21f0a40) at ../../kmail/kmmainwidget.cpp:593
#13 0x00007fe501f14d79 in KMMainWidget::KMMainWidget (this=0x21f0a40, parent=<value optimized out>, aGUIClient=<value optimized out>, actionCollection=<value optimized out>, config=...) at ../../kmail/kmmainwidget.cpp:232
#14 0x00007fe501c55153 in KMMainWin::KMMainWin (this=0x219ef70, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../kmail/kmmainwin.cpp:41
#15 0x00007fe501e2ffc7 in KMKernel::openReader (this=0x7fff75c44dc0, onlyCheck=false) at ../../kmail/kmkernel.cpp:422
#16 0x00007fe501e37468 in KMKernel::action (this=0x7fff75c44dc0, mailto=<value optimized out>, check=112, to=..., cc=..., bcc=..., subj=..., body=..., messageFile=..., attachURLs=..., customHeaders=...) at ../../kmail/kmkernel.cpp:1939
#17 0x00007fe501e39c1c in KMKernel::handleCommandLine (this=<value optimized out>, noArgsOpensReader=<value optimized out>) at ../../kmail/kmkernel.cpp:368
#18 0x0000000000402612 in KMailApplication::newInstance (this=0x7fff75c44f30) at ../../kmail/main.cpp:87
#19 0x00007fe502dec976 in KUniqueApplicationAdaptor::newInstance (this=0x1d44bb0, asn_id=<value optimized out>, args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:440
#20 0x00007fe502decfb6 in KUniqueApplicationAdaptor::qt_metacall (this=0x1d44bb0, _c=QMetaObject::InvokeMetaMethod, _id=39991280, _a=0x7fff75c43fc0) at ./kuniqueapplication_p.moc:81
#21 0x00007fe4fdb630ee in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>) at qdbusintegrator.cpp:919
#22 0x00007fe4fdb6436f in QDBusConnectionPrivate::activateCall (this=<value optimized out>, object=0x1d44bb0, flags=337, msg=...) at qdbusintegrator.cpp:822
#23 0x00007fe4fdb64e65 in QDBusConnectionPrivate::activateObject (this=<value optimized out>, node=<value optimized out>, msg=..., pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1379
#24 0x00007fe4fdb65108 in QDBusActivateObjectEvent::placeMetaCall (this=0x229d350) at qdbusintegrator.cpp:1493
#25 0x00007fe500763bde in QObject::event (this=0x7fff75c44f30, e=0x7fe500a837c0) at kernel/qobject.cpp:1219
#26 0x00007fe500c40186 in QApplication::event (this=0x7fff75c44f30, e=0x229d350) at kernel/qapplication.cpp:2439
#27 0x00007fe500c3cfdc in QApplicationPrivate::notify_helper (this=0x1e308b0, receiver=0x7fff75c44f30, e=0x229d350) at kernel/qapplication.cpp:4396
#28 0x00007fe500c42aed in QApplication::notify (this=0x7fff75c44f30, receiver=0x7fff75c44f30, e=0x229d350) at kernel/qapplication.cpp:4277
#29 0x00007fe502de5156 in KApplication::notify (this=0x7fff75c44f30, receiver=0x7fff75c44f30, event=0x229d350) at ../../kdeui/kernel/kapplication.cpp:310
#30 0x00007fe500751cdc in QCoreApplication::notifyInternal (this=0x7fff75c44f30, receiver=0x7fff75c44f30, event=0x229d350) at kernel/qcoreapplication.cpp:732
#31 0x00007fe500754c22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1cfc150) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1cfc150) at kernel/qcoreapplication.cpp:1373
#33 0x00007fe50077e653 in sendPostedEvents (s=0x1e34000) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#34 postEventSourceDispatch (s=0x1e34000) at kernel/qeventdispatcher_glib.cpp:277
#35 0x00007fe4f6edb342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#36 0x00007fe4f6edf2a8 in ?? () from /lib/libglib-2.0.so.0
#37 0x00007fe4f6edf45c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#38 0x00007fe50077e193 in QEventDispatcherGlib::processEvents (this=0x1cfb8a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#39 0x00007fe500cefa4e in QGuiEventDispatcherGlib::processEvents (this=0x7fe500a837c0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007fe500750a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#41 0x00007fe500750dec in QEventLoop::exec (this=0x7fff75c44d60, flags=) at kernel/qeventloop.cpp:201
#42 0x00007fe500754ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#43 0x0000000000403212 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../kmail/main.cpp:156

Possible duplicates by query: bug 259812, bug 254782, bug 252865, bug 252425.

Reported using DrKonqi
Comment 1 Dario Andres 2010-12-14 14:03:56 UTC
[Comment from a bug triager]
This issue is being tracked at bug 254781 / bug 184324. Merging.
There are some workarounds at bug 254781 comment 5 and bug 254781 comment 7
Thanks

*** This bug has been marked as a duplicate of bug 254781 ***