Bug 216282 - Crash if login fails and cancel is chosen
Summary: Crash if login fails and cancel is chosen
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
: 218662 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-26 17:19 UTC by Sebastian Sauer
Modified: 2010-01-25 10:52 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 Sebastian Sauer 2009-11-26 17:19:26 UTC
Version:           akonadi-ports (using Devel)
OS:                Linux
Installed from:    Compiled sources

Application: Akonadi Resource (akonadi_imap_resource), signal: Segmentation fault
[Current thread is 0 (LWP 8637)]

Thread 3 (Thread 0x7f5809a2e950 (LWP 8641)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f581c0ca785 in QWaitConditionPrivate::wait (this=0x1251580, time=18446744073709551615) at /home/kdab/svn/qt/qt/src/corelib/thread/qwaitcondition_unix.cpp:87
#2  0x00007f581c0ca2e2 in QWaitCondition::wait (this=0x1327be0, mutex=0x1327bd8, time=18446744073709551615) at /home/kdab/svn/qt/qt/src/corelib/thread/qwaitcondition_unix.cpp:159
#3  0x00007f581adb7371 in QHostInfoAgent::run (this=0x1327bc0) at /home/kdab/svn/qt/qt/src/network/kernel/qhostinfo.cpp:252
#4  0x00007f581c0c9f52 in QThreadPrivate::start (arg=0x1327bc0) at /home/kdab/svn/qt/qt/src/corelib/thread/qthread_unix.cpp:244
#5  0x00007f581be223ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f5817f3efcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5803fff950 (LWP 9498)):
#0  0x00007f5817f35496 in *__GI___poll (fds=0x12e5e00, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5816f3f77f in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f5816f3fa7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f581c1f37db in QEventDispatcherGlib::processEvents (this=0x12ed1a0, flags={i = 67104416}) at /home/kdab/svn/qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:409
#4  0x00007f581c1c035b in QEventLoop::processEvents (this=0x7f5803ffef70, flags={i = 67104544}) at /home/kdab/svn/qt/qt/src/corelib/kernel/qeventloop.cpp:149
#5  0x00007f581c1c057d in QEventLoop::exec (this=0x7f5803ffef70, flags={i = 67104656}) at /home/kdab/svn/qt/qt/src/corelib/kernel/qeventloop.cpp:197
#6  0x00007f581c0c61e9 in QThread::exec (this=0x16fc6a0) at /home/kdab/svn/qt/qt/src/corelib/thread/qthread.cpp:487
#7  0x00007f581aaf7049 in KIMAP::SessionThread::run (this=0x16fc6a0) at /home/q45/svn/kde/akonadi-ports/kdepimlibs/kimap/sessionthread.cpp:160
#8  0x00007f581c0c9f52 in QThreadPrivate::start (arg=0x16fc6a0) at /home/kdab/svn/qt/qt/src/corelib/thread/qthread_unix.cpp:244
#9  0x00007f581be223ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00007f5817f3efcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f581cd95750 (LWP 8637)):
[KCrash Handler]
#5  0x00007f581aadbb94 in KIMAP::JobPrivate::sessionInternal (this=0x14b9cd0) at /home/q45/svn/kde/akonadi-ports/kdepimlibs/kimap/job_p.h:39
#6  0x00007f581aadb652 in KIMAP::Job::start (this=0x1324960) at /home/q45/svn/kde/akonadi-ports/kdepimlibs/kimap/job.cpp:56
#7  0x0000000000433b35 in ImapResource::onConnectError (this=0xf8c590, session=0x16bcae0, code=1, message=@0x7fff24dde990)
    at /home/q45/svn/kde/akonadi-ports/kdepim/akonadi/resources/imap/imapresource.cpp:1302
#8  0x0000000000434ce8 in ImapResource::qt_metacall (this=0xf8c590, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff24dde8f0)
    at /home/q45/svn/build/kdepim/akonadi/resources/imap/imapresource.moc:165
#9  0x00007f581c1c9b4f in QMetaObject::metacall (object=0xf8c590, cl=QMetaObject::InvokeMetaMethod, idx=46, argv=0x7fff24dde8f0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#10 0x00007f581c1da704 in QMetaObject::activate (sender=0x16d3790, m=0x453f40, local_signal_index=1, argv=0x7fff24dde8f0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qobject.cpp:3387
#11 0x000000000041b358 in ImapAccount::error (this=0x16d3790, _t1=0x16bcae0, _t2=1, _t3=@0x7fff24dde990) at /home/q45/svn/build/kdepim/akonadi/resources/imap/imapaccount.moc:119
#12 0x000000000041c3e9 in ImapAccount::onLoginDone (this=0x16d3790, job=0x155dcf0) at /home/q45/svn/kde/akonadi-ports/kdepim/akonadi/resources/imap/imapaccount.cpp:270
#13 0x000000000041c66e in ImapAccount::qt_metacall (this=0x16d3790, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff24ddeb80) at /home/q45/svn/build/kdepim/akonadi/resources/imap/imapaccount.moc:98
#14 0x00007f581c1c9b4f in QMetaObject::metacall (object=0x16d3790, cl=QMetaObject::InvokeMetaMethod, idx=6, argv=0x7fff24ddeb80) at /home/kdab/svn/qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#15 0x00007f581c1da704 in QMetaObject::activate (sender=0x155dcf0, m=0x7f581908a6c0, local_signal_index=3, argv=0x7fff24ddeb80) at /home/kdab/svn/qt/qt/src/corelib/kernel/qobject.cpp:3387
#16 0x00007f5818ce120d in KJob::result (this=0x155dcf0, _t1=0x155dcf0) at /home/q45/svn/build/kdelibs/kdecore/kjob.moc:194
#17 0x00007f5818ce1615 in KJob::emitResult (this=0x155dcf0) at /home/q45/svn/kde/trunk/KDE/kdelibs/kdecore/jobs/kjob.cpp:312
#18 0x00007f581aaec228 in KIMAP::LoginJob::handleResponse (this=0x155dcf0, response=@0x15fa960) at /home/q45/svn/kde/akonadi-ports/kdepimlibs/kimap/loginjob.cpp:221
#19 0x00007f581aaf4be8 in KIMAP::SessionPrivate::responseReceived (this=0x16d3660, response=@0x15fa960) at /home/q45/svn/kde/akonadi-ports/kdepimlibs/kimap/session.cpp:211
#20 0x00007f581aaf4ec4 in KIMAP::Session::qt_metacall (this=0x16bcae0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x1535ef0) at /home/q45/svn/build/kdepimlibs/kimap/session.moc:98
#21 0x00007f581c1c9b4f in QMetaObject::metacall (object=0x16bcae0, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0x1535ef0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#22 0x00007f581c1d4bbb in QMetaCallEvent::placeMetaCall (this=0x168ded0, object=0x16bcae0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qobject.cpp:562
#23 0x00007f581c1d6528 in QObject::event (this=0x16bcae0, e=0x168ded0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qobject.cpp:1235
#24 0x00007f581b2716ef in QApplicationPrivate::notify_helper (this=0xe75560, receiver=0x16bcae0, e=0x168ded0) at /home/kdab/svn/qt/qt/src/gui/kernel/qapplication.cpp:4251
#25 0x00007f581b271ad5 in QApplication::notify (this=0x7fff24ddfd90, receiver=0x16bcae0, e=0x168ded0) at /home/kdab/svn/qt/qt/src/gui/kernel/qapplication.cpp:3676
#26 0x00007f5819543481 in KApplication::notify (this=0x7fff24ddfd90, receiver=0x16bcae0, event=0x168ded0) at /home/q45/svn/kde/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#27 0x00007f581c1c3361 in QCoreApplication::notifyInternal (this=0x7fff24ddfd90, receiver=0x16bcae0, event=0x168ded0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qcoreapplication.cpp:704
#28 0x00007f581c1c7345 in QCoreApplication::sendEvent (receiver=0x16bcae0, event=0x168ded0) at ../../include/QtCore/../../../../../../kdab/svn/qt/qt/src/corelib/kernel/qcoreapplication.h:215
#29 0x00007f581c1c38b3 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xe5c7b0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qcoreapplication.cpp:1342
#30 0x00007f581c1c3a8a in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/kdab/svn/qt/qt/src/corelib/kernel/qcoreapplication.cpp:1238
#31 0x00007f581c1f56cd in QCoreApplication::sendPostedEvents () at /home/kdab/svn/qt/qt/src/corelib/kernel/qcoreapplication.h:220
#32 0x00007f581c1f46d3 in postEventSourceDispatch (s=0xe79100) at /home/kdab/svn/qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:276
#33 0x00007f5816f3c20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0x00007f5816f3f8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0x00007f5816f3fa7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0x00007f581c1f37bd in QEventDispatcherGlib::processEvents (this=0xe5be10, flags={i = 618527648}) at /home/kdab/svn/qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:407
#37 0x00007f581b32f0cf in QGuiEventDispatcherGlib::processEvents (this=0xe5be10, flags={i = 618527744}) at /home/kdab/svn/qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#38 0x00007f581c1c035b in QEventLoop::processEvents (this=0x7fff24ddfcd0, flags={i = 618527872}) at /home/kdab/svn/qt/qt/src/corelib/kernel/qeventloop.cpp:149
#39 0x00007f581c1c057d in QEventLoop::exec (this=0x7fff24ddfcd0, flags={i = 618527984}) at /home/kdab/svn/qt/qt/src/corelib/kernel/qeventloop.cpp:197
#40 0x00007f581c1c3bac in QCoreApplication::exec () at /home/kdab/svn/qt/qt/src/corelib/kernel/qcoreapplication.cpp:981
#41 0x00007f581b273d82 in QApplication::exec () at /home/kdab/svn/qt/qt/src/gui/kernel/qapplication.cpp:3590
#42 0x00007f581c8de944 in Akonadi::ResourceBase::init (r=0xf8c590) at /home/q45/svn/kde/akonadi-ports/kdepimlibs/akonadi/resourcebase.cpp:219
#43 0x0000000000440995 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0x7fff24ddfed8) at /home/q45/kde/include/akonadi/resourcebase.h:186
#44 0x0000000000435a69 in main (argc=3, argv=0x7fff24ddfed8) at /home/q45/svn/kde/akonadi-ports/kdepim/akonadi/resources/imap/imapresource.cpp:1852
Comment 1 Sebastian Sauer 2009-11-26 17:21:17 UTC
after the crash "it" still tries to connect btw. So, infinite loop of "login failed" errormessage=>cancel=>crash=>...
Comment 2 Kevin Ottens 2009-12-15 11:39:14 UTC
*** Bug 218662 has been marked as a duplicate of this bug. ***
Comment 3 Kevin Ottens 2010-01-25 10:52:47 UTC
Still can't reproduce even after the merge on trunk. Please let me know if that reappears, probably with a more precise list of steps for reproducing.