Bug 181443 - crash when entering imap inbox
Summary: crash when entering imap inbox
Status: RESOLVED DUPLICATE of bug 193891
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 182427 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-21 00:54 UTC by Silas De Munck
Modified: 2009-07-06 18:05 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 Silas De Munck 2009-01-21 00:54:12 UTC
Version:           1.11.0 (KDE 4.2 RC1) (using Devel)
OS:                Linux
Installed from:    Compiled sources

Since KDE 4.2RC1, kmail crashes when I click on the inbox folder of my imap account. Other folders are working fine.

Backtrace:
Application: KMail (kmail), signal SIGSEGV

Thread 1 (Thread 0xb3fab700 (LWP 13666)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb576e176 in nanosleep () from /lib/libc.so.6
#2  0xb576df87 in sleep () from /lib/libc.so.6
#3  0xb7dd3f6a in ?? () from /usr/kde/4.2/lib/libkdeui.so.5
#4  0x00000001 in ?? ()
#5  0x00000000 in ?? ()
Comment 1 Silas De Munck 2009-01-21 00:55:27 UTC
Another backtrace:
Application: KMail (kmail), signal SIGSEGV
[Current thread is 0 (LWP 13688)]

Thread 2 (Thread 0xb0f57b90 (LWP 13693)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb6507bd2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb65a7164 in QWaitCondition::wait () from /usr/lib/qt4/libQtCore.so.4
#3  0xb659c772 in ?? () from /usr/lib/qt4/libQtCore.so.4
#4  0xb65a625e in ?? () from /usr/lib/qt4/libQtCore.so.4
#5  0xb650316b in start_thread () from /lib/libpthread.so.0
#6  0xb597182e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb417a700 (LWP 13688)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb593d176 in nanosleep () from /lib/libc.so.6
#2  0xb593cf87 in sleep () from /lib/libc.so.6
#3  0xb7fa2f6a in ?? () from /usr/kde/4.2/lib/libkdeui.so.5
#4  0x00000001 in ?? ()
#5  0x00000000 in ?? ()

Comment 2 Dario Andres 2009-01-21 00:56:01 UTC
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? Thanks :)
Comment 3 Kacper Nyka 2009-01-21 01:41:20 UTC
Yes, the bug reproducable. Just after starting Kmail/Kontact when you are entering the inbox Kmail/Kontact crashes. 

Anwendung: KMail (kmail), Signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[Current thread is 1 (Thread 0xb3d82700 (LWP 8436))]

Thread 2 (Thread 0xb0a8bb90 (LWP 8438)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb69f1f62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6a5184c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb6a469c6 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6a5085e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb69ee1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb5e0338e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb3d82700 (LWP 8436)):
[KCrash Handler]
#6  0x53497363 in ?? ()
#7  0xb75396ac in KMFolderImap::qt_metacall (this=0x82493a0, _c=139054576, _id=27, _a=0x852b308) at /usr/src/debug/kdepim-4.1.96/build/kmail/kmfolderimap.moc:181
#8  0xb6b55580 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#9  0xb6b56302 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#10 0xb7adbc33 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#11 0xb7adc0d9 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#12 0xb6d99885 in KIO::SimpleJob::slotFinished() () from /usr/lib/libkio.so.5
#13 0xb6d999ce in KIO::ListJob::slotFinished() () from /usr/lib/libkio.so.5
#14 0xb6d9e803 in KIO::ListJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#15 0xb6b55580 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#16 0xb6b56302 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0xb6e4afb7 in KIO::SlaveInterface::finished() () from /usr/lib/libkio.so.5
#18 0xb6e4dc0f in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/libkio.so.5
#19 0xb6e4b5c7 in KIO::SlaveInterface::dispatch() () from /usr/lib/libkio.so.5
#20 0xb6e3dee0 in KIO::Slave::gotInput() () from /usr/lib/libkio.so.5
#21 0xb6e3e253 in KIO::Slave::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#22 0xb6b55580 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#23 0xb6b56302 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0xb6d670a7 in KIO::Connection::readyRead() () from /usr/lib/libkio.so.5
#25 0xb6d68ad3 in ?? () from /usr/lib/libkio.so.5
#26 0xb6d69126 in KIO::Connection::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#27 0xb6b4e71b in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#28 0xb6b50281 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#29 0xb60d68fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0xb60de75e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#31 0xb7e0a8fd in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#32 0xb6b40961 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#33 0xb6b415d5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#34 0xb6b417cd in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#35 0xb6b6b36f in ?? () from /usr/lib/libQtCore.so.4
#36 0xb451f9a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb4523063 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb4523221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb6b6afb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb616f7b5 in ?? () from /usr/lib/libQtGui.so.4
#41 0xb6b3f01a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb6b3f1da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#43 0xb6b41895 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#44 0xb60d6777 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#45 0x0804a5e0 in main (argc=139034432, argv=0x8495f20) at /usr/src/debug/kdepim-4.1.96/kmail/main.cpp:146
Comment 4 Dario Andres 2009-01-21 01:54:27 UTC
@Kacper: your crash is bug 179765 (already fixed in 4.2final). However this may be the same as the original bug report or not. Let's wait for the reporter reply.
Thanks
Comment 5 Silas De Munck 2009-01-21 09:30:05 UTC
I'm recompiling some things with debugging support... hopefully resulting in a better backtrace later today.
Comment 6 Silas De Munck 2009-01-21 10:12:14 UTC
Is this already useful? 

I recompiled kdelibs and kmail with debug symbols but libkmailprivate.so.4 still doesn't show them...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb4113700 (LWP 31390)]
0xb4dae286 in DwEntity::Headers () from /usr/kde/4.2/lib/libmimelib.so.4
(gdb) bt
#0  0xb4dae286 in DwEntity::Headers () from /usr/kde/4.2/lib/libmimelib.so.4
#1  0xb7584312 in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#2  0xb758560b in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#3  0xb777b54b in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#4  0xb764ade0 in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#5  0xb765a0ff in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#6  0xb7650bd1 in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#7  0xb7650dbc in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#8  0xb76545a0 in ?? () from /usr/kde/4.2/lib/libkmailprivate.so.4
#9  0xb671a70e in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#10 0xb671ada2 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#11 0xb67566c7 in QTimer::timeout () from /usr/lib/qt4/libQtCore.so.4
#12 0xb67217ce in QTimer::timerEvent () from /usr/lib/qt4/libQtCore.so.4
#13 0xb6715213 in QObject::event () from /usr/lib/qt4/libQtCore.so.4
#14 0xb5c85ed3 in QApplicationPrivate::notify_helper () from /usr/lib/qt4/libQtGui.so.4
#15 0xb5c87f49 in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
#16 0xb7e741a3 in KApplication::notify () from /usr/kde/4.2/lib/libkdeui.so.5
#17 0xb6705a06 in QCoreApplication::notifyInternal () from /usr/lib/qt4/libQtCore.so.4
#18 0xb6731d35 in ?? () from /usr/lib/qt4/libQtCore.so.4
#19 0xb67327f1 in QEventDispatcherUNIX::processEvents () from /usr/lib/qt4/libQtCore.so.4
#20 0xb5d16927 in ?? () from /usr/lib/qt4/libQtGui.so.4
#21 0xb6704b9d in QEventLoop::processEvents () from /usr/lib/qt4/libQtCore.so.4
#22 0xb6704d2c in QEventLoop::exec () from /usr/lib/qt4/libQtCore.so.4
#23 0xb6706ded in QCoreApplication::exec () from /usr/lib/qt4/libQtCore.so.4
#24 0xb5c85727 in QApplication::exec () from /usr/lib/qt4/libQtGui.so.4
#25 0x0804ab7f in _start ()
Comment 7 Silas De Munck 2009-01-21 10:47:47 UTC
Ok, sorry, I think this is what you need:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb3db6700 (LWP 3943)]
0xb4a75286 in DwEntity::Headers () from /usr/kde/4.2/lib/libmimelib.so.4
(gdb) bt
#0  0xb4a75286 in DwEntity::Headers () from /usr/kde/4.2/lib/libmimelib.so.4
#1  0xb734e302 in KMMessage::rawHeaderField (this=0x85edeb0, name=@0xbff284dc)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/kmmessage.cpp:2203
#2  0xb734f895 in KMMessage::from (this=0x85edeb0)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/kmmessage.cpp:1943
#3  0xb75b4b7e in KMail::FancyHeaderStyle::format (this=0x845e1c8, message=0x85edeb0, strategy=0x80a6268,
    vCardName=@0xbff2dd8c, printing=false, topLevel=true)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/headerstyle.cpp:456
