Bug 304016 - kontact crash : kmail2 if restored from last session and wait for kwallet and cancel imap account
Summary: kontact crash : kmail2 if restored from last session and wait for kwallet and...
Status: RESOLVED DUPLICATE of bug 280761
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 4.8.x
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-24 17:25 UTC by Bruno Friedmann
Modified: 2012-08-28 15:49 UTC (History)
0 users

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 Bruno Friedmann 2012-07-24 17:25:43 UTC
Application: kontact (4.8.4)
KDE Platform Version: 4.8.4 (4.8.4) "release 513"
Qt Version: 4.8.2
Operating System: Linux 3.1.10-1.16-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
How to reproduce : have several imap accounts, each of them store the password in kwallet. 
Open kontact, in mail module. Close your session and shutdown your computer.
Restart (was on another network in my case) and open your kde session.
My setup is to restore any opened programs.
so kontact start and kwallet open its dialog box to unlock password.
I wait several minutes, and one of the account ask for its password.
I enter the kwallet password, and cancel the imap account.
Few seconds later I get this backtrace.

First even if there's a timeout for kwallet, I find strange that the imap account was proposed. Then the crash if you cancel the password entry is wired :-)

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fd8ca0e2760 (LWP 3348))]

Thread 3 (Thread 0x7fd8b13a7700 (LWP 3456)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd8c690ac12 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fd8c72a91a0) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#2  0x00007fd8c690ac49 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#3  0x00007fd8c1f71f05 in start_thread (arg=0x7fd8b13a7700) at pthread_create.c:301
#4  0x00007fd8c75fc10d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fd8b0aa6700 (LWP 3501)):
#0  0x00007fff28d5a90a in ?? ()
#1  0x00007fd8bfa4dd9a in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007fd8c7c94014 in do_gettime (frac=0x7fd8b0aa5bc8, sec=0x7fd8b0aa5bc0) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007fd8c7d6b59d in QTimerInfoList::updateCurrentTime (this=0x7fd8ac0020d0) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007fd8c7d6b8d3 in QTimerInfoList::timerWait (this=0x7fd8ac0020d0, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007fd8c7d6a30c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7fd8b0aa5c8c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007fd8c1a61b22 in g_main_context_prepare (context=0x7fd8ac0009a0, priority=0x7fd8b0aa5cf8) at gmain.c:2746
#8  0x00007fd8c1a6292d in g_main_context_iterate (context=0x7fd8ac0009a0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3053
#9  0x00007fd8c1a62f59 in g_main_context_iteration (context=0x7fd8ac0009a0, may_block=1) at gmain.c:3136
#10 0x00007fd8c7d6ae36 in QEventDispatcherGlib::processEvents (this=0x7fd8ac0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#11 0x00007fd8c7d3a842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007fd8c7d3aa97 in QEventLoop::exec (this=0x7fd8b0aa5e20, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007fd8c7c3a5f7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#14 0x00007fd8c7c3d61b in QThreadPrivate::start (arg=0x64d250) at thread/qthread_unix.cpp:307
#15 0x00007fd8c1f71f05 in start_thread (arg=0x7fd8b0aa6700) at pthread_create.c:301
#16 0x00007fd8c75fc10d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fd8ca0e2760 (LWP 3348)):
[KCrash Handler]
#6  __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:32
#7  0x00007fd8b9f5491d in sasl_errdetail (conn=0x1588a60) at common.c:1272
#8  0x00007fd865825aed in KManageSieve::Session::startAuthentication (this=0x15889f0) at /usr/src/debug/kdepim-4.8.4/libksieve/kmanagesieve/session.cpp:376
#9  0x00007fd865826c31 in KManageSieve::Session::processResponse (this=0x15889f0, response=<optimized out>, data=<optimized out>) at /usr/src/debug/kdepim-4.8.4/libksieve/kmanagesieve/session.cpp:190
#10 0x00007fd865827e55 in KManageSieve::Session::dataReceived (this=0x15889f0) at /usr/src/debug/kdepim-4.8.4/libksieve/kmanagesieve/session.cpp:134
#11 0x00007fd8c7d4fc41 in QMetaObject::activate (sender=0x15748a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#12 0x00007fd8c825cbba in reemitReadyRead (this=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/kdecore/network/ktcpsocket.cpp:365
#13 qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/build/kdecore/ktcpsocket.moc:92
#14 KTcpSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/build/kdecore/ktcpsocket.moc:74
#15 0x00007fd8c7d4fc41 in QMetaObject::activate (sender=0x1588830, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#16 0x00007fd8c2f35bf4 in QSslSocketBackendPrivate::transmit (this=0x17212d0) at ssl/qsslsocket_openssl.cpp:1149
#17 0x00007fd8c2f2ffe9 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:98
#18 QSslSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:77
#19 0x00007fd8c7d4fc41 in QMetaObject::activate (sender=0x156f080, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#20 0x00007fd8c2f0f44f in QAbstractSocketPrivate::canReadNotification (this=0x1726980) at socket/qabstractsocket.cpp:654
#21 0x00007fd8c2f16fa1 in event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1151
#22 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1148
#23 0x00007fd8c8754fe4 in notify_helper (e=0x7fff28c49e10, receiver=0x62d400, this=0x650690) at kernel/qapplication.cpp:4551
#24 QApplicationPrivate::notify_helper (this=0x650690, receiver=0x62d400, e=0x7fff28c49e10) at kernel/qapplication.cpp:4523
#25 0x00007fd8c8759db3 in QApplication::notify (this=0x7fff28c4a0c0, receiver=0x62d400, e=0x7fff28c49e10) at kernel/qapplication.cpp:4412
#26 0x00007fd8c949b746 in KApplication::notify (this=0x7fff28c4a0c0, receiver=0x62d400, event=0x7fff28c49e10) at /usr/src/debug/kdelibs-4.8.4/kdeui/kernel/kapplication.cpp:311
#27 0x00007fd8c7d3bd0c in QCoreApplication::notifyInternal (this=0x7fff28c4a0c0, receiver=0x62d400, event=0x7fff28c49e10) at kernel/qcoreapplication.cpp:915
#28 0x00007fd8c7d6a427 in sendEvent (event=0x7fff28c49e10, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#29 socketNotifierSourceDispatch (source=0x63c2d0) at kernel/qeventdispatcher_glib.cpp:110
#30 0x00007fd8c1a6258d in g_main_dispatch (context=0x63c1e0) at gmain.c:2425
#31 g_main_context_dispatch (context=0x63c1e0) at gmain.c:2995
#32 0x00007fd8c1a62d88 in g_main_context_iterate (context=0x63c1e0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#33 0x00007fd8c1a62f59 in g_main_context_iteration (context=0x63c1e0, may_block=1) at gmain.c:3136
#34 0x00007fd8c7d6adcf in QEventDispatcherGlib::processEvents (this=0x60d4c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#35 0x00007fd8c87f869e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007fd8c7d3a842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007fd8c7d3aa97 in QEventLoop::exec (this=0x7fff28c4a050, flags=...) at kernel/qeventloop.cpp:204
#38 0x00007fd8c7d3f8b5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#39 0x0000000000403919 in main (argc=3, argv=0x7fff28c4a6e8) at /usr/src/debug/kdepim-4.8.4/kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Bruno Friedmann 2012-08-14 16:25:32 UTC
Updated version 4.8.5 : same conditions = same kind of crash 

Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fcb544c9760 (LWP 3778))]

