Bug 221620 - kmail allways crash while filtering an imap-account
Summary: kmail allways crash while filtering an imap-account
Status: RESOLVED DUPLICATE of bug 212706
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-07 10:08 UTC by Hendrik Lehmbruch
Modified: 2010-01-09 18:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Lehmbruch 2010-01-07 10:08:36 UTC
Application that crashed: kmail
Version of the application: 1.12.4
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.3
Operating System: Linux 2.6.32-2.slh.7-sidux-686 i686
Distribution: Debian GNU/Linux unstable (sid)

What I was doing when the application crashed:
if i mark all mails with ctrl+a and then start the filter with ctrl+j kmail always crash.


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

Thread 5 (Thread 0xaf8f1b70 (LWP 3946)):
#0  0xb77e2424 in __kernel_vsyscall ()
#1  0xb4d0e0a5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb5bd17ed in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb675e5c2 in QWaitConditionPrivate::wait (this=0x84a70e0, mutex=0x84a5998, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x84a70e0, mutex=0x84a5998, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb50c3648 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x84a70c8, th=0x8afddd8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb50c63ac in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x84a6228, th=0x8afddd8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb50c223b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x84a70c8, th=0x8afddd8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb50c64a2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x84a6228, th=0x8afddd8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb50c3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x84a70c8, th=0x8afddd8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb50c64c1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x84a6228, th=0x8afddd8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0xb50c3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x84a70c8, th=0x8afddd8, previous=0x8b2c2b8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0xb50c44be in ThreadWeaver::ThreadRunHelper::run (this=0xaf8f1330, parent=0x84a70c8, th=0x8afddd8) at ../../../threadweaver/Weaver/Thread.cpp:87
#13 0xb50c4afb in ThreadWeaver::Thread::run (this=0x8afddd8) at ../../../threadweaver/Weaver/Thread.cpp:142
#14 0xb675d5e2 in QThreadPrivate::start (arg=0x8afddd8) at thread/qthread_unix.cpp:188
#15 0xb4d0a585 in start_thread () from /lib/i686/cmov/libpthread.so.0
#16 0xb5bc427e in clone () from /lib/i686/cmov/libc.so.6

Thread 4 (Thread 0xb0127b70 (LWP 3950)):
#0  0xb5bd19c0 in pthread_mutex_unlock () from /lib/i686/cmov/libc.so.6
#1  0xb3e020ae in ?? () from /usr/lib/libxcb.so.1
#2  0xb3e026ee in ?? () from /usr/lib/libxcb.so.1
#3  0xb3e02a97 in xcb_writev () from /usr/lib/libxcb.so.1
#4  0xb59a9432 in _XSend () from /usr/lib/libX11.so.6
#5  0xb59a9603 in _XReply () from /usr/lib/libX11.so.6
#6  0xb5987023 in XGetWindowProperty () from /usr/lib/libX11.so.6
#7  0xb59862d7 in XGetWMHints () from /usr/lib/libX11.so.6
#8  0xb5f1daef in QWidgetPrivate::setWindowIcon_sys (this=0x8a2aab0, forceReset=false) at kernel/qwidget_x11.cpp:1326
#9  0xb5ee5fc0 in QWidget::create (this=0x8363700, window=0, initializeWindow=<value optimized out>, destroyOldWindow=<value optimized out>) at kernel/qwidget.cpp:1283
#10 0xb5ee0fbb in QWidgetPrivate::createWinId (this=0x8a2aab0, winid=0) at kernel/qwidget.cpp:2187
#11 0xb5ee564b in QWidgetPrivate::setWindowTitle_helper (this=0x8a2aab0, title=...) at kernel/qwidget.cpp:5375
#12 0xb5ee5a92 in QWidget::setWindowTitle (this=0x8363700, title=...) at kernel/qwidget.cpp:5406
#13 0xb757ab8c in KDialog::setPlainCaption (this=0x8363700, caption=...) at ../../kdeui/dialogs/kdialog.cpp:462
#14 0xb757d110 in KDialogPrivate::init (this=0x8ae9480, q=0x8363700) at ../../kdeui/dialogs/kdialog.cpp:174
#15 0xb757d33c in KDialog (this=0x8363700, parent=0x0, flags=...) at ../../kdeui/dialogs/kdialog.cpp:185
#16 0xb75918dd in KMessageBox::errorListWId (parent_id=0, text=..., strlist=..., caption=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:832
#17 0xb7591ce1 in KMessageBox::error (parent=0x0, text=..., caption=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:813
#18 0xb6d16a35 in KMKernel::emergencyExit (this=0xbfe49d50, reason=...) at ../../kmail/kmkernel.cpp:2009
#19 0xb6cfd39a in KMFolderMaildir::addMsgInternal (this=0x8a94cd0, aMsg=0x8a8c360, index_return=0x0, stripUid=false) at ../../kmail/kmfoldermaildir.cpp:486
#20 0xb6cfd84b in KMFolderMaildir::addMsg (this=0x8a94cd0, aMsg=0x8a8c360, index_return=0x0) at ../../kmail/kmfoldermaildir.cpp:334
#21 0xb6bdca45 in KMFolder::addMsg (this=0x89f37d0, msg=0x8a8c360, index_return=0x0) at ../../kmail/kmfolder.cpp:437
#22 0xb6c5d466 in PipeJob::run() () from /usr/lib/libkmailprivate.so.4
#23 0xb50c54f4 in ThreadWeaver::JobRunHelper::runTheJob (this=0xb01272c8, th=0x8ad6348, job=0x8a7a998) at ../../../threadweaver/Weaver/Job.cpp:106
#24 0xb50c5871 in ThreadWeaver::Job::execute (this=0x8a7a998, th=0x8ad6348) at ../../../threadweaver/Weaver/Job.cpp:135
#25 0xb50c448a in ThreadWeaver::ThreadRunHelper::run (this=0xb0127330, parent=0x84a70c8, th=0x8ad6348) at ../../../threadweaver/Weaver/Thread.cpp:95
#26 0xb50c4afb in ThreadWeaver::Thread::run (this=0x8ad6348) at ../../../threadweaver/Weaver/Thread.cpp:142
#27 0xb675d5e2 in QThreadPrivate::start (arg=0x8ad6348) at thread/qthread_unix.cpp:188
#28 0xb4d0a585 in start_thread () from /lib/i686/cmov/libpthread.so.0
#29 0xb5bc427e in clone () from /lib/i686/cmov/libc.so.6

