Bug 302459 - Crash in case of delayed acceptance of IMAP Server Certificate error
Summary: Crash in case of delayed acceptance of IMAP Server Certificate error
Status: RESOLVED DUPLICATE of bug 279113
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.8
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
: 304955 307197 309775 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-24 18:53 UTC by Bjarne Juul Pasgaard
Modified: 2013-02-26 04:10 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.13 KB, text/plain)
2012-07-09 16:54 UTC, Vamp898
Details
New crash information added by DrKonqi (5.53 KB, text/plain)
2012-09-22 19:52 UTC, Dennis Schridde
Details
New crash information added by DrKonqi (5.75 KB, text/plain)
2012-10-09 06:25 UTC, Rolf Eike Beer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarne Juul Pasgaard 2012-06-24 18:53:09 UTC
Application: akonadi_imap_resource (4.8)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-25-generic i686
Distribution: Ubuntu 12.04 LTS

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

The dialog to accept my IMAP Server Certificate was open for more than a minute. When this happens, som akonadi related component seems to crash. This happens every time when I fail to accept the certificate fast enough. If I accept the certifcate fast enough (I accept it only for the current session) no crash is reported.

- Custom settings of the application:

The server certificate is issued by my own CA certificate which doesn't have the basicConstraints attribute marked critical and therefore apparently isn't fully accepted in KDE.

The crash can be reproduced every time.

-- Backtrace:
Application: bjvest of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#7  0x00897bfa in QMetaObject::invokeMethod (obj=0xffffffff, member=0x555241 "sslErrorHandlerResponse", type=Qt::AutoConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1166
#8  0x00533510 in invokeMethod (val9=..., val8=..., val7=..., val6=..., val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., member=<optimized out>, obj=<optimized out>) at /usr/include/qt4/QtCore/qobjectdefs.h:434
#9  KIMAP::SessionPrivate::handleSslError (this=0x9626030, errorData=...) at ../../kimap/session.cpp:121
#10 0x005360d2 in qt_static_metacall (_a=0xb4edd938, _id=12, _o=0x98c8e98, _c=<optimized out>) at ./session.moc:96
#11 KIMAP::Session::qt_static_metacall (_o=0x98c8e98, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xb4edd938) at ./session.moc:78
#12 0x0089ec01 in QMetaCallEvent::placeMetaCall (this=0xb4edd850, object=0x98c8e98) at kernel/qobject.cpp:525
#13 0x008a7c7b in QObject::event (this=0x98c8e98, e=0xb4edd850) at kernel/qobject.cpp:1195
#14 0x00bebed4 in notify_helper (e=0xb4edd850, receiver=0x98c8e98, this=0x94f4660) at kernel/qapplication.cpp:4559
#15 QApplicationPrivate::notify_helper (this=0x94f4660, receiver=0x98c8e98, e=0xb4edd850) at kernel/qapplication.cpp:4531
#16 0x00bf130d in QApplication::notify (this=0xb4edd850, receiver=0x98c8e98, e=0xb4edd850) at kernel/qapplication.cpp:4288
#17 0x037c1b61 in KApplication::notify (this=0xbfa31780, receiver=0x98c8e98, event=0xb4edd850) at ../../kdeui/kernel/kapplication.cpp:311
#18 0x0088c97e in QCoreApplication::notifyInternal (this=0xbfa31780, receiver=0x98c8e98, event=0xb4edd850) at kernel/qcoreapplication.cpp:876
#19 0x00890ad8 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x94d4af0) at kernel/qcoreapplication.cpp:1500
#21 0x00890e0c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#22 0x008bf494 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#23 postEventSourceDispatch (s=0x94f3af0) at kernel/qeventdispatcher_glib.cpp:279
#24 0x04d4fd86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#25 0x04d50125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#26 0x04d50201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#27 0x008bf887 in QEventDispatcherGlib::processEvents (this=0x94d5850, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#28 0x00ca4aaa in QGuiEventDispatcherGlib::processEvents (this=0x94d5850, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x0088b50d in QEventLoop::processEvents (this=0xbfa316e4, flags=...) at kernel/qeventloop.cpp:149
#30 0x0088b7a9 in QEventLoop::exec (this=0xbfa316e4, flags=...) at kernel/qeventloop.cpp:204
#31 0x00890eba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#32 0x00be9a74 in QApplication::exec () at kernel/qapplication.cpp:3820
#33 0x00259241 in Akonadi::ResourceBase::init (r=0x9592c88) at ../../akonadi/resourcebase.cpp:412
#34 0x0805e3e7 in int Akonadi::ResourceBase::init<ImapResource>(int, char**) ()
#35 0x080586ab in ?? ()
#36 0x0821e4d3 in __libc_start_main (main=0x8058690, argc=3, ubp_av=0xbfa31854, init=0x80a2860 <__libc_csu_init>, fini=0x80a28d0 <__libc_csu_fini>, rtld_fini=0x61d270 <_dl_fini>, stack_end=0xbfa3184c) at libc-start.c:226
#37 0x080588c9 in _start ()

