Bug 205430

Summary: Akonadi server crash (assert "uid>0")
Product: [Frameworks and Libraries] Akonadi Reporter: Sabine Faure <sabine>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: VERIFIED NOT A BUG    
Severity: crash CC: vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sabine Faure 2009-08-28 01:26:58 UTC
Application: akonadi_imap_resource (0.1)
KDE Version: 4.3.65 (KDE 4.3.65 (KDE 4.4 >= 20090820)) (Compiled from sources)
Qt Version: 4.5.2
Operating System: Linux 2.6.27-9-generic i686
Distribution: Ubuntu 8.10

 -- Backtrace:
Application: Akonadi Resource (akonadi_imap_resource), signal: Aborted
[Current thread is 0 (LWP 12208)]

Thread 4 (Thread 0xb2974b90 (LWP 12232)):
#0  0xb7fe1430 in __kernel_vsyscall ()
#1  0xb7bbd075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7c45f54 in QWaitConditionPrivate::wait (this=0x8e01a98, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  0xb7c45a53 in QWaitCondition::wait (this=0x8e017e0, mutex=0x8e017dc, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0xb7209dd7 in QHostInfoAgent::run (this=0x8e017d0) at kernel/qhostinfo.cpp:260
#5  0xb7c45631 in QThreadPrivate::start (arg=0x8e017d0) at thread/qthread_unix.cpp:188
#6  0xb7bb950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb6532a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb3175b90 (LWP 13039)):
#0  0xb7bbaa4d in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
#1  0xb6358579 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#2  0xb635bdc3 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb635bf81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb7d6b232 in QEventDispatcherGlib::processEvents (this=0x8dcd7c0, flags={i = -1290317180}) at kernel/qeventdispatcher_glib.cpp:329
#5  0xb7d39324 in QEventLoop::processEvents (this=0xb317530c, flags={i = -1290317108}) at kernel/qeventloop.cpp:149
#6  0xb7d39595 in QEventLoop::exec (this=0xb317530c, flags={i = -1290317036}) at kernel/qeventloop.cpp:197
#7  0xb7c41a39 in QThread::exec (this=0x8c54af8) at thread/qthread.cpp:487
#8  0xb7156e9a in KIMAP::SessionThread::run (this=0x1) at /d/kde/src/t/kdepimlibs/kimap/sessionthread.cpp:155
#9  0xb7c45631 in QThreadPrivate::start (arg=0x8c54af8) at thread/qthread_unix.cpp:188
#10 0xb7bb950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb6532a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb3976b90 (LWP 13040)):
#0  0xb7bbaa60 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
#1  0xb6359f7b in g_main_context_release () from /usr/lib/libglib-2.0.so.0
#2  0xb635bcc5 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb635bf81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb7d6b232 in QEventDispatcherGlib::processEvents (this=0x8d1d558, flags={i = -1281924476}) at kernel/qeventdispatcher_glib.cpp:329
#5  0xb7d39324 in QEventLoop::processEvents (this=0xb397630c, flags={i = -1281924404}) at kernel/qeventloop.cpp:149
#6  0xb7d39595 in QEventLoop::exec (this=0xb397630c, flags={i = -1281924332}) at kernel/qeventloop.cpp:197
#7  0xb7c41a39 in QThread::exec (this=0x8cecc78) at thread/qthread.cpp:487
#8  0xb7156e9a in KIMAP::SessionThread::run (this=0xb7bba9d0) at /d/kde/src/t/kdepimlibs/kimap/sessionthread.cpp:155
#9  0xb7c45631 in QThreadPrivate::start (arg=0x8cecc78) at thread/qthread_unix.cpp:188
#10 0xb7bb950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb6532a0e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb54698d0 (LWP 12208)):
[KCrash Handler]
#6  0xb7fe1430 in __kernel_vsyscall ()
#7  0xb647c8a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb647e268 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7c3b533 in qt_message_output (msgType=QtFatalMsg, buf=0x8e7a6b8 "ASSERT: \"uid > 0\" in file /d/kde/src/t/kdepim/akonadi/resources/imap/imapresource.cpp, line 275") at global/qglobal.cpp:2042
#10 0xb7c3b5aa in qFatal (msg=0xb7d91a94 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2241
#11 0xb7c3b9e9 in qt_assert (assertion=0x80878f5 "uid > 0", file=0x8085ed8 "/d/kde/src/t/kdepim/akonadi/resources/imap/imapresource.cpp", line=275) at global/qglobal.cpp:1811
#12 0x0806a91d in ImapResource::onAppendMessageDone (this=0x8d3db80, job=0x8dc05a8) at /d/kde/src/t/kdepim/akonadi/resources/imap/imapresource.cpp:275
#13 0x0806cf25 in ImapResource::qt_metacall (this=0x8d3db80, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0xbfde155c) at /d/kde/build/t/kdepim/akonadi/resources/imap/imapresource.moc:147
#14 0xb7d528d5 in QMetaObject::activate (sender=0x8dc05a8, from_signal_index=7, to_signal_index=7, argv=0xbfde155c) at kernel/qobject.cpp:3109
#15 0xb7d53d4f in QMetaObject::activate (sender=0x8dc05a8, m=0xb6933da8, local_signal_index=3, argv=0xbfde155c) at kernel/qobject.cpp:3186
#16 0xb67f194c in KJob::result (this=0x8dc05a8, _t1=0x8dc05a8) at /d/kde/build/t/kdelibs/kdecore/kjob.moc:188
#17 0xb67f1eb1 in KJob::emitResult (this=0x8dc05a8) at /d/kde/src/t/kdelibs/kdecore/jobs/kjob.cpp:304
#18 0xb7140e10 in KIMAP::Job::handleErrorReplies (this=0x8dc05a8, response=@0x8c45830) at /d/kde/src/t/kdepimlibs/kimap/job.cpp:84
#19 0xb7142d0c in KIMAP::AppendJob::handleResponse (this=0x8dc05a8, response=@0x8c45830) at /d/kde/src/t/kdepimlibs/kimap/appendjob.cpp:133
#20 0xb7155f2e in KIMAP::SessionPrivate::responseReceived (this=0x8dd55e0, response=@0x8c45830) at /d/kde/src/t/kdepimlibs/kimap/session.cpp:193
#21 0xb7156690 in KIMAP::Session::qt_metacall (this=0x8c4e3b0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x8d94d70) at /d/kde/build/t/kdepimlibs/kimap/session.moc:92
#22 0xb7d4c16e in QMetaCallEvent::placeMetaCall (this=0x8e05fe0, object=0x8c4e3b0) at kernel/qobject.cpp:477
#23 0xb7d50793 in QObject::event (this=0x8c4e3b0, e=0x8e05fe0) at kernel/qobject.cpp:1107
#24 0xb73f7ab1 in QApplicationPrivate::notify_helper (this=0x8c18380, receiver=0x8c4e3b0, e=0x8e05fe0) at kernel/qapplication.cpp:4056
#25 0xb73f7e26 in QApplication::notify (this=0xbfde1f28, receiver=0x8c4e3b0, e=0x8e05fe0) at kernel/qapplication.cpp:3603
#26 0xb6b63e0b in KApplication::notify (this=0xbfde1f28, receiver=0x8c4e3b0, event=0x8e05fe0) at /d/kde/src/t/kdelibs/kdeui/kernel/kapplication.cpp:302
#27 0xb7d3c309 in QCoreApplication::notifyInternal (this=0xbfde1f28, receiver=0x8c4e3b0, event=0x8e05fe0) at kernel/qcoreapplication.cpp:606
#28 0xb7d3fe97 in QCoreApplication::sendEvent (receiver=0x8c4e3b0, event=0x8e05fe0) at kernel/qcoreapplication.h:213
#29 0xb7d3c7f1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8c01420) at kernel/qcoreapplication.cpp:1244
#30 0xb7d3c9ad in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#31 0xb7d6cc86 in QCoreApplication::sendPostedEvents () at kernel/qcoreapplication.h:218
#32 0xb7d6be90 in postEventSourceDispatch (s=0x8c1a6e8) at kernel/qeventdispatcher_glib.cpp:210
#33 0xb6358718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0xb635bdc3 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0xb635bf81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0xb7d6b212 in QEventDispatcherGlib::processEvents (this=0x8c18340, flags={i = -1075962396}) at kernel/qeventdispatcher_glib.cpp:327
#37 0xb74a6bc0 in QGuiEventDispatcherGlib::processEvents (this=0x8c18340, flags={i = -1075962348}) at kernel/qguieventdispatcher_glib.cpp:202
#38 0xb7d39324 in QEventLoop::processEvents (this=0xbfde1ea0, flags={i = -1075962276}) at kernel/qeventloop.cpp:149
#39 0xb7d39595 in QEventLoop::exec (this=0xbfde1ea0, flags={i = -1075962200}) at kernel/qeventloop.cpp:197
#40 0xb7d3cae1 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#41 0xb73f77ca in QApplication::exec () at kernel/qapplication.cpp:3525
#42 0xb7f428c3 in Akonadi::ResourceBase::init (r=0x8d3db80) at /d/kde/src/t/kdepimlibs/akonadi/resourcebase.cpp:219
#43 0x080756cd in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbfde2004) at /d/kde/inst/kde-trunk/include/akonadi/resourcebase.h:186
#44 0x0806d7c1 in main (argc=) at /d/kde/src/t/kdepim/akonadi/resources/imap/imapresource.cpp:1231

Reported using DrKonqi
Comment 1 Sabine Faure 2009-08-28 01:39:47 UTC
This crash keeps happening a few minutes after the Akonadi server is launched. It keeps happening again and again even after trying to stop and relaunch the Akonadi server.

Trunk, Svn Rev 1016229
Comment 2 Kevin Ottens 2009-08-28 15:14:10 UTC
Was a migration error (discussed on IRC), the database had the old remote ID scheme stored, while the resource was expecting the new one (then the generated mail box name was non existing)

@Volker: that said maybe there should be a way to detect that now we're using the hierarchical remote ID and trigger a full resync?
Comment 3 Sabine Faure 2009-09-25 16:56:35 UTC
It is corrected now.

The crash has been fixed.


Trunk, Svn Rev 1027981