Bug 310654

Summary: KMail crash upon accessing KWallet
Product: [Applications] kmail2 Reporter: Baokai Lei <leibaokai>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: ken20001, montel
Priority: NOR    
Version: 4.9.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Baokai Lei 2012-11-25 15:37:57 UTC
Application: kmail (4.9.3)
KDE Platform Version: 4.9.3
Qt Version: 4.8.3
Operating System: Linux 3.5.0-19-generic x86_64
Distribution: Ubuntu 12.10

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

I've just added a new Smtp server in KMail and set it to remember the password. Confirming the dialog, a KWallet dialog appeared, asking me if I want to allow KMail to access KWallet. Upon clicking "Always allow", KMail crashed.

This is using the latest KMail 4.9.3 from the Kubuntu ppa on Kubuntu Quantal Quetzal.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fde409d77c0 (LWP 3614))]

Thread 4 (Thread 0x7fde37845700 (LWP 3617)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fde4bbdcb2d in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fde4c59d280 <WTF::pageheap_memory>) at wtf/FastMalloc.cpp:2499
#2  0x00007fde4bbdcc39 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1622
#3  0x00007fde548d4e9a in start_thread (arg=0x7fde37845700) at pthread_create.c:308
#4  0x00007fde57020cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fde36f34700 (LWP 3618)):
#0  0x00007fde57015303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fde4f4c5d84 in g_main_context_poll (n_fds=1, fds=0x7fde300029c0, timeout=1620, context=0x7fde300009a0, priority=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3584
#2  g_main_context_iterate (context=context@entry=0x7fde300009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3285
#3  0x00007fde4f4c5ea4 in g_main_context_iteration (context=0x7fde300009a0, may_block=1) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3351
#4  0x00007fde579abc16 in QEventDispatcherGlib::processEvents (this=0x7fde300008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fde5797c2bf in QEventLoop::processEvents (this=this@entry=0x7fde36f33dc0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fde5797c548 in QEventLoop::exec (this=0x7fde36f33dc0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fde5787db10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fde57880aec in QThreadPrivate::start (arg=0x151a910) at thread/qthread_unix.cpp:338
#9  0x00007fde548d4e9a in start_thread (arg=0x7fde36f34700) at pthread_create.c:308
#10 0x00007fde57020cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fde35a00700 (LWP 3619)):
#0  0x00007fde57015303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fde4f4c5d84 in g_main_context_poll (n_fds=1, fds=0x7fde280029b0, timeout=-1, context=0x7fde280009a0, priority=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3584
#2  g_main_context_iterate (context=context@entry=0x7fde280009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3285
#3  0x00007fde4f4c5ea4 in g_main_context_iteration (context=0x7fde280009a0, may_block=1) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3351
#4  0x00007fde579abc16 in QEventDispatcherGlib::processEvents (this=0x7fde280008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fde5797c2bf in QEventLoop::processEvents (this=this@entry=0x7fde359ffd90, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fde5797c548 in QEventLoop::exec (this=0x7fde359ffd90, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fde5787db10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fde5795c9af in QInotifyFileSystemWatcherEngine::run (this=0x15682e0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fde57880aec in QThreadPrivate::start (arg=0x15682e0) at thread/qthread_unix.cpp:338
#10 0x00007fde548d4e9a in start_thread (arg=0x7fde35a00700) at pthread_create.c:308
#11 0x00007fde57020cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fde409d77c0 (LWP 3614)):
[KCrash Handler]
#6  QAbstractButton::isChecked (this=0xff35006bff320165) at widgets/qabstractbutton.cpp:774
#7  0x00007fde522b3a83 in MailTransport::AddTransportDialog::accept (this=0x21aff30) at ../../mailtransport/addtransportdialog.cpp:145
#8  0x00007fde59602ff4 in KDialog::slotButtonClicked (this=0x21aff30, button=4) at ../../kdeui/dialogs/kdialog.cpp:885
#9  0x00007fde59603414 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./kdialog.moc:167
#10 KDialog::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./kdialog.moc:127
#11 0x00007fde57992f5f in QMetaObject::activate (sender=0x213fac0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd6dc93b0) at kernel/qobject.cpp:3547
#12 0x00007fde57998e2e in QSignalMapper::mapped (this=this@entry=0x213fac0, _t1=4) at .moc/release-shared/moc_qsignalmapper.cpp:115
#13 0x00007fde57999035 in QSignalMapper::map (this=0x213fac0, sender=0x1d05b10) at kernel/qsignalmapper.cpp:266
#14 0x00007fde57992f5f in QMetaObject::activate (sender=0x1d05b10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd6dc9540) at kernel/qobject.cpp:3547
#15 0x00007fde5850c422 in QAbstractButton::clicked (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:220
#16 0x00007fde5825fd2e in QAbstractButtonPrivate::emitClicked (this=this@entry=0x227b570) at widgets/qabstractbutton.cpp:548
#17 0x00007fde58260560 in QAbstractButtonPrivate::click (this=this@entry=0x227b570) at widgets/qabstractbutton.cpp:541
#18 0x00007fde582607cc in QAbstractButton::mouseReleaseEvent (this=0x1d05b10, e=0x7fffd6dc9de0) at widgets/qabstractbutton.cpp:1123
#19 0x00007fde57ef1850 in QWidget::event (this=0x1d05b10, event=0x7fffd6dc9de0) at kernel/qwidget.cpp:8371
#20 0x00007fde57ea1e9c in QApplicationPrivate::notify_helper (this=this@entry=0x10b7f10, receiver=receiver@entry=0x1d05b10, e=e@entry=0x7fffd6dc9de0) at kernel/qapplication.cpp:4562
#21 0x00007fde57ea6b6b in QApplication::notify (this=<optimized out>, receiver=0x1d05b10, e=0x7fffd6dc9de0) at kernel/qapplication.cpp:4105
#22 0x00007fde596a21d6 in KApplication::notify (this=0x7fffd6dcc380, receiver=0x1d05b10, event=0x7fffd6dc9de0) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007fde5797d56e in QCoreApplication::notifyInternal (this=0x7fffd6dcc380, receiver=0x1d05b10, event=0x7fffd6dc9de0) at kernel/qcoreapplication.cpp:915
#24 0x00007fde57ea2cd3 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QApplicationPrivate::sendMouseEvent (receiver=0x1d05b10, event=0x7fffd6dc9de0, alienWidget=0x1d05b10, nativeWidget=0x21aff30, buttonDown=0x7fde5897e308 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#26 0x00007fde57f20554 in QETWidget::translateMouseEvent (this=this@entry=0x21aff30, event=event@entry=0x7fffd6dca560) at kernel/qapplication_x11.cpp:4622
#27 0x00007fde57f1f44f in QApplication::x11ProcessEvent (this=0x7fffd6dcc380, event=0x7fffd6dca560) at kernel/qapplication_x11.cpp:3737
#28 0x00007fde57f46fa2 in x11EventSourceDispatch (s=s@entry=0x10bbd50, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#29 0x00007fde4f4c5ab5 in g_main_dispatch (context=0x1085710) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:2715
#30 g_main_context_dispatch (context=context@entry=0x1085710) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3219
#31 0x00007fde4f4c5de8 in g_main_context_iterate (context=context@entry=0x1085710, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3290
#32 0x00007fde4f4c5ea4 in g_main_context_iteration (context=0x1085710, may_block=1) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3351
#33 0x00007fde579abbf6 in QEventDispatcherGlib::processEvents (this=0xff8b00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#34 0x00007fde57f46c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007fde5797c2bf in QEventLoop::processEvents (this=this@entry=0x7fffd6dca940, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007fde5797c548 in QEventLoop::exec (this=0x7fffd6dca940, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007fde5835a428 in QDialog::exec (this=0x21aff30) at dialogs/qdialog.cpp:554
#38 0x00007fde5228f95b in MailTransport::TransportManager::showTransportCreationDialog (this=<optimized out>, parent=0x21b2f40, showCondition=<optimized out>) at ../../mailtransport/transportmanager.cpp:276
#39 0x00007fde57992f5f in QMetaObject::activate (sender=0x285e370, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd6dcac10) at kernel/qobject.cpp:3547
#40 0x00007fde5850c422 in QAbstractButton::clicked (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:220
#41 0x00007fde5825fd2e in QAbstractButtonPrivate::emitClicked (this=this@entry=0x2186970) at widgets/qabstractbutton.cpp:548
#42 0x00007fde58260560 in QAbstractButtonPrivate::click (this=this@entry=0x2186970) at widgets/qabstractbutton.cpp:541
#43 0x00007fde582607cc in QAbstractButton::mouseReleaseEvent (this=0x285e370, e=0x7fffd6dcb4b0) at widgets/qabstractbutton.cpp:1123
#44 0x00007fde57ef1850 in QWidget::event (this=0x285e370, event=0x7fffd6dcb4b0) at kernel/qwidget.cpp:8371
#45 0x00007fde57ea1e9c in QApplicationPrivate::notify_helper (this=this@entry=0x10b7f10, receiver=receiver@entry=0x285e370, e=e@entry=0x7fffd6dcb4b0) at kernel/qapplication.cpp:4562
#46 0x00007fde57ea6b6b in QApplication::notify (this=<optimized out>, receiver=0x285e370, e=0x7fffd6dcb4b0) at kernel/qapplication.cpp:4105
#47 0x00007fde596a21d6 in KApplication::notify (this=0x7fffd6dcc380, receiver=0x285e370, event=0x7fffd6dcb4b0) at ../../kdeui/kernel/kapplication.cpp:311
#48 0x00007fde5797d56e in QCoreApplication::notifyInternal (this=0x7fffd6dcc380, receiver=0x285e370, event=0x7fffd6dcb4b0) at kernel/qcoreapplication.cpp:915
#49 0x00007fde57ea2cd3 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#50 QApplicationPrivate::sendMouseEvent (receiver=0x285e370, event=0x7fffd6dcb4b0, alienWidget=0x285e370, nativeWidget=0x2079b10, buttonDown=0x7fde5897e308 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#51 0x00007fde57f20554 in QETWidget::translateMouseEvent (this=this@entry=0x2079b10, event=event@entry=0x7fffd6dcbc30) at kernel/qapplication_x11.cpp:4622
#52 0x00007fde57f1f44f in QApplication::x11ProcessEvent (this=0x7fffd6dcc380, event=0x7fffd6dcbc30) at kernel/qapplication_x11.cpp:3737
#53 0x00007fde57f46fa2 in x11EventSourceDispatch (s=s@entry=0x10bbd50, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#54 0x00007fde4f4c5ab5 in g_main_dispatch (context=0x1085710) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:2715
#55 g_main_context_dispatch (context=context@entry=0x1085710) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3219
#56 0x00007fde4f4c5de8 in g_main_context_iterate (context=context@entry=0x1085710, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3290
#57 0x00007fde4f4c5ea4 in g_main_context_iteration (context=0x1085710, may_block=1) at /build/buildd/glib2.0-2.34.1/./glib/gmain.c:3351
#58 0x00007fde579abbf6 in QEventDispatcherGlib::processEvents (this=0xff8b00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#59 0x00007fde57f46c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#60 0x00007fde5797c2bf in QEventLoop::processEvents (this=this@entry=0x7fffd6dcc000, flags=...) at kernel/qeventloop.cpp:149
#61 0x00007fde5797c548 in QEventLoop::exec (this=0x7fffd6dcc000, flags=...) at kernel/qeventloop.cpp:204
#62 0x00007fde57981708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#63 0x0000000000402cd2 in ?? ()
#64 0x00007fde56f4e76d in __libc_start_main (main=0x4022c0, argc=3, ubp_av=0x7fffd6dcc588, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffd6dcc578) at libc-start.c:226
#65 0x0000000000403195 in _start ()