This bug may be a duplicate of or related to bug 279113.

Possible duplicates by query: bug 296856, bug 279113.

Reported using DrKonqi
Comment 1 Vamp898 2012-07-09 16:54:08 UTC
Created attachment 72404 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.8) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2

I was able to reproduce this without wanting it ;)

-- Backtrace (Reduced):
#7  0x00007f88d9e94847 in KIMAP::SessionPrivate::handleSslError(KSslErrorUiData const&) () from /usr/lib64/libkimap.so.4
#8  0x00007f88db29081e in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f88da5faeb4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007f88da5ffb61 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007f88d869b8e8 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
Comment 2 Jekyll Wu 2012-09-22 11:13:19 UTC
*** Bug 307197 has been marked as a duplicate of this bug. ***
Comment 3 Dennis Schridde 2012-09-22 19:52:57 UTC
Created attachment 74097 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.9) on KDE Platform 4.9.1 using Qt 4.8.3

- What I was doing when the application crashed:

I restarted my IMAP server with a new certiticate and immediately Akonadi/IMAP saw the server certificate change to something unknown and hence asked for confirmation. I quickly skimmed over the certificate details and then pressed accept/always. Right in that moment Akonadi/IMAP crashed.

-- Backtrace (Reduced):
#7  0x00007faf8709b0c7 in invokeMethod (val9=..., val8=..., val7=..., val6=..., val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., member=0x7faf870bd177 "sslErrorHandlerResponse", obj=<optimized out>) at /usr/include/qt4/QtCore/qobjectdefs.h:434
#8  KIMAP::SessionPrivate::handleSslError (this=0x138c600, errorData=...) at /var/tmp/portage/kde-base/kdepimlibs-4.9.1-r1/work/kdepimlibs-4.9.1/kimap/session.cpp:121
#9  0x00007faf884071e6 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007faf877d628c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007faf877da64a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
Comment 4 Rolf Eike Beer 2012-10-09 06:25:35 UTC
Created attachment 74436 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.9) on KDE Platform 4.9.2 "release 511" using Qt 4.8.3

This was basically the same situation as the original reporter, but I did not wait for a whole minute.

-- Backtrace (Reduced):
#7  0xb64ee350 in invokeMethod (val9=<optimized out>, val8=<optimized out>, val7=<optimized out>, val6=<optimized out>, val5=<optimized out>, val4=<optimized out>, val3=<optimized out>, val2=<optimized out>, val1=<optimized out>, val0=<optimized out>, member=<optimized out>, obj=<optimized out>) at /usr/include/QtCore/qobjectdefs.h:434
#8  KIMAP::SessionPrivate::handleSslError (this=0x84e7320, errorData=...) at /usr/src/debug/kdepimlibs-4.9.2/kimap/session.cpp:121
#9  0xb65098f2 in qt_static_metacall (_a=0xb2bf08d8, _id=12, _o=0x84e8b40, _c=<optimized out>) at /usr/src/debug/kdepimlibs-4.9.2/build/kimap/session.moc:96
#10 KIMAP::Session::qt_static_metacall (_o=0x84e8b40, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xb2bf08d8) at /usr/src/debug/kdepimlibs-4.9.2/build/kimap/session.moc:78
[...]
#12 0xb730236b in QObject::event (this=0x84e8b40, e=0xb2bcc5c0) at kernel/qobject.cpp:1204
Comment 5 Jekyll Wu 2012-11-09 03:15:08 UTC
*** Bug 304955 has been marked as a duplicate of this bug. ***
Comment 6 Jekyll Wu 2012-11-09 03:16:08 UTC
*** Bug 309775 has been marked as a duplicate of this bug. ***
Comment 7 Jekyll Wu 2013-02-26 04:10:35 UTC

*** This bug has been marked as a duplicate of bug 279113 ***