Bug 191677

Summary: KMail crashed (2 pop receivers from the same account&server) (QString::operator=, KPIM::ProgressItem::setStatus,setStatusMsgTransmissionCompleted)
Product: [Applications] kmail Reporter: Petr Herynk <pherynk>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: alexandre.ozturk, alh, andreas.hencke, andresbajotierra, bou.gui, elsamara, fscheffold, GOTO.sHELL, hov73, Regnaron, TankMan, ulrich.s60, w.s.koch
Priority: NOR    
Version: 1.12.2   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Petr Herynk 2009-05-05 13:23:13 UTC
Version:            (using KDE 4.2.2)
Installed from:    Mandriva RPMs

Aplikace: KMail (kmail), signál SIGSEGV
0x00007f3a5cd66c31 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f3a5fe30700 (LWP 22229))]

Thread 2 (Thread 0x7f3a464e7950 (LWP 22423)):
#0  0x00007f3a5c85e1ed in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f3a5e189357 in QWaitCondition::wait () from /usr/lib64/libQtCore.so.4
#2  0x00007f3a5e17ee49 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f3a5e188392 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f3a5c85a263 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f3a5cda378d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f3a5fe30700 (LWP 22229)):
[KCrash Handler]
#5  0x00007f3a5e1cbcb0 in QString::operator= () from /usr/lib64/libQtCore.so.4
#6  0x00007f3a5e6210fd in KPIM::ProgressItem::setStatus () from /usr/lib64/libkdepim.so.4
#7  0x00007f3a5e6307ad in KPIM::BroadcastStatus::setStatusMsgTransmissionCompleted () from /usr/lib64/libkdepim.so.4
#8  0x00007f3a5eb6c2e1 in ?? () from /usr/lib64/libkmailprivate.so.4
#9  0x00007f3a5eb70d08 in ?? () from /usr/lib64/libkmailprivate.so.4
#10 0x00007f3a5eb70f27 in ?? () from /usr/lib64/libkmailprivate.so.4
#11 0x00007f3a5e286dd2 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#12 0x00007f3a5f2f5292 in KJob::result () from /usr/lib64/libkdecore.so.5
#13 0x00007f3a5f2f560f in KJob::emitResult () from /usr/lib64/libkdecore.so.5
#14 0x00007f3a57011680 in KIO::SimpleJob::slotFinished () from /usr/lib64/libkio.so.5
#15 0x00007f3a570128a3 in KIO::TransferJob::slotFinished () from /usr/lib64/libkio.so.5
#16 0x00007f3a570138e5 in KIO::TransferJob::qt_metacall () from /usr/lib64/libkio.so.5
#17 0x00007f3a5e286dd2 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#18 0x00007f3a570bbbd1 in KIO::SlaveInterface::dispatch () from /usr/lib64/libkio.so.5
#19 0x00007f3a570b97f2 in KIO::SlaveInterface::dispatch () from /usr/lib64/libkio.so.5
#20 0x00007f3a570acc8e in KIO::Slave::gotInput () from /usr/lib64/libkio.so.5
#21 0x00007f3a570acf98 in KIO::Slave::qt_metacall () from /usr/lib64/libkio.so.5
#22 0x00007f3a5e286dd2 in QMetaObject::activate () from /usr/lib64/libQtCore.so.4
#23 0x00007f3a56fe3c11 in ?? () from /usr/lib64/libkio.so.5
#24 0x00007f3a56fe42ba in KIO::Connection::qt_metacall () from /usr/lib64/libkio.so.5
#25 0x00007f3a5e281428 in QObject::event () from /usr/lib64/libQtCore.so.4
#26 0x00007f3a5d6d449d in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#27 0x00007f3a5d6dc68a in QApplication::notify () from /usr/lib64/libQtGui.so.4
#28 0x00007f3a5f8720db in KApplication::notify () from /usr/lib64/libkdeui.so.5
#29 0x00007f3a5e27135c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#30 0x00007f3a5e271fca in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib64/libQtCore.so.4
#31 0x00007f3a5e29ad63 in ?? () from /usr/lib64/libQtCore.so.4
#32 0x00007f3a55356e91 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f3a5535a540 in ?? () from /usr/lib64/libglib-2.0.so.0
#34 0x00007f3a5535a6dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#35 0x00007f3a5e29a9ef in QEventDispatcherGlib::processEvents () from /usr/lib64/libQtCore.so.4
#36 0x00007f3a5d76b64f in ?? () from /usr/lib64/libQtGui.so.4
#37 0x00007f3a5e26fc02 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#38 0x00007f3a5e26ffcd in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#39 0x00007f3a5e272294 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#40 0x0000000000402a9b in _start ()
Comment 1 Dario Andres 2009-05-05 18:55:07 UTC
What were you doing when the application crashed?
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? 
You need to install the "kdepim4-debuginfo" package
Thanks :)

