Bug 353881 - KMail crash when starting and using POP
Summary: KMail crash when starting and using POP
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: POP3 Resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-10-14 03:59 UTC by Richard Johnson
Modified: 2015-12-06 09:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Johnson 2015-10-14 03:59:16 UTC
Application: akonadi_pop3_resource (4.88.0)

Qt Version: 5.4.2
Operating System: Linux 4.2.0-16-generic x86_64
Distribution: Ubuntu Wily Werewolf (development branch)

-- Information about the crash:
* Set up a POP account 
* Noticed POP account, though correct, was not actually sending any packets when I clicked "CheckMail"
* Closed KMail and all other Akonadi-related programs
* Opened Kmail and it crashed

This is the first time.  I will try a restart in a moment.
Below is the tcpdump for that port when it happened.

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp0s25, link-type EN10MB (Ethernet), capture size 262144 bytes
20:39:21.211148 IP minerva.home.40650 > alexandria.home.pop3: Flags [S], seq 3327449264, win 29200, options [mss 1460,sackOK,TS val 24249355 ecr 0,nop,wscale 7], length 0
20:39:21.211471 IP alexandria.home.pop3 > minerva.home.40650: Flags [S.], seq 2407372149, ack 3327449265, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3253502342 ecr 24249355], length 0
20:39:21.211487 IP minerva.home.40650 > alexandria.home.pop3: Flags [.], ack 1, win 229, options [nop,nop,TS val 24249355 ecr 3253502342], length 0
20:39:21.212794 IP alexandria.home.pop3 > minerva.home.40650: Flags [P.], seq 1:24, ack 1, win 1040, options [nop,nop,TS val 3253502342 ecr 24249355], length 23
20:39:21.212810 IP minerva.home.40650 > alexandria.home.pop3: Flags [.], ack 24, win 229, options [nop,nop,TS val 24249355 ecr 3253502342], length 0
20:39:21.213038 IP minerva.home.40650 > alexandria.home.pop3: Flags [P.], seq 1:15, ack 24, win 229, options [nop,nop,TS val 24249355 ecr 3253502342], length 14
20:39:21.213433 IP alexandria.home.pop3 > minerva.home.40650: Flags [P.], seq 24:56, ack 15, win 1040, options [nop,nop,TS val 3253502344 ecr 24249355], length 32
20:39:21.255321 IP alexandria.home.pop3 > minerva.home.40650: Flags [P.], seq 56:128, ack 29, win 1040, options [nop,nop,TS val 3253502385 ecr 24249355], length 72
20:39:21.256483 IP minerva.home.40650 > alexandria.home.pop3: Flags [P.], seq 29:35, ack 128, win 229, options [nop,nop,TS val 24249366 ecr 3253502385], length 6
20:39:21.256786 IP alexandria.home.pop3 > minerva.home.40650: Flags [P.], seq 128:133, ack 35, win 1040, options [nop,nop,TS val 3253502387 ecr 24249366], length 5
20:39:21.256799 IP alexandria.home.pop3 > minerva.home.40650: Flags [F.], seq 133, ack 35, win 1040, options [nop,nop,TS val 3253502387 ecr 24249366], length 0
20:39:21.256969 IP minerva.home.40650 > alexandria.home.pop3: Flags [F.], seq 35, ack 134, win 229, options [nop,nop,TS val 24249366 ecr 3253502387], length 0
20:39:21.257404 IP alexandria.home.pop3 > minerva.home.40650: Flags [.], ack 36, win 1040, options [nop,nop,TS val 3253502387 ecr 24249366], length 0

-- Backtrace:
Application: Akonadi Resource (akonadi_pop3_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4d00c45840 (LWP 18565))]

Thread 10 (Thread 0x7f4cfe9c4700 (LWP 18566)):
#0  0x00007f4d0eacf8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4d0a49abd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f4d0a49c74f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f4d008eb9e9 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#4  0x00007f4d0f3d92be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cfe9c4700) at pthread_create.c:333
#6  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f4cf1c2c700 (LWP 18571)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cf1c2c700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f4cf142b700 (LWP 18572)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cf142b700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f4cf0c2a700 (LWP 18573)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cf0c2a700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f4cf0429700 (LWP 18574)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cf0429700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f4cefc28700 (LWP 18575)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cefc28700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f4cef427700 (LWP 18576)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cef427700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f4ceec26700 (LWP 18577)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4ceec26700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f4cee425700 (LWP 18578)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4cf4ff7d33 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#2  0x00007f4cf4ff7b97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#3  0x00007f4d0a6b96aa in start_thread (arg=0x7f4cee425700) at pthread_create.c:333
#4  0x00007f4d0eadaeed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f4d00c45840 (LWP 18565)):
[KCrash Handler]
#6  0x0000000000434b39 in QWeakPointer<QObject>::data (this=0x2256b90) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:587
#7  QPointer<KIO::Slave>::data (this=0x2256b90) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qpointer.h:70
#8  QPointer<KIO::Slave>::operator KIO::Slave* (this=0x2256b90) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qpointer.h:76
#9  POPSession::getSlave (this=0x2256b80) at ../../../resources/pop3/jobs.cpp:169
#10 0x0000000000435135 in LoginJob::slaveConnected (this=0x22596f0, slave=0x276ffe0) at ../../../resources/pop3/jobs.cpp:286
#11 0x00007f4d0f5e978a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f4d1178a88f in KIO::Scheduler::slaveConnected (this=<optimized out>, _t1=0x276ffe0) at ./moc_scheduler.cpp:203
#13 0x00007f4d0f5e978a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f4d11760f5d in KIO::SlaveInterface::dispatch (this=0x276ffe0, _cmd=<optimized out>, rawdata=...) at ../../../src/core/slaveinterface.cpp:202
#15 0x00007f4d1175e537 in KIO::SlaveInterface::dispatch (this=0x276ffe0) at ../../../src/core/slaveinterface.cpp:89
#16 0x00007f4d11762b21 in KIO::Slave::gotInput (this=0x276ffe0) at ../../../src/core/slave.cpp:388
#17 0x00007f4d117dec25 in KIO::Slave::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at moc_slave.cpp:86
#18 0x00007f4d0f5e978a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f4d117101e3 in KIO::Connection::readyRead (this=<optimized out>) at ./moc_connection_p.cpp:140
#20 KIO::ConnectionPrivate::dequeue (this=0x23a1550) at ../../../src/core/connection.cpp:45
#21 0x00007f4d0f5ea651 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f4d0fe86b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f4d0fe8c230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f4d0f5b8f1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f4d0f5bb057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f4d0f60fe73 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f4d09d74ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f4d09d75250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f4d09d752fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f4d0f61027f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f4d0f5b675a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f4d0f5be2cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f4d12c5f13a in Akonadi::ResourceBase::init (r=r@entry=0x2228550) at ../../../../akonadi/src/agentbase/resourcebase.cpp:599
#34 0x0000000000427968 in Akonadi::ResourceBase::init<POP3Resource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:193
#35 0x00007f4d0e9f4a40 in __libc_start_main (main=0x41b0d0 <main(int, char**)>, argc=3, argv=0x7ffd14180018, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd14180008) at libc-start.c:289
#36 0x000000000041b109 in _start ()