Thread 3 (Thread 0x7fcb3bcdf700 (LWP 3780)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fcb50cf0c12 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fcb5168f1a0) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#2  0x00007fcb50cf0c49 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#3  0x00007fcb4c355f05 in start_thread (arg=0x7fcb3bcdf700) at pthread_create.c:301
#4  0x00007fcb519e210d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fcb3b3de700 (LWP 3782)):
#0  0x00007fcb519d8ff3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fcb4be46ae8 in g_main_context_poll (n_fds=1, fds=0x7fcb340013e0, timeout=4257, context=0x7fcb340009a0, priority=<optimized out>) at gmain.c:3386
#2  g_main_context_iterate (context=0x7fcb340009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3068
#3  0x00007fcb4be46fa9 in g_main_context_iteration (context=0x7fcb340009a0, may_block=1) at gmain.c:3136
#4  0x00007fcb52150e36 in QEventDispatcherGlib::processEvents (this=0x7fcb340008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fcb52120842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fcb52120a97 in QEventLoop::exec (this=0x7fcb3b3dde20, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fcb520205f7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fcb5202361b in QThreadPrivate::start (arg=0x64be80) at thread/qthread_unix.cpp:307
#9  0x00007fcb4c355f05 in start_thread (arg=0x7fcb3b3de700) at pthread_create.c:301
#10 0x00007fcb519e210d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fcb544c9760 (LWP 3778)):
[KCrash Handler]
#6  deref (this=0x0) at ../../src/corelib/arch/qatomic_x86_64.h:133
#7  QString::operator= (this=0x10d1ac0, other=...) at tools/qstring.cpp:1411
#8  0x00007fcaf00d4bb0 in KManageSieve::Session::startAuthentication (this=0x10d1a30) at /usr/src/debug/kdepim-4.8.5/libksieve/kmanagesieve/session.cpp:376
#9  0x00007fcaf00d5cb1 in KManageSieve::Session::processResponse (this=0x10d1a30, response=<optimized out>, data=<optimized out>) at /usr/src/debug/kdepim-4.8.5/libksieve/kmanagesieve/session.cpp:190
#10 0x00007fcaf00d6ed5 in KManageSieve::Session::dataReceived (this=0x10d1a30) at /usr/src/debug/kdepim-4.8.5/libksieve/kmanagesieve/session.cpp:134
#11 0x00007fcb52135c41 in QMetaObject::activate (sender=0x10d0fd0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#12 0x00007fcb5264294a in reemitReadyRead (this=<optimized out>) at /usr/src/debug/kdelibs-4.8.5/kdecore/network/ktcpsocket.cpp:365
#13 qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdelibs-4.8.5/build/kdecore/ktcpsocket.moc:92
#14 KTcpSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kdelibs-4.8.5/build/kdecore/ktcpsocket.moc:74
#15 0x00007fcb52135c41 in QMetaObject::activate (sender=0x10ba9f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#16 0x00007fcb4d319bf4 in QSslSocketBackendPrivate::transmit (this=0x127be70) at ssl/qsslsocket_openssl.cpp:1149
#17 0x00007fcb4d313fe9 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:98
#18 QSslSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:77
#19 0x00007fcb52135c41 in QMetaObject::activate (sender=0xf8b2c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#20 0x00007fcb4d2f344f in QAbstractSocketPrivate::canReadNotification (this=0x1238e60) at socket/qabstractsocket.cpp:654
#21 0x00007fcb4d2fafa1 in event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1151
#22 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1148
#23 0x00007fcb52b3afe4 in notify_helper (e=0x7ffff3f4d060, receiver=0x4036b40, this=0x64ee80) at kernel/qapplication.cpp:4551
#24 QApplicationPrivate::notify_helper (this=0x64ee80, receiver=0x4036b40, e=0x7ffff3f4d060) at kernel/qapplication.cpp:4523
#25 0x00007fcb52b3fdb3 in QApplication::notify (this=0x7ffff3f4d310, receiver=0x4036b40, e=0x7ffff3f4d060) at kernel/qapplication.cpp:4412
#26 0x00007fcb53881156 in KApplication::notify (this=0x7ffff3f4d310, receiver=0x4036b40, event=0x7ffff3f4d060) at /usr/src/debug/kdelibs-4.8.5/kdeui/kernel/kapplication.cpp:311
#27 0x00007fcb52121d0c in QCoreApplication::notifyInternal (this=0x7ffff3f4d310, receiver=0x4036b40, event=0x7ffff3f4d060) at kernel/qcoreapplication.cpp:915
#28 0x00007fcb52150427 in sendEvent (event=0x7ffff3f4d060, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#29 socketNotifierSourceDispatch (source=0x63b570) at kernel/qeventdispatcher_glib.cpp:110
#30 0x00007fcb4be465dd in g_main_dispatch (context=0x63b400) at gmain.c:2425
#31 g_main_context_dispatch (context=0x63b400) at gmain.c:2995
#32 0x00007fcb4be46dd8 in g_main_context_iterate (context=0x63b400, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#33 0x00007fcb4be46fa9 in g_main_context_iteration (context=0x63b400, may_block=1) at gmain.c:3136
#34 0x00007fcb52150dcf in QEventDispatcherGlib::processEvents (this=0x60d320, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#35 0x00007fcb52bde69e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007fcb52120842 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007fcb52120a97 in QEventLoop::exec (this=0x7ffff3f4d2a0, flags=...) at kernel/qeventloop.cpp:204
#38 0x00007fcb521258b5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#39 0x0000000000403919 in main (argc=3, argv=0x7ffff3f4d938) at /usr/src/debug/kdepim-4.8.5/kontact/src/main.cpp:218
Comment 2 Christophe Marin 2012-08-28 15:49:19 UTC

*** This bug has been marked as a duplicate of bug 280761 ***