[Bug 305858] New: akonadi imap crashes

Paul Millar paul.millar at desy.de
Mon Aug 27 09:41:08 BST 2012


https://bugs.kde.org/show_bug.cgi?id=305858

            Bug ID: 305858
          Severity: crash
           Version: 4.8
          Priority: NOR
                CC: kdepim-bugs at kde.org, vkrause at kde.org
          Assignee: ervin at kde.org
           Summary: akonadi imap crashes
    Classification: Unclassified
                OS: Linux
          Reporter: paul.millar at desy.de
          Hardware: Debian unstable
            Status: UNCONFIRMED
         Component: IMAP resource
           Product: Akonadi

Application: akonadi_imap_resource (4.8)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.2
Operating System: Linux 3.2.0-3-686-pae i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
The imap server is Microsoft Exchange 2003.  It has a buggy implementation of
TLS_RSA_WITH_3DES_EDE_CBC_SHA cypher where one or more random bytes are
sometimes sent after otherwise valid TLS records.  This prevents the TLS
handshake from completing.

When KDE connects to the Exchange 2003 server via SSL, this suite is chosen. 
The broken implementation of TLS_RSA_WITH_3DES_EDE_CBC_SHA prevents kmail from
logging into the server.

After the failure to login, a dialogue box appears asking whether to present
new credentials or cancel the login attempt.

Selecting new credentials does not fix the problem (not surprisingly).

Selecting cancel results in the akonadi imap resource crashing, with given
stack-trace.

This happens every time.

This bug makes kmail (and anything in KDE to do with imap) unusual.

I'm running Debian sid.

For comparison, the icedove / thunderbird client places
TLS_RSA_WITH_3DES_EDE_CBC_SHA last on the list of supported ciphers.  The
TLS_RSA_WITH_RC4_128_MD5 is higher on icedove's list, and is chosen by the
Exchange server.  Exchange does not have a broken implementation of this
cipher, so icedove works fine.

The crash can be reproduced every time.