Thread 3 (Thread 0xaec28b70 (LWP 3953)):
#0  0xb77e2424 in __kernel_vsyscall ()
#1  0xb4d0e0a5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb5bd17ed in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb675e5c2 in QWaitConditionPrivate::wait (this=0x84a70e0, mutex=0x84a5998, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x84a70e0, mutex=0x84a5998, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb50c3648 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x84a70c8, th=0x8720c48) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb50c63ac in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x84a6228, th=0x8720c48) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb50c223b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x84a70c8, th=0x8720c48) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb50c64a2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x84a6228, th=0x8720c48) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb50c3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x84a70c8, th=0x8720c48, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb50c64c1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x84a6228, th=0x8720c48) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0xb50c3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x84a70c8, th=0x8720c48, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0xb50c64c1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x84a6228, th=0x8720c48) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#13 0xb50c3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x84a70c8, th=0x8720c48, previous=0x88b1680) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#14 0xb50c44be in ThreadWeaver::ThreadRunHelper::run (this=0xaec28330, parent=0x84a70c8, th=0x8720c48) at ../../../threadweaver/Weaver/Thread.cpp:87
#15 0xb50c4afb in ThreadWeaver::Thread::run (this=0x8720c48) at ../../../threadweaver/Weaver/Thread.cpp:142
#16 0xb675d5e2 in QThreadPrivate::start (arg=0x8720c48) at thread/qthread_unix.cpp:188
#17 0xb4d0a585 in start_thread () from /lib/i686/cmov/libpthread.so.0
#18 0xb5bc427e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xae427b70 (LWP 3956)):
#0  0xb77e2424 in __kernel_vsyscall ()
#1  0xb4d0e0a5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb5bd17ed in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb675e5c2 in QWaitConditionPrivate::wait (this=0x84a70e0, mutex=0x84a5998, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x84a70e0, mutex=0x84a5998, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb50c3648 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x84a70c8, th=0x89f8520) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb50c63ac in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x84a6228, th=0x89f8520) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb50c223b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x84a70c8, th=0x89f8520) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb50c64a2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x84a6228, th=0x89f8520) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb50c3bd3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x84a70c8, th=0x89f8520, previous=0x8a64b80) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb50c44be in ThreadWeaver::ThreadRunHelper::run (this=0xae427330, parent=0x84a70c8, th=0x89f8520) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb50c4afb in ThreadWeaver::Thread::run (this=0x89f8520) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb675d5e2 in QThreadPrivate::start (arg=0x89f8520) at thread/qthread_unix.cpp:188
#13 0xb4d0a585 in start_thread () from /lib/i686/cmov/libpthread.so.0
#14 0xb5bc427e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb364a700 (LWP 3940)):
[KCrash Handler]
#6  KMail::ActionScheduler::actionMessage (this=0x8b2f628, res=KMFilterAction::GoOn) at ../../kmail/actionscheduler.cpp:675
#7  0xb6c1ec9c in KMail::ActionScheduler::filterMessage (this=0x8b2f628) at ../../kmail/actionscheduler.cpp:648
#8  0xb6c1f0d4 in KMail::ActionScheduler::qt_metacall (this=0x8b2f628, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfe49608) at ./actionscheduler.moc:124
#9  0xb6863303 in QMetaObject::activate (sender=0x880ba00, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3112
#10 0xb6863f42 in QMetaObject::activate (sender=0x880ba00, m=0xb693fd84, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3186
#11 0xb689eb37 in QTimer::timeout (this=0x880ba00) at .moc/release-shared/moc_qtimer.cpp:128
#12 0xb686965e in QTimer::timerEvent (this=0x880ba00, e=0xbfe49a8c) at kernel/qtimer.cpp:261
#13 0xb685e39f in QObject::event (this=0x880ba00, e=0xbfe49a8c) at kernel/qobject.cpp:1074
#14 0xb5e8da94 in QApplicationPrivate::notify_helper (this=0x82fb1b8, receiver=0x880ba00, e=0xbfe49a8c) at kernel/qapplication.cpp:4065
#15 0xb5e95bee in QApplication::notify (this=0xbfe49e00, receiver=0x880ba00, e=0xbfe49a8c) at kernel/qapplication.cpp:3605
#16 0xb761362d in KApplication::notify (this=0xbfe49e00, receiver=0x880ba00, event=0xbfe49a8c) at ../../kdeui/kernel/kapplication.cpp:302
#17 0xb684e1eb in QCoreApplication::notifyInternal (this=0xbfe49e00, receiver=0x880ba00, event=0xbfe49a8c) at kernel/qcoreapplication.cpp:610
#18 0xb687ce21 in QCoreApplication::sendEvent (this=0x82910ac) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#19 QTimerInfoList::activateTimers (this=0x82910ac) at kernel/qeventdispatcher_unix.cpp:580
#20 0xb6879317 in timerSourceDispatch (source=0x8291500) at kernel/qeventdispatcher_glib.cpp:184
#21 idleTimerSourceDispatch (source=0x8291500) at kernel/qeventdispatcher_glib.cpp:231
#22 0xb3f7fb38 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0xb3f833d0 in ?? () from /lib/libglib-2.0.so.0
#24 0xb3f83503 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#25 0xb6879041 in QEventDispatcherGlib::processEvents (this=0x825f900, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#26 0xb5f2d305 in QGuiEventDispatcherGlib::processEvents (this=0x825f900, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#27 0xb684c83a in QEventLoop::processEvents (this=0xbfe49d00, flags=...) at kernel/qeventloop.cpp:149
#28 0xb684cc82 in QEventLoop::exec (this=0xbfe49d00, flags=...) at kernel/qeventloop.cpp:201
#29 0xb684f0d9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#30 0xb5e8d917 in QApplication::exec () at kernel/qapplication.cpp:3525
#31 0x0804a6e2 in main (argc=3, argv=0xbfe49f94) at ../../kmail/main.cpp:146

This bug may be a duplicate of or related to bug 211507

Reported using DrKonqi
Comment 1 Jonathan Thomas 2010-01-07 21:24:17 UTC

*** This bug has been marked as a duplicate of bug 212706 ***
Comment 2 Christoph Feck 2010-01-09 18:56:09 UTC
The crash probably happens because KMail uses GUI functions inside thread 4. One would have to check why KMFolderMaildir::addMsgInternal could cause an emergency exit, and why GUI functions need to be called there.
Comment 3 Christoph Feck 2010-01-09 18:58:33 UTC
At least it isn't a duplicate. There is no KMSearchPattern in this backtrace.