#4  0xb74449ff in KMReaderWin::writeMsgHeader (this=0x83add90, aMsg=0x85edeb0, hasVCard=false, topLevel=true)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/kmreaderwin.cpp:1733
#5  0xb745866b in KMReaderWin::parseMsg (this=0x83add90, aMsg=0x85edeb0)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/kmreaderwin.cpp:1618
#6  0xb744be6a in KMReaderWin::displayMessage (this=0x83add90)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/kmreaderwin.cpp:1555
#7  0xb744bfe8 in KMReaderWin::updateReaderWin (this=0x83add90)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/kmreaderwin.cpp:1495
#8  0xb74503bd in KMReaderWin::qt_metacall (this=0x83add90, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbff2e1d8)
    at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail_build/kmail/kmreaderwin.moc:164
#9  0xb64b470e in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#10 0xb64b4da2 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
#11 0xb64f06c7 in QTimer::timeout () from /usr/lib/qt4/libQtCore.so.4
#12 0xb64bb7ce in QTimer::timerEvent () from /usr/lib/qt4/libQtCore.so.4
#13 0xb64af213 in QObject::event () from /usr/lib/qt4/libQtCore.so.4
#14 0xb5a1fed3 in QApplicationPrivate::notify_helper () from /usr/lib/qt4/libQtGui.so.4
#15 0xb5a21f49 in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
#16 0xb7d63a31 in KApplication::notify (this=0xbff2e99c, receiver=0x83adde0, event=0xbff2e6a8)
    at /var/tmp/portage/kde-base/kdelibs-4.1.96/work/kdelibs-4.1.96/kdeui/kernel/kapplication.cpp:307
