Bug 349549 - KMail crashes after asking multiple times at once for certificate
Summary: KMail crashes after asking multiple times at once for certificate
Status: RESOLVED DUPLICATE of bug 332830
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-06-23 21:08 UTC by sedrubal
Modified: 2016-05-20 23:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.29 KB, text/plain)
2016-05-20 23:33 UTC, noucamp13
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sedrubal 2015-06-23 21:08:29 UTC
Application: akonadi_imap_resource (4.14)
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 3.19.0-21-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:
Accepting SSL-Certificate for this session only
- Unusual behavior I noticed:
There were multiple dialogeboxes asking for an action
- Custom settings of the application:
A SSL-Certificate for Mail which is not trusted by the system

The crash can be reproduced sometimes.

-- Backtrace:
Application: Rommel of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9a9217c7c0 (LWP 3004))]

Thread 5 (Thread 0x7f9a7e65a700 (LWP 4994)):
#0  0x00007f9a8c9832b1 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9a8c983de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9a8c983fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a9179f87e in QEventDispatcherGlib::processEvents (this=0x7f9a780008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f9a9176ed21 in QEventLoop::processEvents (this=this@entry=0x7f9a7e659e10, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9a9176f085 in QEventLoop::exec (this=this@entry=0x7f9a7e659e10, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9a91662e89 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f9a916656ff in QThreadPrivate::start (arg=0x17efa30) at thread/qthread_unix.cpp:349
#8  0x00007f9a8d06f6aa in start_thread (arg=0x7f9a7e65a700) at pthread_create.c:333
#9  0x00007f9a8da20eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f9a7de59700 (LWP 7622)):
#0  0x00007f9a8da158dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a8c983ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9a8c983fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a9179f87e in QEventDispatcherGlib::processEvents (this=0x7f9a70003320, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f9a9176ed21 in QEventLoop::processEvents (this=this@entry=0x7f9a7de58e10, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9a9176f085 in QEventLoop::exec (this=this@entry=0x7f9a7de58e10, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9a91662e89 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f9a916656ff in QThreadPrivate::start (arg=0x18896f0) at thread/qthread_unix.cpp:349
#8  0x00007f9a8d06f6aa in start_thread (arg=0x7f9a7de59700) at pthread_create.c:333
#9  0x00007f9a8da20eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f9a77df9700 (LWP 18457)):
#0  0x00007f9a8c9c8785 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9a8c9838cc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9a8c983e60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a8c983fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9a9179f87e in QEventDispatcherGlib::processEvents (this=0x7f9a6c005c10, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#5  0x00007f9a9176ed21 in QEventLoop::processEvents (this=this@entry=0x7f9a77df8e10, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f9a9176f085 in QEventLoop::exec (this=this@entry=0x7f9a77df8e10, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f9a91662e89 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#8  0x00007f9a916656ff in QThreadPrivate::start (arg=0x18c2000) at thread/qthread_unix.cpp:349
#9  0x00007f9a8d06f6aa in start_thread (arg=0x7f9a77df9700) at pthread_create.c:333
#10 0x00007f9a8da20eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f9a762e9700 (LWP 18460)):
#0  0x00007f9a8da158dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a8c983ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9a8c983fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a9179f87e in QEventDispatcherGlib::processEvents (this=0x7f9a6400cc70, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f9a9176ed21 in QEventLoop::processEvents (this=this@entry=0x7f9a762e8e10, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9a9176f085 in QEventLoop::exec (this=this@entry=0x7f9a762e8e10, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9a91662e89 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f9a916656ff in QThreadPrivate::start (arg=0x179a130) at thread/qthread_unix.cpp:349
#8  0x00007f9a8d06f6aa in start_thread (arg=0x7f9a762e9700) at pthread_create.c:333
#9  0x00007f9a8da20eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f9a9217c7c0 (LWP 3004)):
[KCrash Handler]
#6  QMetaObject::invokeMethod (obj=0x6c0065006d006d, member=member@entry=0x7f9a8f38d4ec "doSslErrorHandlerResponse", type=type@entry=Qt::AutoConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1166
#7  0x00007f9a8f367ebe in invokeMethod (val9=..., val8=..., val7=..., val6=..., val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., member=0x7f9a8f38d4ec "doSslErrorHandlerResponse", obj=<optimized out>) at /usr/include/qt4/QtCore/qobjectdefs.h:434
#8  KIMAP::SessionThread::sslErrorHandlerResponse (this=<optimized out>, response=false) at ../../kimap/sessionthread.cpp:274
#9  0x00007f9a917898e1 in QObject::event (this=0x18b2090, e=<optimized out>) at kernel/qobject.cpp:1222
#10 0x00007f9a90ab79bc in QApplicationPrivate::notify_helper (this=this@entry=0x1612260, receiver=receiver@entry=0x18b2090, e=e@entry=0x7f9a6c00d290) at kernel/qapplication.cpp:4570
#11 0x00007f9a90abe4d8 in QApplication::notify (this=this@entry=0x7ffd810d0d00, receiver=receiver@entry=0x18b2090, e=e@entry=0x7f9a6c00d290) at kernel/qapplication.cpp:4356
#12 0x00007f9a8eb90b4a in KApplication::notify (this=0x7ffd810d0d00, receiver=0x18b2090, event=0x7f9a6c00d290) at ../../kdeui/kernel/kapplication.cpp:311
#13 0x00007f9a917701cd in QCoreApplication::notifyInternal (this=0x7ffd810d0d00, receiver=receiver@entry=0x18b2090, event=event@entry=0x7f9a6c00d290) at kernel/qcoreapplication.cpp:955
#14 0x00007f9a91773a71 in sendEvent (event=0x7f9a6c00d290, receiver=0x18b2090) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#15 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x15d50c0) at kernel/qcoreapplication.cpp:1579
#16 0x00007f9a91773f03 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#17 0x00007f9a9179f6ee in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#18 postEventSourceDispatch (s=0x1601e50) at kernel/qeventdispatcher_glib.cpp:300
#19 0x00007f9a8c983c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f9a8c983f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f9a8c983fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f9a9179f85e in QEventDispatcherGlib::processEvents (this=0x15d65a0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#23 0x00007f9a90b5fc66 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#24 0x00007f9a9176ed21 in QEventLoop::processEvents (this=this@entry=0x7ffd810cff30, flags=...) at kernel/qeventloop.cpp:149
#25 0x00007f9a9176f085 in QEventLoop::exec (this=this@entry=0x7ffd810cff30, flags=...) at kernel/qeventloop.cpp:204
#26 0x00007f9a90f91d9c in QDialog::exec (this=0x17e1e50) at dialogs/qdialog.cpp:562
#27 0x00007f9a8eafaae2 in KMessageBox::createKMessageBox (dialog=dialog@entry=0x17e1e50, icon=..., text=..., strlist=..., ask=..., checkboxReturn=checkboxReturn@entry=0x7ffd810d0290, options=..., details=..., notifyType=QMessageBox::Warning) at ../../kdeui/dialogs/kmessagebox.cpp:344
#28 0x00007f9a8eafad37 in KMessageBox::createKMessageBox (dialog=0x17e1e50, icon=QMessageBox::Warning, text=..., strlist=..., ask=..., checkboxReturn=0x7ffd810d0290, options=..., details=...) at ../../kdeui/dialogs/kmessagebox.cpp:159
#29 0x00007f9a8eafe11d in KMessageBox::warningYesNoCancelListWId (parent_id=30399731283591277, text=..., strlist=..., caption=..., buttonYes_=..., buttonNo_=..., buttonCancel_=..., dontAskAgainName=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:802
#30 0x00007f9a8eafe397 in KMessageBox::warningYesNoCancelList (parent=<optimized out>, text=..., strlist=..., caption=..., buttonYes=..., buttonNo=..., buttonCancel=..., dontAskAgainName=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:760
#31 0x00007f9a8eafe419 in KMessageBox::warningYesNoCancel (parent=<optimized out>, text=..., caption=..., buttonYes=..., buttonNo=..., buttonCancel=..., dontAskAgainName=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:735
#32 0x00007f9a903dd2d7 in KIO::SslUi::askIgnoreSslErrors (uiData=..., storedRules=31) at ../../kio/kssl/sslui.cpp:82
#33 0x00007f9a8f3633d3 in KIMAP::SessionPrivate::handleSslError (this=0x16a9540, errorData=...) at ../../kimap/session.cpp:133
#34 0x00007f9a917898e1 in QObject::event (this=0x16a9540, e=<optimized out>) at kernel/qobject.cpp:1222
#35 0x00007f9a90ab79bc in QApplicationPrivate::notify_helper (this=this@entry=0x1612260, receiver=receiver@entry=0x16a9540, e=e@entry=0x7f9a6c00c960) at kernel/qapplication.cpp:4570
#36 0x00007f9a90abe4d8 in QApplication::notify (this=this@entry=0x7ffd810d0d00, receiver=receiver@entry=0x16a9540, e=e@entry=0x7f9a6c00c960) at kernel/qapplication.cpp:4356
#37 0x00007f9a8eb90b4a in KApplication::notify (this=0x7ffd810d0d00, receiver=0x16a9540, event=0x7f9a6c00c960) at ../../kdeui/kernel/kapplication.cpp:311
#38 0x00007f9a917701cd in QCoreApplication::notifyInternal (this=0x7ffd810d0d00, receiver=receiver@entry=0x16a9540, event=event@entry=0x7f9a6c00c960) at kernel/qcoreapplication.cpp:955
#39 0x00007f9a91773a71 in sendEvent (event=0x7f9a6c00c960, receiver=0x16a9540) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#40 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x15d50c0) at kernel/qcoreapplication.cpp:1579
#41 0x00007f9a91773f03 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1472
#42 0x00007f9a9179f6ee in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#43 postEventSourceDispatch (s=0x1601e50) at kernel/qeventdispatcher_glib.cpp:300
#44 0x00007f9a8c983c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f9a8c983f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f9a8c983fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f9a9179f85e in QEventDispatcherGlib::processEvents (this=0x15d65a0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#48 0x00007f9a90b5fc66 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#49 0x00007f9a9176ed21 in QEventLoop::processEvents (this=this@entry=0x7ffd810d0c70, flags=...) at kernel/qeventloop.cpp:149
#50 0x00007f9a9176f085 in QEventLoop::exec (this=this@entry=0x7ffd810d0c70, flags=...) at kernel/qeventloop.cpp:204
#51 0x00007f9a91774b09 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#52 0x00007f9a90ab5c1c in QApplication::exec () at kernel/qapplication.cpp:3828
#53 0x00007f9a91c65fec in Akonadi::ResourceBase::init (r=r@entry=0x1797fd0) at ../../akonadi/resourcebase.cpp:583
#54 0x000000000041890e in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:193
#55 0x00007f9a8d93aa40 in __libc_start_main (main=0x418240 <main(int, char**)>, argc=3, argv=0x7ffd810d0e18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd810d0e08) at libc-start.c:289
#56 0x00000000004187b4 in _start ()

