Bug 190617 - KMail crashed if To address changed while sending reply [KPIM::AddresseeLineEdit::loadContacts, KMLineEdit::loadContacts, KPIM::AddresseeLineEdit::doCompletion]
Summary: KMail crashed if To address changed while sending reply [KPIM::AddresseeLineE...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: addressbook (show other bugs)
Version: 1.11.90
Platform: Compiled Sources Unspecified
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 196941 235356 236726 237245 238654 242776 242877 243238 243461 245187 245365 245865 249539 249834 250047 256588 257555 259233 260759 262027 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-25 14:10 UTC by Ruchir Brahmbhatt
Modified: 2011-05-02 14:21 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In: kdepim 4.6


Attachments
New crash information added by DrKonqi (6.36 KB, text/plain)
2010-10-12 21:47 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruchir Brahmbhatt 2009-04-25 14:10:17 UTC
Version:           1.11.90 (using Devel)
Installed from:    Compiled sources

Steps to reproduce:
1. Select any mail.
2. Reply.
3. Change to address.
4. Hit ctrl+enter to send mail.

Expected result:
Mail should be sent.

Actual result:
Kmail crashes.

Reproducible:
Always

More information:
Using 2 gmail imap accounts. and 2 gmail smtp accounts.

Backtrace:
Application: KMail (kmail), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb3a3a700 (LWP 26469))]

