Bug 282223 - Crash after setting Trash folder for IMAP account
Summary: Crash after setting Trash folder for IMAP account
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-17 14:21 UTC by Andreas Cord-Landwehr
Modified: 2011-09-17 17:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Cord-Landwehr 2011-09-17 14:21:04 UTC
Application: akonadi_imap_resource (0.1)
KDE Platform Version: 4.6.5 (4.6.5) (Compiled from sources)
Qt Version: 4.7.3
Operating System: Linux 3.0.0-1-686-pae i686
Distribution: Debian GNU/Linux testing (wheezy)

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

I set the trash folder for one of my IMAP accounts (in KMail config widget for accounts). The directly after I closed the configuration widget I got the resource crash.

-- Backtrace:
Application: Akonadi Resource (akonadi_imap_resource), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4afa710 (LWP 30482))]

Thread 6 (Thread 0xb247bb70 (LWP 30554)):
#0  0xb56e1524 in __pthread_mutex_unlock_usercnt (mutex=0x927f4ec, decr=<optimized out>) at pthread_mutex_unlock.c:52
#1  0xb5824c66 in pthread_mutex_unlock (mutex=0x927f4ec) at forward.c:184
#2  0xb558e101 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#3  0xb558ea30 in ?? () from /lib/libglib-2.0.so.0
#4  0xb558ece4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb73c5d27 in QEventDispatcherGlib::processEvents (this=0x92c2db8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0xb7396abd in QEventLoop::processEvents (this=0xb247b2d0, flags=...) at kernel/qeventloop.cpp:149
#7  0xb7396d01 in QEventLoop::exec (this=0xb247b2d0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb7299e6b in QThread::exec (this=0x927e250) at thread/qthread.cpp:492
#9  0xb65f0fb0 in KIMAP::SessionThread::run (this=0x927e250) at ../../kimap/sessionthread.cpp:166
#10 0xb729ccd3 in QThreadPrivate::start (arg=0x927e250) at thread/qthread_unix.cpp:320
#11 0xb56ddc39 in start_thread (arg=0xb247bb70) at pthread_create.c:304
#12 0xb581796e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 5 (Thread 0xb0afeb70 (LWP 30664)):
#0  0xb5627e11 in *__GI_clock_gettime (clock_id=1, tp=0xb0afe018) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb72f3d25 in do_gettime (frac=0xb0afe010, sec=0xb0afe008) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb73c6696 in QTimerInfoList::updateCurrentTime (this=0x9430b34) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb73c69fa in QTimerInfoList::timerWait (this=0x9430b34, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb73c5253 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb0afe12c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb73c52ed in timerSourcePrepare (source=0x9430b00, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb558d74e in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb558e613 in ?? () from /lib/libglib-2.0.so.0
#9  0xb558ece4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb73c5d27 in QEventDispatcherGlib::processEvents (this=0x94d4cd8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb7396abd in QEventLoop::processEvents (this=0xb0afe2d0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb7396d01 in QEventLoop::exec (this=0xb0afe2d0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb7299e6b in QThread::exec (this=0x9420e98) at thread/qthread.cpp:492
#14 0xb65f0fb0 in KIMAP::SessionThread::run (this=0x9420e98) at ../../kimap/sessionthread.cpp:166
#15 0xb729ccd3 in QThreadPrivate::start (arg=0x9420e98) at thread/qthread_unix.cpp:320
#16 0xb56ddc39 in start_thread (arg=0xb0afeb70) at pthread_create.c:304
#17 0xb581796e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 4 (Thread 0xb1c7ab70 (LWP 30665)):
#0  0xb5627e11 in *__GI_clock_gettime (clock_id=1, tp=0xb1c7a018) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb72f3d25 in do_gettime (frac=0xb1c7a010, sec=0xb1c7a008) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb73c6696 in QTimerInfoList::updateCurrentTime (this=0x941161c) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb73c69fa in QTimerInfoList::timerWait (this=0x941161c, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb73c5253 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb1c7a12c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb73c52ed in timerSourcePrepare (source=0x94115e8, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb558d74e in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb558e613 in ?? () from /lib/libglib-2.0.so.0
#9  0xb558ece4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb73c5d27 in QEventDispatcherGlib::processEvents (this=0x9429c90, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb7396abd in QEventLoop::processEvents (this=0xb1c7a2d0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb7396d01 in QEventLoop::exec (this=0xb1c7a2d0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb7299e6b in QThread::exec (this=0x9410a78) at thread/qthread.cpp:492
#14 0xb65f0fb0 in KIMAP::SessionThread::run (this=0x9410a78) at ../../kimap/sessionthread.cpp:166
#15 0xb729ccd3 in QThreadPrivate::start (arg=0x9410a78) at thread/qthread_unix.cpp:320
#16 0xb56ddc39 in start_thread (arg=0xb1c7ab70) at pthread_create.c:304
#17 0xb581796e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0xaf482b70 (LWP 19110)):
#0  0xb73c6294 in idleTimerSourceCheck (source=0x9511010) at kernel/qeventdispatcher_glib.cpp:220
#1  0xb558deb7 in g_main_context_check () from /lib/libglib-2.0.so.0
#2  0xb558e7fa in ?? () from /lib/libglib-2.0.so.0
#3  0xb558ece4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0xb73c5d27 in QEventDispatcherGlib::processEvents (this=0x9382940, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0xb7396abd in QEventLoop::processEvents (this=0xaf4822d0, flags=...) at kernel/qeventloop.cpp:149
#6  0xb7396d01 in QEventLoop::exec (this=0xaf4822d0, flags=...) at kernel/qeventloop.cpp:201
#7  0xb7299e6b in QThread::exec (this=0x9772120) at thread/qthread.cpp:492
#8  0xb65f0fb0 in KIMAP::SessionThread::run (this=0x9772120) at ../../kimap/sessionthread.cpp:166
#9  0xb729ccd3 in QThreadPrivate::start (arg=0x9772120) at thread/qthread_unix.cpp:320
#10 0xb56ddc39 in start_thread (arg=0xaf482b70) at pthread_create.c:304
#11 0xb581796e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xaec81b70 (LWP 19111)):
#0  0xb5627e11 in *__GI_clock_gettime (clock_id=1, tp=0xaec81018) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb72f3d25 in do_gettime (frac=0xaec81010, sec=0xaec81008) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb73c6696 in QTimerInfoList::updateCurrentTime (this=0x940f1a4) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb73c69fa in QTimerInfoList::timerWait (this=0x940f1a4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb73c5253 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xaec8112c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb73c52ed in timerSourcePrepare (source=0x940f170, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb558d74e in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb558e613 in ?? () from /lib/libglib-2.0.so.0
#9  0xb558ece4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb73c5d27 in QEventDispatcherGlib::processEvents (this=0x95af7f8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#11 0xb7396abd in QEventLoop::processEvents (this=0xaec812d0, flags=...) at kernel/qeventloop.cpp:149
#12 0xb7396d01 in QEventLoop::exec (this=0xaec812d0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb7299e6b in QThread::exec (this=0x93fe7c8) at thread/qthread.cpp:492
#14 0xb65f0fb0 in KIMAP::SessionThread::run (this=0x93fe7c8) at ../../kimap/sessionthread.cpp:166
#15 0xb729ccd3 in QThreadPrivate::start (arg=0x93fe7c8) at thread/qthread_unix.cpp:320
#16 0xb56ddc39 in start_thread (arg=0xaec81b70) at pthread_create.c:304
#17 0xb581796e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb4afa710 (LWP 30482)):
[KCrash Handler]
#7  0x080a4156 in takeFirst (this=0x92c689c) at /usr/include/qt4/QtCore/qlist.h:477
#8  SessionPool::declareSessionReady (this=0x92c6878, session=0x93a61c8) at ../../../resources/imap/sessionpool.cpp:207
#9  0x080a43bb in SessionPool::onNamespacesTestDone (this=0x92c6878, job=0x92622b0) at ../../../resources/imap/sessionpool.cpp:435
#10 0x080a5fe9 in SessionPool::qt_metacall (this=0x92c6878, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbf8399d8) at ./sessionpool.moc:120
#11 0xb739de4d in metacall (argv=0xbf8399d8, idx=16, cl=QMetaObject::InvokeMetaMethod, object=0x92c6878) at kernel/qmetaobject.cpp:237
#12 QMetaObject::metacall (object=0x92c6878, cl=QMetaObject::InvokeMetaMethod, idx=16, argv=0xbf8399d8) at kernel/qmetaobject.cpp:232
#13 0xb73acb90 in QMetaObject::activate (sender=0x92490f0, m=0xb5c7fb2c, local_signal_index=3, argv=0xbf8399d8) at kernel/qobject.cpp:3278
#14 0xb5ad71e5 in KJob::result (this=0x92490f0, _t1=0x92490f0) at ./kjob.moc:194
#15 0xb5ad7238 in KJob::emitResult (this=0x92490f0) at ../../kdecore/jobs/kjob.cpp:312
#16 0xb65d7533 in KIMAP::Job::handleErrorReplies (this=0x92490f0, response=...) at ../../kimap/job.cpp:86
#17 0xb65e82b6 in KIMAP::NamespaceJob::handleResponse (this=0x92622b0, response=...) at ../../kimap/namespacejob.cpp:128
#18 0xb65eef67 in KIMAP::SessionPrivate::responseReceived (this=0x940abb0, response=...) at ../../kimap/session.cpp:263
#19 0xb65f0126 in KIMAP::Session::qt_metacall (this=0x93a61c8, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x98a7c68) at ./session.moc:106
#20 0xb739de4d in metacall (argv=0x98a7c68, idx=9, cl=QMetaObject::InvokeMetaMethod, object=0x93a61c8) at kernel/qmetaobject.cpp:237
#21 QMetaObject::metacall (object=0x93a61c8, cl=QMetaObject::InvokeMetaMethod, idx=9, argv=0x98a7c68) at kernel/qmetaobject.cpp:232
#22 0xb73a8795 in QMetaCallEvent::placeMetaCall (this=0x989c690, object=0x93a61c8) at kernel/qobject.cpp:535
#23 0xb73afcaf in QObject::event (this=0x93a61c8, e=0x989c690) at kernel/qobject.cpp:1217
#24 0xb68c60a4 in notify_helper (e=0x989c690, receiver=0x93a61c8, this=0x91fada0) at kernel/qapplication.cpp:4467
#25 QApplicationPrivate::notify_helper (this=0x91fada0, receiver=0x93a61c8, e=0x989c690) at kernel/qapplication.cpp:4439
#26 0xb68cb432 in QApplication::notify (this=0x989c690, receiver=0x93a61c8, e=0x989c690) at kernel/qapplication.cpp:4214
#27 0xb5e8f571 in KApplication::notify (this=0xbf83a4c0, receiver=0x93a61c8, event=0x989c690) at ../../kdeui/kernel/kapplication.cpp:311
#28 0xb7397a9e in QCoreApplication::notifyInternal (this=0xbf83a4c0, receiver=0x93a61c8, event=0x989c690) at kernel/qcoreapplication.cpp:731
#29 0xb739b264 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x91dc4e0) at kernel/qcoreapplication.cpp:1372
#31 0xb739b3ac in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1265
#32 0xb73c5894 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#33 postEventSourceDispatch (s=0x91fd8b0) at kernel/qeventdispatcher_glib.cpp:277
#34 0xb558e252 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#35 0xb558ea30 in ?? () from /lib/libglib-2.0.so.0
#36 0xb558ece4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#37 0xb73c5cc7 in QEventDispatcherGlib::processEvents (this=0x91dd1f0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#38 0xb697b01a in QGuiEventDispatcherGlib::processEvents (this=0x91dd1f0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#39 0xb7396abd in QEventLoop::processEvents (this=0xbf83a424, flags=...) at kernel/qeventloop.cpp:149
#40 0xb7396d01 in QEventLoop::exec (this=0xbf83a424, flags=...) at kernel/qeventloop.cpp:201
#41 0xb739b45a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#42 0xb68c3f24 in QApplication::exec () at kernel/qapplication.cpp:3741
#43 0xb76933c1 in Akonadi::ResourceBase::init (r=0x924ba20) at ../../akonadi/resourcebase.cpp:390
#44 0x08068457 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbf83a5a4) at /usr/include/akonadi/resourcebase.h:188
#45 0x0805ad8b in main (argc=3, argv=0xbf83a5a4) at ../../../resources/imap/imapresource.cpp:597

Possible duplicates by query: bug 272921, bug 265308, bug 257554.

Reported using DrKonqi
Comment 1 Kevin Ottens 2011-09-17 17:20:52 UTC
Is it still happening for you with 4.7.x? I've been unable to reproduce that one, it just works for me.

In case you still experience this please feel free to reopen. In such a case, we would need much more information like the actual IMAP server used and so on.