This seems to be related to bug 186836 (and may be bug 173367 too)
Comment 2 Christophe Marin 2009-05-23 15:44:09 UTC
*** Bug 191729 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2009-07-25 11:22:31 UTC
*** Bug 201436 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2009-07-25 11:23:47 UTC
*** Bug 186836 has been marked as a duplicate of this bug. ***
Comment 5 Christophe Marin 2009-08-02 20:42:45 UTC
bt from 191729: 

Thread 1 (Thread 0x7fcd38aef700 (LWP 18211)):
[KCrash Handler]
#5  0x00007fcd3739ccb0 in QString::operator= () from /usr/lib64/libQtCore.so.4
#6  0x00007fcd3823f0fd in KPIM::ProgressItem::setStatus (this=0x2517cc0,
v=@0x7fff40b29e80) at
/usr/src/debug/kdepim-4.2.2/libkdepim/progressmanager.cpp:119
#7  0x00007fcd3824e7ad in
KPIM::BroadcastStatus::setStatusMsgTransmissionCompleted (this=0x23a3630,
account=@0x7fff40b2a240, numMessages=-1, numBytes=0, numBytesRead=<value
optimized out>, 
    numBytesToRead=<value optimized out>, mLeaveOnServer=false, item=0x2517cc0)
at /usr/src/debug/kdepim-4.2.2/libkdepim/broadcaststatus.cpp:158
#8  0x00007fcd226852e1 in KMail::PopAccount::slotJobFinished (this=0x1e33c40)
at /usr/src/debug/kdepim-4.2.2/kmail/popaccount.cpp:838
#9  0x00007fcd22689d08 in KMail::PopAccount::slotResult (this=0x1e33c40) at
/usr/src/debug/kdepim-4.2.2/kmail/popaccount.cpp:1086
#10 0x00007fcd22689f27 in KMail::PopAccount::qt_metacall (this=0x1e33c40,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff40b2a6a0)
    at /usr/src/debug/kdepim-4.2.2/build/kmail/popaccount.moc:86
#11 0x00007fcd37457dd2 in QMetaObject::activate () from
/usr/lib64/libQtCore.so.4

Possible way to reproduce from 201436:

