Summary: | Assertion failed in transportmanager.cpp | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Stefan Usenbinz <usenbinz> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | CLOSED FIXED | ||
Severity: | crash | CC: | christophe, finex, jacob.benoit.1, nyblom |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Stefan Usenbinz
2008-11-12 23:51:50 UTC
Cannot reproduce using 883447. I've configured an IMAP account. Can not reproduce at 883827 either. Assuming root cause has indeed been fixed in the meantime for now. *** Bug 175458 has been marked as a duplicate of this bug. *** Reopen. Patch submitted in bug 175458 : Index: mailtransport/transportmanager.cpp =================================================================== --- mailtransport/transportmanager.cpp (revision 885797) +++ mailtransport/transportmanager.cpp (working copy) @@ -162,7 +162,9 @@ void TransportManager::addTransport( Transport *transport ) { - Q_ASSERT( !d->transports.contains( transport ) ); + if( d->transports.contains( transport ) ) { + return; + } d->transports.append( transport ); validateDefault(); emitChangesCommitted(); SVN commit 886171 by tmcguire: Fix possible crash. I couldn't reproduce triggering this crash, but apparently it can happen in KMail. Benoît, can you reproduce this and if yes, how? BUG: 174992 M +3 -1 transportmanager.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=886171 Here is how this crash happened to me: with a completely new $KDEHOME, I ran KMail (svn checkout from yesterday), saw the first-time wizard, I configured my identity (real name + email address) and an IMAP account (with a server name for receiving and another SMTP name for sending mail). Then I clicked Finish, the wizard closed, and then the crash occured. I tried to reproduce it but failed. I removed share/apps/kmail* and share/config/kmail* in my KDEHOME, I got the first-time wizard again, filled the same information, no crash. So I don't know what in KDEHOME must be erased in order to reproduce the crash. As for the fix, I can confirm that I've been running it for a day without a crash; on the other hand I am having a problem where KMail doesn't actually manage to fetch any mail from my IMAP account and instead gets stuck forever trying to do it; I don't know if that can be related (I don't want to have made you introduce another bug in KMail !!) One more comment as to the "root cause" of this bug: In Configure KMail -> Accounts -> Sending, I can see *two* SMTP accounts created, but I only created one with the wizard. So we have at least a bug here, where the wizard creates the (same?) SMTP account twice. Now maybe this sounds familiar...? this bug here was caused by addTransport being called twice with the same transport, so if I understand correctly what a transport is, it's the same. Hoping this helps you by showing that the problem lies probably in the SMTP account creation part of the wizard... Just tried this again with qt-copy 884963 and KDE 887926 after throwing away the complete .kde4 directory. The casual user probably wouldn't note any difference since the crash still happens after the wizard completed, but the crash details are in fact completely different. Btw. refering to the last comments: I only specified an IMAP server in the wizard dialog this time and NO STMP server which may or may not make any difference. Thread 1 (Thread 0x7ff2f4d546f0 (LWP 3875)): [KCrash Handler] #5 0x00007ff2ec55e1c7 in QMetaObject::activate (sender=0xee4fb0, m=0x7ff2ec3e31e0, local_signal_index=4, argv=0x7ffffcd96600) at kernel/qobject.cpp:3097 #6 0x00007ff2ec163596 in QAbstractSocket::error (this=0xee4fb0, _t1=QAbstractSocket::HostNotFoundError) at .moc/debug-shared/moc_qabstractsocket.cpp:146 #7 0x00007ff2ec166345 in QAbstractSocketPrivate::_q_startConnecting (this=0xef26f0, hostInfo=@0xe15ef0) at socket/qabstractsocket.cpp:737 #8 0x00007ff2ec167133 in QAbstractSocket::qt_metacall (this=0xee4fb0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xfa8220) at .moc/debug-shared/moc_qabstractsocket.cpp:108 #9 0x00007ff2ec188eff in QTcpSocket::qt_metacall (this=0xee4fb0, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0xfa8220) at .moc/debug-shared/moc_qtcpsocket.cpp:57 #10 0x00007ff2ec557da1 in QMetaCallEvent::placeMetaCall (this=0xee4980, object=0xee4fb0) at kernel/qobject.cpp:529 #11 0x00007ff2ec55c0df in QObject::event (this=0xee4fb0, e=0xee4980) at kernel/qobject.cpp:1152 #12 0x00007ff2eb67e017 in QApplicationPrivate::notify_helper (this=0x63c8e0, receiver=0xee4fb0, e=0xee4980) at kernel/qapplication.cpp:3803 #13 0x00007ff2eb67e326 in QApplication::notify (this=0x7ffffcd98f60, receiver=0xee4fb0, e=0xee4980) at kernel/qapplication.cpp:3393 #14 0x00007ff2f472b906 in KApplication::notify (this=0x7ffffcd98f60, receiver=0xee4fb0, event=0xee4980) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307 #15 0x00007ff2ec54927e in QCoreApplication::notifyInternal (this=0x7ffffcd98f60, receiver=0xee4fb0, event=0xee4980) at kernel/qcoreapplication.cpp:583 #16 0x00007ff2f2f3e469 in QCoreApplication::sendEvent (receiver=0xee4fb0, event=0xee4980) at ../../../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209 #17 0x00007ff2ec5497f5 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x608400) at kernel/qcoreapplication.cpp:1195 #18 0x00007ff2ec5499bc in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1091 #19 0x00007ff2ed3c1555 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214 #20 0x00007ff2ec5781b3 in postEventSourceDispatch (s=0x63ff00) at kernel/qeventdispatcher_glib.cpp:205 #21 0x00007ff2e708f604 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #22 0x00007ff2e7092915 in ?? () from /usr/lib/libglib-2.0.so.0 #23 0x00007ff2e7092dfb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #24 0x00007ff2ec577500 in QEventDispatcherGlib::processEvents (this=0x637cb0, flags=@0x7ffffcd97170) at kernel/qeventdispatcher_glib.cpp:319 #25 0x00007ff2eb720983 in QGuiEventDispatcherGlib::processEvents (this=0x637cb0, flags=@0x7ffffcd971d0) at kernel/qguieventdispatcher_glib.cpp:198 #26 0x00007ff2ec5463c4 in QEventLoop::processEvents (this=0x7ffffcd97290, flags=@0x7ffffcd97250) at kernel/qeventloop.cpp:143 #27 0x00007ff2ec5465c0 in QEventLoop::exec (this=0x7ffffcd97290, flags=@0x7ffffcd972c0) at kernel/qeventloop.cpp:190 #28 0x00007ff2ebafd8ca in QDialog::exec (this=0x7ffffcd97300) at dialogs/qdialog.cpp:447 #29 0x00007ff2f3b799ea in AccountWizard::start (kernel=0x7ffffcd98e10, parent=0x7b9030) at /home/kde-devel/kde/src/KDE/kdepim/kmail/accountwizard.cpp:140 #30 0x00007ff2f37eb7f4 in KMMainWin (this=0x7b9030) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmmainwin.cpp:73 #31 0x00007ff2f39d1b58 in KMKernel::openReader (this=0x7ffffcd98e10, onlyCheck=false) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmkernel.cpp:373 #32 0x00007ff2f39d3491 in KMKernel::action (this=0x7ffffcd98e10, mailto=false, check=false, to=@0x7ffffcd979f0, cc=@0x7ffffcd979e0, bcc=@0x7ffffcd979d0, subj=@0x7ffffcd979c0, body=@0x7ffffcd979b0, messageFile=@0x7ffffcd97780, attachURLs=@0x7ffffcd97990, customHeaders=@0x7ffffcd979a0) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmkernel.cpp:1826 #33 0x00007ff2f39d44cd in KMKernel::handleCommandLine (this=0x7ffffcd98e10, noArgsOpensReader=true) at /home/kde-devel/kde/src/KDE/kdepim/kmail/kmkernel.cpp:319 #34 0x000000000040291f in KMailApplication::newInstance (this=0x7ffffcd98f60) at /home/kde-devel/kde/src/KDE/kdepim/kmail/main.cpp:84 #35 0x00007ff2f4732a19 in KUniqueApplicationAdaptor::newInstance (this=0x6fdc80, asn_id=@0x793d80, args=@0x7b3b90) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kuniqueapplication_p.h:77 #36 0x00007ff2f4730dbf in KUniqueApplicationAdaptor::qt_metacall (this=0x6fdc80, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffffcd97e60) at /home/kde-devel/kde/build/KDE/kdelibs/kdeui/kuniqueapplication_p.moc:74 #37 0x00007ff2ec88330b in QDBusConnectionPrivate::deliverCall (this=0x63a580, object=0x6fdc80, msg=@0x691fb0, metaTypes=@0x7ffffcd97f38, slotIdx=4) at qdbusintegrator.cpp:849 #38 0x00007ff2ec883e31 in QDBusConnectionPrivate::activateCall (this=0x63a580, object=0x6fdc80, flags=337, msg=@0x691fb0) at qdbusintegrator.cpp:754 #39 0x00007ff2ec8849fa in QDBusConnectionPrivate::activateObject (this=0x63a580, node=@0x691f88, msg=@0x691fb0, pathStartPos=16) at qdbusintegrator.cpp:1283 #40 0x00007ff2ec884c76 in QDBusActivateObjectEvent::placeMetaCall (this=0x691f40) at qdbusintegrator.cpp:1400 #41 0x00007ff2ec55c0df in QObject::event (this=0x7ffffcd98f60, e=0x691f40) at kernel/qobject.cpp:1152 #42 0x00007ff2ec548930 in QCoreApplication::event (this=0x7ffffcd98f60, e=0x691f40) at kernel/qcoreapplication.cpp:1385 #43 0x00007ff2eb681d6e in QApplication::event (this=0x7ffffcd98f60, e=0x691f40) at kernel/qapplication.cpp:2187 #44 0x00007ff2eb67e017 in QApplicationPrivate::notify_helper (this=0x63c8e0, receiver=0x7ffffcd98f60, e=0x691f40) at kernel/qapplication.cpp:3803 #45 0x00007ff2eb67e326 in QApplication::notify (this=0x7ffffcd98f60, receiver=0x7ffffcd98f60, e=0x691f40) at kernel/qapplication.cpp:3393 #46 0x00007ff2f472b906 in KApplication::notify (this=0x7ffffcd98f60, receiver=0x7ffffcd98f60, event=0x691f40) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307 #47 0x00007ff2ec54927e in QCoreApplication::notifyInternal (this=0x7ffffcd98f60, receiver=0x7ffffcd98f60, event=0x691f40) at kernel/qcoreapplication.cpp:583 #48 0x00007ff2f2f3e469 in QCoreApplication::sendEvent (receiver=0x7ffffcd98f60, event=0x691f40) at ../../../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209 #49 0x00007ff2ec5497f5 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x608400) at kernel/qcoreapplication.cpp:1195 #50 0x00007ff2ec5499bc in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1091 #51 0x00007ff2ed3c1555 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214 #52 0x00007ff2ec5781b3 in postEventSourceDispatch (s=0x63ff00) at kernel/qeventdispatcher_glib.cpp:205 #53 0x00007ff2e708f604 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #54 0x00007ff2e7092915 in ?? () from /usr/lib/libglib-2.0.so.0 #55 0x00007ff2e7092dfb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #56 0x00007ff2ec577500 in QEventDispatcherGlib::processEvents (this=0x637cb0, flags=@0x7ffffcd98c80) at kernel/qeventdispatcher_glib.cpp:319 #57 0x00007ff2eb720983 in QGuiEventDispatcherGlib::processEvents (this=0x637cb0, flags=@0x7ffffcd98ce0) at kernel/qguieventdispatcher_glib.cpp:198 #58 0x00007ff2ec5463c4 in QEventLoop::processEvents (this=0x7ffffcd98da0, flags=@0x7ffffcd98d60) at kernel/qeventloop.cpp:143 #59 0x00007ff2ec5465c0 in QEventLoop::exec (this=0x7ffffcd98da0, flags=@0x7ffffcd98dc0) at kernel/qeventloop.cpp:190 #60 0x00007ff2ec549ac8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845 #61 0x00007ff2eb67dd78 in QApplication::exec () at kernel/qapplication.cpp:3331 #62 0x00000000004038ec in main (argc=3, argv=0x7ffffcd990f8) at /home/kde-devel/kde/src/KDE/kdepim/kmail/main.cpp:146 Do not see any crashes anymore for this scenario with rev 899204. Closing. |