-- Backtrace:
Application: imap.physics.gla.ac.uk/paul of type IMAP E-Mail Server
(akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library
"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
[Current thread is 1 (Thread 0xb44eb710 (LWP 6532))]

Thread 2 (Thread 0xb1cbab70 (LWP 6576)):
#0  0xb774d424 in __kernel_vsyscall ()
#1  0xb5700846 in *__GI___poll (fds=0xb5796ff4, fds at entry=0x840a3e8,
nfds=nfds at entry=1, timeout=timeout at entry=-1) at
../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb547107b in g_poll (fds=0x840a3e8, nfds=1, timeout=-1) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gpoll.c:132
#3  0xb5462950 in g_main_context_poll (n_fds=1, fds=0x840a3e8,
timeout=<optimized out>, context=0x83d87b0, priority=<optimized out>) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gmain.c:3440
#4  g_main_context_iterate (context=context at entry=0x83d87b0,
block=block at entry=1, dispatch=dispatch at entry=1, self=<error reading variable:
Unhandled dwarf expression opcode 0xfa>) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gmain.c:3141
#5  0xb5462ab1 in g_main_context_iteration (context=0x83d87b0, may_block=1) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gmain.c:3207
#6  0xb731885f in QEventDispatcherGlib::processEvents (this=0x83beff0,
flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb72e502c in QEventLoop::processEvents (this=this at entry=0xb1cba2b8,
flags=...) at kernel/qeventloop.cpp:149
#8  0xb72e5321 in QEventLoop::exec (this=0xb1cba2b8, flags=...) at
kernel/qeventloop.cpp:204
#9  0xb71d1b3c in QThread::exec (this=0x83fe700) at thread/qthread.cpp:501
#10 0xb6506ae9 in KIMAP::SessionThread::run (this=0x83fe700) at
../../kimap/sessionthread.cpp:181
#11 0xb71d4f00 in QThreadPrivate::start (arg=0x83fe700) at
thread/qthread_unix.cpp:307
#12 0xb558ec39 in start_thread (arg=0xb1cbab70) at pthread_create.c:304
#13 0xb570e23e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb44eb710 (LWP 6532)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0xb65020ee in qDeleteAll<QList<KIMAP::Job*>::const_iterator> (end=...,
begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#9  qDeleteAll<QQueue<KIMAP::Job*> > (c=...) at
/usr/include/qt4/QtCore/qalgorithms.h:330
#10 KIMAP::SessionPrivate::clearJobQueue (this=this at entry=0x83fe5c0) at
../../kimap/session.cpp:401
#11 0xb65022e0 in KIMAP::SessionPrivate::socketDisconnected (this=0x83fe5c0) at
../../kimap/session.cpp:369
#12 0xb650544f in qt_static_metacall (_a=0x840e7d0, _id=9, _o=0x8326838,
_c=<optimized out>) at ./session.moc:93
#13 KIMAP::Session::qt_static_metacall (_o=0x8326838,
_c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x840e7d0) at ./session.moc:78
#14 0xb72f878a in QMetaCallEvent::placeMetaCall (this=0x84dd880,
object=0x8326838) at kernel/qobject.cpp:525
#15 0xb72fcccb in QObject::event (this=0x8326838, e=0x84dd880) at
kernel/qobject.cpp:1195
#16 0xb67d047c in QApplicationPrivate::notify_helper (this=0x8241b18,
receiver=0x8326838, e=0x84dd880) at kernel/qapplication.cpp:4556
#17 0xb67d4e7f in QApplication::notify (this=0x84dd880, receiver=0x8326838,
e=0x84dd880) at kernel/qapplication.cpp:3938
#18 0xb5d89581 in KApplication::notify (this=0xbff99814, receiver=0x8326838,
event=0x84dd880) at ../../kdeui/kernel/kapplication.cpp:311
#19 0xb72e655e in QCoreApplication::notifyInternal (this=0xbff99814,
receiver=0x8326838, event=0x84dd880) at kernel/qcoreapplication.cpp:915
#20 0xb72ea76d in sendEvent (event=<optimized out>, receiver=<optimized out>)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x821fa98) at kernel/qcoreapplication.cpp:1539
#22 0xb72ea9ec in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at kernel/qcoreapplication.cpp:1432
#23 0xb73186c4 in sendPostedEvents () at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#24 postEventSourceDispatch (s=s at entry=0x8240a98) at
kernel/qeventdispatcher_glib.cpp:279
#25 0xb5462633 in g_main_dispatch (context=0x823fff0) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gmain.c:2539
#26 g_main_context_dispatch (context=context at entry=0x823fff0) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gmain.c:3075
#27 0xb54629d0 in g_main_context_iterate (context=context at entry=0x823fff0,
block=block at entry=1, dispatch=dispatch at entry=1, self=<error reading variable:
Unhandled dwarf expression opcode 0xfa>) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gmain.c:3146
#28 0xb5462ab1 in g_main_context_iteration (context=0x823fff0, may_block=1) at
/build/buildd-glib2.0_2.32.3-1-i386-987P8N/glib2.0-2.32.3/./glib/gmain.c:3207
#29 0xb7318841 in QEventDispatcherGlib::processEvents (this=0x82225a8,
flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0xb68831fa in QGuiEventDispatcherGlib::processEvents (this=0x82225a8,
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0xb72e502c in QEventLoop::processEvents (this=this at entry=0xbff99778,
flags=...) at kernel/qeventloop.cpp:149
#32 0xb72e5321 in QEventLoop::exec (this=0xbff99778, flags=...) at
kernel/qeventloop.cpp:204
#33 0xb72eaa9a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#34 0xb67ce2f4 in QApplication::exec () at kernel/qapplication.cpp:3817
#35 0xb7616561 in Akonadi::ResourceBase::init (r=0x83d0810) at
../../akonadi/resourcebase.cpp:412
#36 0x08074d9b in ?? ()
#37 0x0805670b in ?? ()
#38 0xb5654e46 in __libc_start_main (main=0x80566f0, argc=3, ubp_av=0xbff99904,
init=0x8084830 <__libc_csu_init>, fini=0x8084820 <__libc_csu_fini>,
rtld_fini=0xb775c590, stack_end=0xbff998fc) at libc-start.c:228
#39 0x080567a9 in _start ()

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

Possible duplicates by query: bug 305613, bug 303087, bug 301825, bug 295189.

Reported using DrKonqi

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Kdepim-bugs mailing list