Reported using DrKonqi
Comment 1 Eugene 2013-02-05 18:06:30 UTC
Created attachment 76930 [details]
New crash information added by DrKonqi

kmail (4.9.5) on KDE Platform 4.9.5 using Qt 4.8.3

I got thet same problem with KWallet. KMail crashes.

-- Backtrace (Reduced):
#6  QAbstractButton::isChecked (this=0x21) at widgets/qabstractbutton.cpp:774
[...]
#8  0x00007f485f411014 in KDialog::slotButtonClicked (this=0x1d7b850, button=4) at ../../kdeui/dialogs/kdialog.cpp:885
#9  0x00007f485f411434 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./kdialog.moc:167
#10 KDialog::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./kdialog.moc:127
[...]
#12 0x00007f485d7a8e2e in QSignalMapper::mapped (this=this@entry=0x3dbdbd0, _t1=4) at .moc/release-shared/moc_qsignalmapper.cpp:115
Comment 2 Laurent Montel 2013-02-05 19:04:29 UTC
What did you do ?
Do you start from empty config ?
etc.
Comment 3 Eugene 2013-02-05 19:11:19 UTC
(In reply to comment #2)
> What did you do ?
> Do you start from empty config ?
> etc.

That's right. First I configured IMAP, saved settings and then configured SMTP and after pushing save button it crashed.
Comment 4 Denis Kurz 2016-09-24 18:14:18 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 5 Denis Kurz 2017-01-07 22:12:26 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.