Thread 3 (Thread 0xb03b3b90 (LWP 26471)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb6a3ff62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6a9f73c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb6a94c26 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6a9e74e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb6a3c1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb5d6b3be in clone () from /lib/libc.so.6

Thread 2 (Thread 0xaf43db90 (LWP 26499)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5d64411 in select () from /lib/libc.so.6
#2  0xb6b70477 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb6a9e74e in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6a3c1b5 in start_thread () from /lib/libpthread.so.0
#5  0xb5d6b3be in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb3a3a700 (LWP 26469)):
[KCrash Handler]
#6  0x57e58955 in ?? ()
#7  0xb72d8148 in KPIM::AddresseeLineEdit::loadContacts (this=0x891c150) at /home/kde-devel/qt4/include/QtCore/qobject.h:308
#8  0xb7763390 in KMLineEdit::loadContacts (this=0x891c150) at /home/kde-devel/src/kde4/kdepim/kmail/kmlineeditspell.cpp:193
#9  0xb72dcdcb in KPIM::AddresseeLineEdit::doCompletion (this=0x891c150, ctrlT=false) at /home/kde-devel/src/kde4/kdepim/libkdepim/addresseelineedit.cpp:386
#10 0xb72dd986 in KPIM::AddresseeLineEdit::slotCompletion (this=0x891c150) at /home/kde-devel/src/kde4/kdepim/libkdepim/addresseelineedit.cpp:945
#11 0xb72ddaab in KPIM::AddresseeLineEdit::qt_metacall (this=0x891c150, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfae4d8c) at /mnt/os11/KDE4/src/build/kdepim/libkdepim/addresseelineedit.moc:91
#12 0xb776316b in KMLineEdit::qt_metacall (this=0x891c150, _c=QMetaObject::InvokeMetaMethod, _id=80, _a=0xbfae4d8c) at /mnt/os11/KDE4/src/build/kdepim/kmail/kmlineeditspell.moc:68
#13 0xb77d9e3b in RecipientLineEdit::qt_metacall (this=0x891c150, _c=QMetaObject::InvokeMetaMethod, _id=80, _a=0xbfae4d8c) at /mnt/os11/KDE4/src/build/kdepim/kmail/recipientseditor.moc:123
#14 0xb6ba8c88 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#15 0xb6baa412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0xb7fd2352 in KLineEdit::completion (this=0x891c150, _t1=@0xbfae4e2c) at /home/kde-devel/src/kde4/build/kdelibs/kdeui/klineedit.moc:227
#17 0xb7fd24f0 in KLineEdit::doCompletion (this=0x891c150, txt=@0xbfae4e2c) at /home/kde-devel/src/kde4/kdelibs/kdeui/widgets/klineedit.cpp:1752
#18 0xb7fd75bd in KLineEdit::keyPressEvent (this=0x891c150, e=0xbfae552c) at /home/kde-devel/src/kde4/kdelibs/kdeui/widgets/klineedit.cpp:927
#19 0xb72ddc37 in KPIM::AddresseeLineEdit::keyPressEvent (this=0x891c150, e=0xbfae552c) at /home/kde-devel/src/kde4/kdepim/libkdepim/addresseelineedit.cpp:205
#20 0xb7762ede in KMLineEdit::keyPressEvent (this=0x891c150, e=0xbfae552c) at /home/kde-devel/src/kde4/kdepim/kmail/kmlineeditspell.cpp:74
#21 0xb77dbab5 in RecipientLineEdit::keyPressEvent (this=0x891c150, ev=0xbfae552c) at /home/kde-devel/src/kde4/kdepim/kmail/recipientseditor.cpp:141
#22 0xb60999b3 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#23 0xb6469335 in QLineEdit::event(QEvent*) () from /usr/lib/libQtGui.so.4
#24 0xb7fd456e in KLineEdit::event (this=0x891c150, ev=0xbfae552c) at /home/kde-devel/src/kde4/kdelibs/kdeui/widgets/klineedit.cpp:1323
#25 0xb6042eec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0xb604c26b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0xb7efb481 in KApplication::notify (this=0xbfae6068, receiver=0x891c150, event=0xbfae552c) at /home/kde-devel/src/kde4/kdelibs/kdeui/kernel/kapplication.cpp:307
#28 0xb6b929db in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#29 0xb6043dce in ?? () from /usr/lib/libQtGui.so.4
#30 0xb60df750 in ?? () from /usr/lib/libQtGui.so.4
#31 0xb60e193e in ?? () from /usr/lib/libQtGui.so.4
#32 0xb60b8cee in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#33 0xb60e33ca in ?? () from /usr/lib/libQtGui.so.4
#34 0xb4242ea8 in IA__g_main_context_dispatch (context=0x807ce00) at gmain.c:1814
#35 0xb424641b in g_main_context_iterate (context=0x807ce00, block=1, dispatch=1, self=0x807a978) at gmain.c:2448
#36 0xb4246598 in IA__g_main_context_iteration (context=0x807ce00, may_block=1) at gmain.c:2511
#37 0xb6bbe428 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0xb60e2ac5 in ?? () from /usr/lib/libQtGui.so.4
#39 0xb6b90ffa in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb6b9143a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0xb6b938e9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#42 0xb6042d67 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#43 0x0804a820 in main (argc=0, argv=0xb6c2df40) at /home/kde-devel/src/kde4/kdepim/kmail/main.cpp:146
Comment 1 Allen Winter 2009-07-06 01:50:24 UTC
I can't reproduce the crash with trunk.  Do you still get a crash with recent versions?
Comment 2 Christophe Marin 2009-07-06 21:00:55 UTC
*** Bug 196941 has been marked as a duplicate of this bug. ***
Comment 3 kgw 2009-07-06 21:31:18 UTC
@Allen, I can reproduce, although I don't even need to change the to address and the email is successfully sent as the crash happens a few seconds later.
Comment 4 Ruchir Brahmbhatt 2009-12-06 14:53:01 UTC
This appears to be fixed in 1.13.0.
Qt: 4.6.0
KDE: 4.3.80 (KDE 4.3.80 (KDE 4.4 Beta1)) "release 9"
KMail: 1.13.0
Comment 5 Christophe Marin 2010-06-06 15:45:58 UTC
*** Bug 237245 has been marked as a duplicate of this bug. ***
Comment 6 Christophe Marin 2010-06-06 15:46:22 UTC
Reopen due to bug 237245.
Comment 7 Christophe Marin 2010-06-06 22:38:28 UTC
*** Bug 236726 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Marin 2010-06-06 22:38:36 UTC
*** Bug 238654 has been marked as a duplicate of this bug. ***
Comment 9 Christophe Marin 2010-06-07 01:23:31 UTC
*** Bug 235356 has been marked as a duplicate of this bug. ***
Comment 10 Christophe Marin 2010-06-27 11:51:38 UTC
*** Bug 242877 has been marked as a duplicate of this bug. ***
Comment 11 Christophe Marin 2010-07-05 14:47:27 UTC
*** Bug 242776 has been marked as a duplicate of this bug. ***
Comment 12 Christophe Marin 2010-07-05 14:47:38 UTC
*** Bug 243461 has been marked as a duplicate of this bug. ***
Comment 13 Christophe Marin 2010-07-05 14:54:56 UTC
*** Bug 243238 has been marked as a duplicate of this bug. ***
Comment 14 Nicolas L. 2010-07-20 15:23:30 UTC
*** Bug 245187 has been marked as a duplicate of this bug. ***
Comment 15 Nicolas L. 2010-07-27 09:16:16 UTC
*** Bug 245865 has been marked as a duplicate of this bug. ***
Comment 16 Nicolas L. 2010-08-15 16:04:56 UTC
*** Bug 245365 has been marked as a duplicate of this bug. ***
Comment 17 Nicolas L. 2010-09-08 23:59:38 UTC
*** Bug 249539 has been marked as a duplicate of this bug. ***
Comment 18 Nicolas L. 2010-09-08 23:59:44 UTC
*** Bug 249834 has been marked as a duplicate of this bug. ***
Comment 19 Thomas 2010-10-12 21:47:47 UTC
Created attachment 52462 [details]
New crash information added by DrKonqi

Address completion did not work, so I entered the whole address manually and sent the mail (with Ctrl.+Enter).
I was then back on my Firefox reading online articles (1-2minutes) when Kmail crashed "in the background" and the CrashReport-Dialog popped up (without any further interaction within Kontact from my side during this 1-2 minutes, but maybe the scheduled time to fetch new mails was reached or something similar)
Comment 20 Dario Andres 2010-11-18 01:17:48 UTC
From bug 256588:
-- Information about the crash:
I was creating a new mail. When i tried to add the e-mail address, kontact hung
loading my address book because Akonadi had crashed. After stopping and
restarting Akonadi, Kontact crashed.

Updated backtrace (KDE 4.4.2):
[KCrash Handler]
#5  0x00007fa1f73c09b2 in KMLineEdit::loadContacts (this=<value optimized out>)
at ../../kmail/kmlineeditspell.cpp:218
#6  0x00007fa2117624dc in KPIM::AddresseeLineEdit::doCompletion
(this=0x3366130, ctrlT=false) at ../../libkdepim/addresseelineedit.cpp:422
#7  0x00007fa211767734 in KPIM::AddresseeLineEdit::qt_metacall (this=0x3366130,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5aeaaf60)
at ./addresseelineedit.moc:97
#8  0x00007fa1f73c0478 in KMLineEdit::qt_metacall (this=0x3366130,
_c=1525328768, _id=10, _a=0x0) at ./kmlineeditspell.moc:74
Comment 21 Dario Andres 2010-11-18 01:17:58 UTC
*** Bug 256588 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2010-11-22 18:41:18 UTC
*** Bug 257555 has been marked as a duplicate of this bug. ***
Comment 23 Christophe Marin 2010-12-12 01:41:57 UTC
*** Bug 259233 has been marked as a duplicate of this bug. ***
Comment 24 Christophe Marin 2010-12-20 10:42:42 UTC
*** Bug 260759 has been marked as a duplicate of this bug. ***
Comment 25 Christophe Marin 2011-01-04 10:33:40 UTC
*** Bug 262027 has been marked as a duplicate of this bug. ***
Comment 26 Christophe Marin 2011-04-24 22:21:46 UTC
*** Bug 250047 has been marked as a duplicate of this bug. ***
Comment 27 Christophe Marin 2011-05-02 14:21:30 UTC
>Steps to reproduce:
>1. Select any mail.
>2. Reply.
>3. Change to address.
>4. Hit ctrl+enter to send mail.

Cannot reproduce in KMail2 with these steps,

> Address completion did not work, so I entered the whole address manually and
sent the mail (with Ctrl.+Enter).

nor this step,

> I was just editing a mail when Kontact suddenly crashed with the attached
backtrace.

nor this one,

> After typing some letters into the "To:" field of the mail editor, Kontact was
searching for an email address (animated hourglass as mouse pointer)

nor this one,

> send email to on receiptant.  attached one PDF file.
after clicking send, [...]

and finally not this one. 

The crash looks fixed in KMail2, the issue will be fixed in KDEPIM 4.6