Bug 173640 - crash when sending an email from krunner
Summary: crash when sending an email from krunner
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.11.0
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
: 171002 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-26 23:18 UTC by Salvo "LtWorf" Tomaselli
Modified: 2009-01-19 19:20 UTC (History)
4 users (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 Salvo "LtWorf" Tomaselli 2008-10-26 23:18:32 UTC
Version:           1.10.1 (using KDE 4.1.2)
OS:                Linux
Installed from:    Debian testing/unstable Packages

If i write in krunner the name of a person, i can send an email to him.
When i finish the mail and i send it, kmail crashes. I think it occurs when the main application isn't open, just the compose window.
Comment 1 Christophe Marin 2008-10-26 23:30:59 UTC
Please read the following page and provide a backtrace for this crash : http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 2 George Kiagiadakis 2008-11-12 10:43:51 UTC
I just tried this two times, one having kmail closed before using krunner and one having kmail open. In both cases, the mail was sent successfully and there were no crashes.
Comment 3 Salvo "LtWorf" Tomaselli 2009-01-08 10:02:21 UTC
Try doing it with an imap account where the sent mails must me moved to the remote server.

Applicazione: KMail (kmail), segnale SIGABRT
[Current thread is 0 (LWP 21835)]

Thread 2 (Thread 0xb1e39b90 (LWP 21856)):
#0  0xb80bc424 in __kernel_vsyscall ()
#1  0xb5761352 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb656c854 in pthread_cond_timedwait () from /lib/i686/cmov/libc.so.6
#3  0xb702b51c in QWaitCondition::wait (this=0x913e030, mutex=0x913e02c, time=30000) at thread/qwaitcondition_unix.cpp:80
#4  0xb70207c6 in QThreadPoolThread::run (this=0x93ae890) at concurrent/qthreadpool.cpp:135
#5  0xb702a52e in QThreadPrivate::start (arg=0x93ae890) at thread/qthread_unix.cpp:185
#6  0xb575d4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
#7  0xb655e6de in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb3fab9b0 (LWP 21835)):
[KCrash Handler]
#6  0xb80bc424 in __kernel_vsyscall ()
#7  0xb64a9640 in raise () from /lib/i686/cmov/libc.so.6
#8  0xb64ab018 in abort () from /lib/i686/cmov/libc.so.6
#9  0xb70226cd in qt_message_output (msgType=QtFatalMsg, buf=0xbfcd2ab0 "ASSERT: \"!isEmpty()\" in file /usr/include/qt4/QtCore/qlist.h, line 246") at global/qglobal.cpp:2102
#10 0xb7022796 in qFatal (msg=0xb716a458 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2303
#11 0xb7022825 in qt_assert (assertion=0xb797c083 "!isEmpty()", file=0xb797b80c "/usr/include/qt4/QtCore/qlist.h", line=246) at global/qglobal.cpp:1872
#12 0xb75ea248 in KMKernel::mainWin (this=0xbfcd5c4c) at /usr/include/qt4/QtCore/qlist.h:246
#13 0xb756f3cf in KMail::ImapAccountBase::makeConnection (this=0x9129828) at ../../kmail/imapaccountbase.cpp:317
#14 0xb757b7d6 in KMAcctImap::makeConnection (this=0x0) at ../../kmail/kmacctimap.cpp:562
#15 0xb7706f5c in KMail::ImapJob::init (this=0x9363678, jt=KMail::FolderJob::tPutMessage, sets=@0x9363688, folder=0x911c238, msgList=@0x9363680) at ../../kmail/imapjob.cpp:104
#16 0xb77088ab in KMail::ImapJob::execute (this=0x9363678) at ../../kmail/imapjob.cpp:671
#17 0xb76f8274 in KMail::FolderJob::start (this=0x6) at ../../kmail/folderjob.cpp:106
#18 0xb75a2b5e in KMFolderImap::addMsg (this=0x911c238, msgList=@0xbfcd4fc8, aIndex_ret=@0xbfcd4fc4) at ../../kmail/kmfolderimap.cpp:512
#19 0xb759368d in KMFolderImap::addMsg (this=0x911c238, aMsg=0x9763910, aIndex_ret=0xbfcd5008) at ../../kmail/kmfolderimap.cpp:396
#20 0xb74e2a8e in FolderStorage::addMessages (this=0x911c238, msgList=@0xbfcd5088, index_ret=@0xbfcd5048) at ../../kmail/folderstorage.cpp:1197
#21 0xb74e1b71 in FolderStorage::moveMsg (this=0x911c238, msglist=
        {{p = {static shared_null = {ref = {_q_value = 3147}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xbfcd5088}, d = 0xbfcd5088}}, aIndex_ret=0xbfcd51e0)
    at ../../kmail/folderstorage.cpp:641
#22 0xb74b0778 in KMFolder::moveMsg (this=0x90f45c0, q=
        {{p = {static shared_null = {ref = {_q_value = 3147}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xbfcd51c8}, d = 0xbfcd51c8}}, index_return=0xbfcd51e0)
    at ../../kmail/kmfolder.cpp:476
#23 0xb76af9fb in KMMoveCommand::execute (this=0x929ab58) at ../../kmail/kmcommands.cpp:2138
#24 0xb7692ba2 in KMCommand::slotPostTransfer (this=0x929ab58, result=KMCommand::OK) at ../../kmail/kmcommands.cpp:276
#25 0xb769e304 in KMCommand::qt_metacall (this=0x929ab58, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfcd536c) at ./kmcommands.moc:86
#26 0xb76b146a in KMMoveCommand::qt_metacall (this=0x929ab58, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfcd536c) at ./kmcommands.moc:1662
#27 0xb712ebe0 in QMetaObject::activate (sender=0x929ab58, from_signal_index=4, to_signal_index=4, argv=0xbfcd536c) at kernel/qobject.cpp:3031
#28 0xb712f962 in QMetaObject::activate (sender=0x929ab58, m=0xb7ace154, local_signal_index=0, argv=0xbfcd536c) at kernel/qobject.cpp:3101
#29 0xb768f253 in KMCommand::messagesTransfered (this=0x929ab58, _t1=KMCommand::OK) at ./kmcommands.moc:100
#30 0xb76adeec in KMCommand::transferSelectedMsgs (this=0x929ab58) at ../../kmail/kmcommands.cpp:370
#31 0xb76ae13f in KMCommand::slotStart (this=0x929ab58) at ../../kmail/kmcommands.cpp:268
#32 0xb769e313 in KMCommand::qt_metacall (this=0x929ab58, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfcd5548) at ./kmcommands.moc:85
#33 0xb76b146a in KMMoveCommand::qt_metacall (this=0x929ab58, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfcd5548) at ./kmcommands.moc:1662
#34 0xb712ebe0 in QMetaObject::activate (sender=0x92b3988, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031
#35 0xb712f962 in QMetaObject::activate (sender=0x92b3988, m=0xb71fc0c8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#36 0xb7134f37 in QSingleShotTimer::timeout (this=0x92b3988) at .moc/release-shared/qtimer.moc:74
#37 0xb713505c in QSingleShotTimer::timerEvent (this=0x92b3988) at kernel/qtimer.cpp:294
#38 0xb71296bf in QObject::event (this=0x92b3988, e=0xbfcd59dc) at kernel/qobject.cpp:1120
#39 0xb680f79c in QApplicationPrivate::notify_helper (this=0x8f73c60, receiver=0x92b3988, e=0xbfcd59dc) at kernel/qapplication.cpp:3803
#40 0xb681761e in QApplication::notify (this=0xbfcd5cf8, receiver=0x92b3988, e=0xbfcd59dc) at kernel/qapplication.cpp:3393
#41 0xb7eefa0d in KApplication::notify (this=0xbfcd5cf8, receiver=0x92b3988, event=0xbfcd59dc) at ../../kdeui/kernel/kapplication.cpp:307
#42 0xb711a0e1 in QCoreApplication::notifyInternal (this=0xbfcd5cf8, receiver=0x92b3988, event=0xbfcd59dc) at kernel/qcoreapplication.cpp:587
#43 0xb7148041 in QTimerInfoList::activateTimers (this=0x8f76c04) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#44 0xb7144690 in timerSourceDispatch (source=0x8f76bd0) at kernel/qeventdispatcher_glib.cpp:160
#45 0xb49b51b8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#46 0xb49b8853 in ?? () from /usr/lib/libglib-2.0.so.0
#47 0x08f75718 in ?? ()
#48 0x00000000 in ?? ()

Comment 4 Jaime Torres 2009-01-08 11:18:08 UTC
The backtrace is very similar to the one in bug 171002. (dup?)

The problem looks like the use of an static (but empty) list of windows.

Comment 5 Salvo "LtWorf" Tomaselli 2009-01-16 20:30:12 UTC
Could this bug be confirmed?
I can reproduce it everytime i want.
Comment 6 Jaime Torres 2009-01-18 12:07:03 UTC
Are you able to test it with a more recent kmail version (like 1.10.3 or 1.10.4?). There have been a lot of changes and bugfixes between that versions.
If you are still able to reproduce it at will with that version, then it will marked as new.
Comment 7 Salvo "LtWorf" Tomaselli 2009-01-18 14:59:22 UTC
I have KMail: 1.11.0 and the bug is still there.
Comment 8 George Kiagiadakis 2009-01-18 15:16:51 UTC
It's most probably a dupe of bug 171002, but I am not sure, so let's forward this to the kmail developers...
Comment 9 Thomas McGuire 2009-01-18 15:22:05 UTC
SVN commit 912948 by tmcguire:

Probably fix bug 173640. Untested.
BUG: 173640


 M  +5 -3      kmkernel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=912948
Comment 10 Alex Merry 2009-01-18 22:06:36 UTC
*** Bug 171002 has been marked as a duplicate of this bug. ***
Comment 11 Alex Merry 2009-01-18 22:08:16 UTC
Ha!  I just tried to commit the same fix for bug 171002 (which has a simliar backtrace, and crashes on the same assertion), but it conflicted with your commit.  It fixes that bug just fine, by the way.
Comment 12 Thomas McGuire 2009-01-19 19:20:19 UTC
SVN commit 913687 by tmcguire:

Backport r912948 by tmcguire from trunk to the 4.2 branch:

Probably fix bug 173640. Untested.
CCBUG: 173640



 M  +5 -3      kmkernel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=913687