#17 0xb649fa06 in QCoreApplication::notifyInternal () from /usr/lib/qt4/libQtCore.so.4
#18 0xb64cbd35 in ?? () from /usr/lib/qt4/libQtCore.so.4
#19 0xb64cc7f1 in QEventDispatcherUNIX::processEvents () from /usr/lib/qt4/libQtCore.so.4
#20 0xb5ab0927 in ?? () from /usr/lib/qt4/libQtGui.so.4
#21 0xb649eb9d in QEventLoop::processEvents () from /usr/lib/qt4/libQtCore.so.4
#22 0xb649ed2c in QEventLoop::exec () from /usr/lib/qt4/libQtCore.so.4
#23 0xb64a0ded in QCoreApplication::exec () from /usr/lib/qt4/libQtCore.so.4
#24 0xb5a1f727 in QApplication::exec () from /usr/lib/qt4/libQtGui.so.4
#25 0x0804b202 in main (argc=1, argv=0xbff2ea74) at /var/tmp/portage/kde-base/kmail-4.1.96/work/kmail-4.1.96/kmail/main.cpp:146
(gdb)        
Comment 8 Jaime Torres 2009-01-22 11:25:58 UTC
Please look at bug 179645. The backtraces are similar.
Comment 9 Silas De Munck 2009-01-26 20:59:27 UTC
Seems to be fixed by cleaning up .kde4.2/share/kmail/*

Comment 10 Dario Andres 2009-01-29 23:37:06 UTC
@Silas: next time try moving that folder to another place instead of completely deteleting it (as it may contain useful information for you, and for us to triage the bug)

Now I'm closing this as WORKSFORME. Please, reopen this bug report if you experience the same bug again.

This may be related to bug 179645 but we can't be properly sure.
Comment 11 Jaime Torres 2009-02-07 12:22:30 UTC
*** Bug 182427 has been marked as a duplicate of this bug. ***
Comment 12 Christophe Marin 2009-07-06 18:05:56 UTC

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