«What I was doing when the application crashed:
I configured as mistake 2 pop receiver to the same account (gmx).
Crash occurs when I try to fetch my emails.»
Comment 6 Christophe Marin 2009-08-02 23:35:18 UTC
*** Bug 202337 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2009-08-12 16:25:16 UTC
*** Bug 203516 has been marked as a duplicate of this bug. ***
Comment 8 Al Hartshorn 2009-08-12 22:12:36 UTC
(In reply to comment #7)
> *** Bug 203516 has been marked as a duplicate of this bug. ***

It has been working for several hour now and failed again. this time I have been able to get a complete backtrace loaded:

Application: KMail (kmail), signal SIGSEGV
[Current thread is 1 (Thread 0xb7f79780 (LWP 26459))]

Thread 2 (Thread 0xaf7ffb70 (LWP 26468)):
#0  0x00ea4416 in __kernel_vsyscall ()
#1  0x06b4bff1 in select () from /lib/libc.so.6
#2  0x00fbfb75 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00ef1112 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00139935 in start_thread () from /lib/libpthread.so.0
#5  0x06b5393e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7f79780 (LWP 26459)):
[KCrash Handler]
#6  0x00eebd79 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#7  0x00ff7531 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#8  0x00ff7f12 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#9  0x00224e09 in KPIM::ProgressItem::progressItemProgress(KPIM::ProgressItem*, unsigned int) () from /usr/lib/libkdepim.so.4
#10 0x00224e3b in KPIM::ProgressItem::setProgress(unsigned int) () from /usr/lib/libkdepim.so.4
#11 0x007312d8 in ?? () from /usr/lib/libkmailprivate.so.4
#12 0x00736b98 in ?? () from /usr/lib/libkmailprivate.so.4
#13 0x00736e17 in ?? () from /usr/lib/libkmailprivate.so.4
#14 0x00ff72b3 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#15 0x00ff7f12 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0x03db4193 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#17 0x03db4619 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#18 0x043aa3b0 in KIO::SimpleJob::slotFinished() () from /usr/lib/libkio.so.5
#19 0x043aa8ba in KIO::TransferJob::slotFinished() () from /usr/lib/libkio.so.5
#20 0x043a9bf3 in KIO::TransferJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#21 0x00ff72b3 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#22 0x00ff7f12 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#23 0x0445f9f7 in KIO::SlaveInterface::finished() () from /usr/lib/libkio.so.5
#24 0x044622d2 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/libkio.so.5
#25 0x0445ffe3 in KIO::SlaveInterface::dispatch() () from /usr/lib/libkio.so.5
#26 0x04452ee0 in KIO::Slave::gotInput() () from /usr/lib/libkio.so.5
#27 0x04453073 in KIO::Slave::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#28 0x00ff72b3 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#29 0x00ff7f12 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#30 0x04379c07 in KIO::Connection::readyRead() () from /usr/lib/libkio.so.5
#31 0x0437bcee in ?? () from /usr/lib/libkio.so.5
#32 0x0437be1e in KIO::Connection::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#33 0x00feff5b in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#34 0x00ff164e in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#35 0x0252f3b4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0x02536a3e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#37 0x040fb3ca in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#38 0x00fe158b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#39 0x00fe21a8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#40 0x00fe237d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#41 0x0100c3ef in ?? () from /usr/lib/libQtCore.so.4
#42 0x06efdcf8 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#43 0x06f01370 in ?? () from /lib/libglib-2.0.so.0
#44 0x06f014a3 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#45 0x0100c01c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#46 0x025ce445 in ?? () from /usr/lib/libQtGui.so.4
#47 0x00fdfb79 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#48 0x00fdffca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0x00fe243f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#50 0x0252f237 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#51 0x0804a352 in _start ()
Comment 9 Dario Andres 2009-08-12 22:28:34 UTC
The backtrace in comment 8 is more like bug 183141 and bug 173360. Thanks
Comment 10 Dario Andres 2009-10-02 03:20:27 UTC
*** Bug 137970 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2009-12-06 20:22:20 UTC
From bug 217596:
---
What I was doing when the application crashed:
I applied 3 EMail Account and enabled catch mails after start.
But some some information of my accounts seems to be wrong (wrong passwords).
Now when I start KMail it crashes.
Comment 12 Dario Andres 2009-12-06 20:22:33 UTC
*** Bug 217596 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2009-12-11 12:55:27 UTC
*** Bug 218249 has been marked as a duplicate of this bug. ***
Comment 14 Dario Andres 2009-12-21 23:39:00 UTC
*** Bug 219585 has been marked as a duplicate of this bug. ***
Comment 15 Christophe Marin 2010-09-30 17:58:05 UTC
*** Bug 252877 has been marked as a duplicate of this bug. ***
Comment 16 Christophe Marin 2011-02-03 12:32:41 UTC
*** Bug 265266 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2011-03-21 02:54:48 UTC
*** Bug 268956 has been marked as a duplicate of this bug. ***
Comment 18 Myriam Schweingruber 2012-07-08 20:08:26 UTC
*** Bug 214072 has been marked as a duplicate of this bug. ***
Comment 19 Myriam Schweingruber 2012-07-08 20:08:58 UTC
*** Bug 173367 has been marked as a duplicate of this bug. ***
Comment 20 Myriam Schweingruber 2012-07-08 20:11:22 UTC
Which exact version is this about? One of the duplicates mentions version 1.12.2 Is this reproducible with kmail2?
Comment 21 Andrew Crouthamel 2018-09-04 18:19:22 UTC
Hello! Sorry to be the bearer of bad news, but this version of Kmail has been unmaintained for many years so I am closing this bug. Please try using the latest version of Kmail to see if your issue persists. If it does, please submit a new bug in "kmail2". Thank you!