The reporter indicates this bug may be a duplicate of or related to bug 348039, bug 341906.

Possible duplicates by query: bug 348039, bug 341906.

Reported using DrKonqi
Comment 1 Daniel Vrátil 2016-03-22 00:33:12 UTC

*** This bug has been marked as a duplicate of bug 332830 ***
Comment 2 noucamp13 2016-05-20 23:33:52 UTC
Created attachment 99108 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed:
Accepting an SSL certificate for this session only. Computer had just restarted. Two windows popped up asking for the same. The crash occur after accepting the second one.

-- Backtrace (Reduced):
#7  0x00007f95e384bf38 in invokeMethod (val9=..., val8=..., val7=..., val6=..., val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., member=0x7f95e386e06e "doSslErrorHandlerResponse", obj=<optimized out>) at /usr/include/qt4/QtCore/qobjectdefs.h:434
#8  KIMAP::SessionThread::sslErrorHandlerResponse (this=<optimized out>, response=true) at ../../kimap/sessionthread.cpp:274
#9  0x00007f95e5bd6c1e in QObject::event (this=0x18b52f0, e=<optimized out>) at kernel/qobject.cpp:1194
#10 0x00007f95e4f57e2c in QApplicationPrivate::notify_helper (this=this@entry=0x1643150, receiver=receiver@entry=0x18b52f0, e=e@entry=0x7f95cc0ee1b0) at kernel/qapplication.cpp:4567
#11 0x00007f95e4f5e4a0 in QApplication::notify (this=this@entry=0x7ffee178b850, receiver=receiver@entry=0x18b52f0, e=e@entry=0x7f95cc0ee1b0) at kernel/qapplication.cpp:4353