Reported using DrKonqi
Comment 1 Richard Johnson 2015-10-15 03:39:50 UTC
Unless there's a deeper Akonadi issue, we can close this bug.

Crash did not recur, and I was able to set up POP.
Comment 2 Tom Mittelstädt 2015-12-06 09:13:59 UTC
The problem occurs here occasionally, too.
Comment 3 Tom Mittelstädt 2015-12-06 09:15:25 UTC
Rückverfolgung des Absturzes:

Application: Akonadi-Ressource (akonadi_pop3_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa89f291840 (LWP 2492))]

Thread 2 (Thread 0x7fa888cf3700 (LWP 2524)):
#0  0x00007fa89ac378dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fa8965cbbd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fa8965cd74f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fa88b49ea39 in QXcbEventReader::run (this=0x157c8a0) at qxcbconnection.cpp:1105
#4  0x00007fa89b5412be in QThreadPrivate::start (arg=0x157c8a0) at thread/qthread_unix.cpp:337
#5  0x00007fa8967ea6aa in start_thread (arg=0x7fa888cf3700) at pthread_create.c:333
#6  0x00007fa89ac42eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fa89f291840 (LWP 2492)):
[KCrash Handler]
#6  0x0000000000434b39 in POPSession::getSlave() const ()
#7  0x0000000000435135 in LoginJob::slaveConnected(KIO::Slave*) ()
#8  0x00007fa89b75178a in QMetaObject::activate (sender=0x168acd0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3717
#9  0x00007fa89d8f288f in KIO::Scheduler::slaveConnected(KIO::Slave*) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#10 0x00007fa89b75178a in QMetaObject::activate (sender=0x168e570, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3717
#11 0x00007fa89d8c8f5d in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#12 0x00007fa89d8c6537 in KIO::SlaveInterface::dispatch() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#13 0x00007fa89d8cab21 in KIO::Slave::gotInput() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#14 0x00007fa89d946c25 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#15 0x00007fa89b75178a in QMetaObject::activate (sender=0x16fe910, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3717
#16 0x00007fa89d8781e3 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#17 0x00007fa89b752651 in QObject::event (this=0x16fe910, e=<optimized out>) at kernel/qobject.cpp:1245
#18 0x00007fa89bfeeb8c in QApplicationPrivate::notify_helper (this=this@entry=0x15529e0, receiver=receiver@entry=0x16fe910, e=e@entry=0x1796e00) at kernel/qapplication.cpp:3720
#19 0x00007fa89bff4230 in QApplication::notify (this=0x7fff5510c620, receiver=0x16fe910, e=0x1796e00) at kernel/qapplication.cpp:3503
#20 0x00007fa89b720f1b in QCoreApplication::notifyInternal (this=0x7fff5510c620, receiver=0x16fe910, event=event@entry=0x1796e00) at kernel/qcoreapplication.cpp:935
#21 0x00007fa89b723057 in QCoreApplication::sendEvent (event=0x1796e00, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1549d60) at kernel/qcoreapplication.cpp:1552
#23 0x00007fa89b723588 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1410
#24 0x00007fa89b777e73 in postEventSourceDispatch (s=0x15a5990) at kernel/qeventdispatcher_glib.cpp:271
#25 0x00007fa895ea6ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fa895ea7250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fa895ea72fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fa89b77827f in QEventDispatcherGlib::processEvents (this=0x15aaf70, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#29 0x00007fa89b71e75a in QEventLoop::exec (this=this@entry=0x7fff5510c590, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#30 0x00007fa89b7262cc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#31 0x00007fa89ba3b00c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#32 0x00007fa89bfeb025 in QApplication::exec () at kernel/qapplication.cpp:2956
#33 0x00007fa89edc721a in Akonadi::ResourceBase::init (r=0x16867f0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:602
#34 0x0000000000427968 in int Akonadi::ResourceBase::init<POP3Resource>(int, char**) ()
#35 0x00007fa89ab5ca40 in __libc_start_main (main=0x41b0d0 <main>, argc=3, argv=0x7fff5510c748, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff5510c738) at libc-start.c:289
#36 0x000000000041b109 in _start ()