Bug 297432

Summary: Kamil crashed after sending email
Product: [Applications] kmail2 Reporter: S. Burmeister <sven.burmeister>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: montel
Priority: NOR    
Version: 4.8.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: dialogue that appears when clicking on "modify", starting with "server" lacking "name"

Description S. Burmeister 2012-04-03 22:29:10 UTC
Application: kmail (4.8.0)
KDE Platform Version: 4.8.1 (4.8.1) "release 483"
Qt Version: 4.8.0
Operating System: Linux 3.1.9-1.4-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

Kmail crashed after I sent an email. MAybe because the name of the mail agent is empty, i.e. in kmail2 4.8.1 there is no possibility to enter a name for a mail agent (smtp) in the "change" dialogue.

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

Thread 3 (Thread 0x7f643b7cb700 (LWP 13398)):
#0  0x00007f6454b2de6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f644b1e5c12 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f644b1e5c49 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f6454b29f05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f6456d2210d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f643aeca700 (LWP 13399)):
#0  0x00007f6456d18ff3 in poll () from /lib64/libc.so.6
#1  0x00007f644eefea98 in g_main_context_poll (n_fds=1, fds=0x7f64340013e0, timeout=5839, context=0x7f64340009a0, priority=<optimized out>) at gmain.c:3386
#2  g_main_context_iterate (context=0x7f64340009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3068
#3  0x00007f644eefef59 in g_main_context_iteration (context=0x7f64340009a0, may_block=1) at gmain.c:3136
#4  0x00007f645837e956 in QEventDispatcherGlib::processEvents (this=0x7f64340008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f645834e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f645834e8d7 in QEventLoop::exec (this=0x7f643aec9e00, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f645824f537 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f645825255b in QThreadPrivate::start (arg=0xafdde0) at thread/qthread_unix.cpp:298
#9  0x00007f6454b29f05 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f6456d2210d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f64599e6780 (LWP 13359)):
[KCrash Handler]
#6  0x00007f6457a9f1b4 in QAbstractButton::isChecked (this=0x7f64586a5900) at widgets/qabstractbutton.cpp:772
#7  0x00007f6451ca7d36 in MailTransport::AddTransportDialog::accept (this=0x2d58de0) at /usr/src/debug/kdepimlibs-4.8.1/mailtransport/addtransportdialog.cpp:144
#8  0x00007f6458363761 in QMetaObject::activate (sender=0x34418b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffe3d68760) at kernel/qobject.cpp:3556
#9  0x00007f6457bf6cf5 in QAbstractItemView::doubleClicked (this=<optimized out>, _t1=<optimized out>) at .moc/release-shared/moc_qabstractitemview.cpp:355
#10 0x00007f6457c42fc5 in QTreeView::mouseDoubleClickEvent (this=0x34418b0, event=0x7fffe3d69460) at itemviews/qtreeview.cpp:1898
#11 0x00007f64577255ae in QWidget::event (this=0x34418b0, event=0x7fffe3d69460) at kernel/qwidget.cpp:8365
#12 0x00007f6457ae15e6 in QFrame::event (this=0x34418b0, e=0x7fffe3d69460) at widgets/qframe.cpp:557
#13 0x00007f6457bf5abb in QAbstractItemView::viewportEvent (this=0x34418b0, event=0x7fffe3d69460) at itemviews/qabstractitemview.cpp:1644
#14 0x00007f6457c3d5d5 in QTreeView::viewportEvent (this=0x34418b0, event=0x7fffe3d69460) at itemviews/qtreeview.cpp:1257
#15 0x00007f645834fa28 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x3441660, event=0x7fffe3d69460) at kernel/qcoreapplication.cpp:986
#16 0x00007f64576d4e4f in notify_helper (e=0x7fffe3d69460, receiver=0x3441660, this=0x663120) at kernel/qapplication.cpp:4546
#17 QApplicationPrivate::notify_helper (this=0x663120, receiver=0x3441660, e=0x7fffe3d69460) at kernel/qapplication.cpp:4522
#18 0x00007f64576da5d3 in QApplication::notify (this=<optimized out>, receiver=0x3441660, e=0x7fffe3d69460) at kernel/qapplication.cpp:4093
#19 0x00007f64593fe656 in KApplication::notify (this=0x7fffe3d6ba60, receiver=0x3441660, event=0x7fffe3d69460) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#20 0x00007f645834f89c in QCoreApplication::notifyInternal (this=0x7fffe3d6ba60, receiver=0x3441660, event=0x7fffe3d69460) at kernel/qcoreapplication.cpp:876
#21 0x00007f64576d5e52 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#22 QApplicationPrivate::sendMouseEvent (receiver=0x3441660, event=0x7fffe3d69460, alienWidget=0x3441660, nativeWidget=0x2d58de0, buttonDown=0x3441660, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3161
#23 0x00007f6457751c05 in QETWidget::translateMouseEvent (this=0x2d58de0, event=<optimized out>) at kernel/qapplication_x11.cpp:4505
#24 0x00007f6457750aca in QApplication::x11ProcessEvent (this=0x7fffe3d6ba60, event=0x7fffe3d69d20) at kernel/qapplication_x11.cpp:3631
#25 0x00007f6457778652 in x11EventSourceDispatch (s=0x666bc0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x00007f644eefe58d in g_main_dispatch (context=0x665880) at gmain.c:2425
#27 g_main_context_dispatch (context=0x665880) at gmain.c:2995
#28 0x00007f644eefed88 in g_main_context_iterate (context=0x665880, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#29 0x00007f644eefef59 in g_main_context_iteration (context=0x665880, may_block=1) at gmain.c:3136
#30 0x00007f645837e8ef in QEventDispatcherGlib::processEvents (this=0x60b000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#31 0x00007f64577782de in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x00007f645834e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#33 0x00007f645834e8d7 in QEventLoop::exec (this=0x7fffe3d6a0f0, flags=...) at kernel/qeventloop.cpp:204
#34 0x00007f6457ba1086 in QDialog::exec (this=0x2d58de0) at dialogs/qdialog.cpp:552
#35 0x00007f6451c9fe7b in MailTransport::TransportManager::showTransportCreationDialog (this=<optimized out>, parent=0x2da1990, showCondition=<optimized out>) at /usr/src/debug/kdepimlibs-4.8.1/mailtransport/transportmanager.cpp:276
#36 0x00007f6458363761 in QMetaObject::activate (sender=0x2de54e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffe3d6a3e0) at kernel/qobject.cpp:3556
#37 0x00007f6457d5fc22 in QAbstractButton::clicked (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:220
#38 0x00007f6457a9ecce in QAbstractButtonPrivate::emitClicked (this=<optimized out>) at widgets/qabstractbutton.cpp:546
#39 0x00007f6457aa000b in QAbstractButtonPrivate::click (this=0x2de5520) at widgets/qabstractbutton.cpp:539
#40 0x00007f6457aa027c in QAbstractButton::mouseReleaseEvent (this=0x2de54e0, e=0x7fffe3d6acb0) at widgets/qabstractbutton.cpp:1121
#41 0x00007f6457725594 in QWidget::event (this=0x2de54e0, event=0x7fffe3d6acb0) at kernel/qwidget.cpp:8361
#42 0x00007f64576d4e84 in notify_helper (e=0x7fffe3d6acb0, receiver=0x2de54e0, this=0x663120) at kernel/qapplication.cpp:4550
#43 QApplicationPrivate::notify_helper (this=0x663120, receiver=0x2de54e0, e=0x7fffe3d6acb0) at kernel/qapplication.cpp:4522
#44 0x00007f64576da5d3 in QApplication::notify (this=<optimized out>, receiver=0x2de54e0, e=0x7fffe3d6acb0) at kernel/qapplication.cpp:4093
#45 0x00007f64593fe656 in KApplication::notify (this=0x7fffe3d6ba60, receiver=0x2de54e0, event=0x7fffe3d6acb0) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#46 0x00007f645834f89c in QCoreApplication::notifyInternal (this=0x7fffe3d6ba60, receiver=0x2de54e0, event=0x7fffe3d6acb0) at kernel/qcoreapplication.cpp:876
#47 0x00007f64576d5e52 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#48 QApplicationPrivate::sendMouseEvent (receiver=0x2de54e0, event=0x7fffe3d6acb0, alienWidget=0x2de54e0, nativeWidget=0x2253130, buttonDown=0x2de54e0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3161
#49 0x00007f6457751c05 in QETWidget::translateMouseEvent (this=0x2253130, event=<optimized out>) at kernel/qapplication_x11.cpp:4505
#50 0x00007f6457750aca in QApplication::x11ProcessEvent (this=0x7fffe3d6ba60, event=0x7fffe3d6b570) at kernel/qapplication_x11.cpp:3631
#51 0x00007f6457778652 in x11EventSourceDispatch (s=0x666bc0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#52 0x00007f644eefe58d in g_main_dispatch (context=0x665880) at gmain.c:2425
#53 g_main_context_dispatch (context=0x665880) at gmain.c:2995
#54 0x00007f644eefed88 in g_main_context_iterate (context=0x665880, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#55 0x00007f644eefef59 in g_main_context_iteration (context=0x665880, may_block=1) at gmain.c:3136
#56 0x00007f645837e8ef in QEventDispatcherGlib::processEvents (this=0x60b000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#57 0x00007f64577782de in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#58 0x00007f645834e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#59 0x00007f645834e8d7 in QEventLoop::exec (this=0x7fffe3d6b940, flags=...) at kernel/qeventloop.cpp:204
#60 0x00007f6458353435 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#61 0x0000000000402df3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-4.8.1/kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Laurent Montel 2012-04-04 06:45:57 UTC
"Kmail crashed after I sent an email. MAybe because the name of the mail agent is empty, i.e. in kmail2 4.8.1 there is no possibility to enter a name for a mail agent (smtp) in the "change" dialogue."
There is "modify" you can change name of smtp.
Could you paste a screenshot where you try to change name ?
Comment 2 S. Burmeister 2012-04-04 08:35:30 UTC
Created attachment 70131 [details]
dialogue that appears when clicking on "modify", starting with "server" lacking "name"
Comment 3 Laurent Montel 2012-04-04 08:41:01 UTC
it's the same dialog from kdepim 4.4 for example.
And there is a "rename" button to rename it in treeview
or when you create a new transport you can named it
Comment 4 S. Burmeister 2012-04-04 08:51:06 UTC
You are right. However, if you click on "add" the same dialogue, i.e. without the possibility to give a name, is shown. Hence the user has to add without name and then rename. I think it would be better if at least the "add" would include the name input.

Regarding the crash, I started kmail2 from scratch, i.e. no accounts, no akonadi data etc and it crashed after I added the smtp and sent the first email.
Comment 5 Laurent Montel 2012-04-04 11:47:18 UTC
When you add you have a dialogbox to select type of account and you can add name here.

Ok for crash will look at.
But bt is not when you send but when you create transport
Comment 6 Denis Kurz 2016-09-24 18:05:15 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 7 Denis Kurz 2017-01-07 21:52:47 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.