Bug 327844 - offline imap crashes when switched on
Summary: offline imap crashes when switched on
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.11
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-11-20 00:06 UTC by Lisandro Damián Nicanor Pérez Meyer
Modified: 2013-12-10 00:32 UTC (History)
3 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 Lisandro Damián Nicanor Pérez Meyer 2013-11-20 00:06:56 UTC
Application: akonadi_imap_resource (4.11)
KDE Platform Version: 4.11.3
Qt Version: 4.8.6
Operating System: Linux 3.11.5+edid x86_64
Distribution: Debian GNU/Linux unstable (sid)

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

I opened kontact. After the crash akonadi imap getsrestarted and the crash happens again, so it gets restarted and... you get the idea ;)

I have to run akonadictl stop to make my system usable.

The crash can be reproduced every time.

-- Backtrace:
Application: Gmail IMAP Offline of type IMAP E-Mail Server (akonadi_imap_resource), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5f9e5f6780 (LWP 11731))]

Thread 2 (Thread 0x7f5f8ae15700 (LWP 11770)):
#0  0x00007fff4ecd4a2f in clock_gettime ()
#1  0x00007f5f99fb3e5d in clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f5f9d932857 in do_gettime (frac=0x7f5f8ae14b80, sec=0x7f5f8ae14b78) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f5f9da0eb65 in updateCurrentTime (this=0x7f5f84002860) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x7f5f84002860, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f5f9da0d30c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f5f8ae14c34) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f5f9da0d3b5 in timerSourcePrepare (source=<optimized out>, timeout=timeout@entry=0x7f5f8ae14c34) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f5f98cd683d in g_main_context_prepare (context=context@entry=0x7f5f840009a0, priority=priority@entry=0x7f5f8ae14cb8) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3328
#9  0x00007f5f98cd70b3 in g_main_context_iterate (context=context@entry=0x7f5f840009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3681
#10 0x00007f5f98cd729c in g_main_context_iteration (context=0x7f5f840009a0, may_block=1) at /tmp/buildd/glib2.0-2.36.4/./glib/gmain.c:3762
#11 0x00007f5f9da0d4d6 in QEventDispatcherGlib::processEvents (this=0x7f5f840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#12 0x00007f5f9d9def9f in QEventLoop::processEvents (this=this@entry=0x7f5f8ae14df0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f5f9d9df295 in QEventLoop::exec (this=this@entry=0x7f5f8ae14df0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f5f9d8db91f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#15 0x00007f5f9d8ddfef in QThreadPrivate::start (arg=0x1e3ab90) at thread/qthread_unix.cpp:349
#16 0x00007f5f995f7e0e in start_thread (arg=0x7f5f8ae15700) at pthread_create.c:311
#17 0x00007f5f99fa20fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f5f9e5f6780 (LWP 11731)):
[KCrash Handler]
#6  0x00007f5f99eee1d5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f5f99ef1388 in __GI_abort () at abort.c:90
#8  0x00007f5f9a4db605 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007f5f9a4d9766 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f5f9a4d9793 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007f5f9a4d9a09 in __cxa_rethrow () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007f5f9d9df486 in QEventLoop::exec (this=this@entry=0x7fff4ecc6450, flags=...) at kernel/qeventloop.cpp:218
#13 0x00007f5f9d9e48db in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#14 0x00007f5f9cd7ef1c in QApplication::exec () at kernel/qapplication.cpp:3828
#15 0x00007f5f9e11dae3 in Akonadi::ResourceBase::init (r=r@entry=0x1d96140) at ../../akonadi/resourcebase.cpp:548
#16 0x000000000041dcb3 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:192
#17 0x00007f5f99eda995 in __libc_start_main (main=0x416400 <main(int, char**)>, argc=3, ubp_av=0x7fff4ecc65f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4ecc65e8) at libc-start.c:276
#18 0x0000000000416584 in _start ()

Possible duplicates by query: bug 327574, bug 327392, bug 326104, bug 325666, bug 325284.

Reported using DrKonqi
Comment 1 Lisandro Damián Nicanor Pérez Meyer 2013-11-21 02:55:15 UTC
The crash seems to come from an uncatched exception:

$ kontact
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kontact(11971)/libakonadi Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get a valid AgentManager DBus interface. Error is: 1 "org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 'org.freedesktop.Akonadi.Control': no such name" 
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kontact(11971)/libakonadi Akonadi::SessionPrivate::socketError: Socket error occurred: "QLocalSocket::connectToServer: Connection refused" 
kontact(11971)/libakonadi Akonadi::SessionPrivate::socketError: Socket error occurred: "QLocalSocket::connectToServer: Connection refused" 
search paths:  ("/usr/lib/ccache", "/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kontact(11971)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/lisandro/.kde/share/apps/messageviewer/themes/" 
kontact(11971)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/usr/share/kde4/apps/messageviewer/themes/" 
kontact(11971)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/lisandro/.kde/share/apps/messageviewer" 
kontact(11971)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/usr/share/kde4/apps/messageviewer" 
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/usr/lib/ccache", "/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games") 
search paths:  ("/home/lisandro/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/lisandro/.kde/lib/kde4/", "/usr/lib/kde4/") 
search paths:  ("/home/lisandro/.kde/lib/kde4/plugins/", "/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins", "/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins", "/home/lisandro/.kde/lib/kde4/", "/usr/lib/kde4/") 
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
akonadi_imap_resource_14(12037) ResourceState::item: Called item() while state holds multiple items! 
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
                                                                                                                                                                     
terminate called after throwing an instance of 'std::bad_alloc'                                                                                                      
  what():  std::bad_alloc                                                                                                                                            
KCrash: Application 'akonadi_imap_resource' crashing...                                                                                                              
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit                                                                                               
sock_file=/home/lisandro/.kde/socket-luna/kdeinit4__0                                                                                                                
akonadi_nepomuk_feeder(12044) ItemQueue::fetchJobResult: Not all items were fetched:  0 100                                                                          
akonadi_nepomuk_feeder(12044) ItemQueue::fetchJobResult: Not all items were fetched:  0 100                                                                          
akonadi_nepomuk_feeder(12044) ItemQueue::fetchJobResult: Not all items were fetched:  0 100                                                                          
akonadi_nepomuk_feeder(12044) ItemQueue::fetchJobResult: Not all items were fetched:  0 100                                                                          
"Cannot connect to agent instance with identifier 'akonadi_imap_resource_14', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_imap_resource_14': no such name'"                                                                                                                                     
"Cannot connect to agent instance with identifier 'akonadi_imap_resource_14', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_imap_resource_14': no such name'"
"Cannot connect to agent instance with identifier 'akonadi_imap_resource_14', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_imap_resource_14': no such name'"
akonadi_nepomuk_feeder(12044) ItemQueue::fetchJobResult: Not all items were fetched:  0 100 
akonadi_nepomuk_feeder(12044) ItemQueue::fetchJobResult: Not all items were fetched:  0 100
Comment 2 Christian Mollekopf 2013-12-09 21:44:03 UTC
Is this still valid? It doesn't really look like an imap resource problem but more like an installation problem, or something else rather low level. Atm. I can't do anything about this crash.
Comment 3 Lisandro Damián Nicanor Pérez Meyer 2013-12-09 23:49:04 UTC
It must have been some problem in akonadi. I restored a some days old backup and started working again. No disk failures nor power problems here, so I really don't know what could have happened :-(
Comment 4 Christian Mollekopf 2013-12-10 00:32:07 UTC
Ok, thanks for reporting.