Bug 324776

Summary: kmail crashing repeatedly while idle (or fetching mail)
Product: [Applications] kmail2 Reporter: Matthias Juchem <ubuntu>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.10.5   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matthias Juchem 2013-09-11 05:36:55 UTC
Application: kmail (4.10.5)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.8.0-29-generic x86_64
Distribution: Linux Mint 15 Olivia

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

Nothing, i.e. kmail was in background, maybe fetching mail via IMAP. It does so every 5 minutes. This problem occurs (almost?) every time kmail is running for more than a few minutes.

- Custom settings of the application:

Only IMAP folders, no POP3

The crash can be reproduced sometimes.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95
[Current thread is 1 (Thread 0x7f08d97337c0 (LWP 20786))]

Thread 5 (Thread 0x7f08b4a7f700 (LWP 20816)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f08cae5e585 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f08cae5e5d9 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f08d43bbf8e in start_thread (arg=0x7f08b4a7f700) at pthread_create.c:311
#4  0x00007f08d6ac3e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f0873acb700 (LWP 20817)):
#0  0x00007f08ced4c359 in g_mutex_get_impl (mutex=0x7f086c0009a0) at /build/buildd/glib2.0-2.36.0/./glib/gthread-posix.c:121
#1  0x00007f08ced4c5b9 in g_mutex_lock (mutex=mutex@entry=0x7f086c0009a0) at /build/buildd/glib2.0-2.36.0/./glib/gthread-posix.c:210
#2  0x00007f08ced0c90b in g_main_context_prepare (context=context@entry=0x7f086c0009a0, priority=priority@entry=0x7f0873acac38) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3330
#3  0x00007f08ced0d0fe in g_main_context_iterate (context=context@entry=0x7f086c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3681
#4  0x00007f08ced0d304 in g_main_context_iteration (context=0x7f086c0009a0, may_block=1) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3762
#5  0x00007f08d7452036 in QEventDispatcherGlib::processEvents (this=0x7f086c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f08d742238f in QEventLoop::processEvents (this=this@entry=0x7f0873acad90, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f08d7422618 in QEventLoop::exec (this=this@entry=0x7f0873acad90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f08d7324410 in QThread::exec (this=this@entry=0x2790f20) at thread/qthread.cpp:542
#9  0x00007f08d7403edf in QInotifyFileSystemWatcherEngine::run (this=0x2790f20) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f08d7326bec in QThreadPrivate::start (arg=0x2790f20) at thread/qthread_unix.cpp:338
#11 0x00007f08d43bbf8e in start_thread (arg=0x7f0873acb700) at pthread_create.c:311
#12 0x00007f08d6ac3e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f0872403700 (LWP 20818)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f08caba4a09 in JSC::BlockAllocator::blockFreeingThreadMain() () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f08cae8ccee in WTF::wtfThreadEntryPoint(void*) () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f08d43bbf8e in start_thread (arg=0x7f0872403700) at pthread_create.c:311
#4  0x00007f08d6ac3e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f0870f82700 (LWP 20820)):
[KCrash Handler]
#6  _int_free (av=0x7f08d6d8b740 <main_arena>, p=0x2a14520, have_lock=0) at malloc.c:3832
#7  0x00007f08d7370488 in QString::free (d=0x2a14530) at tools/qstring.cpp:1235
#8  0x00007f08d4f4dc89 in ~QString (this=0x353d2b0, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qstring.h:880
#9  QDBusMessagePrivate::~QDBusMessagePrivate (this=0x353d290, __in_chrg=<optimized out>) at qdbusmessage.cpp:72
#10 0x00007f08d4f4dd9f in QDBusMessage::~QDBusMessage (this=0x7f08d6d8b740 <main_arena>, __in_chrg=<optimized out>) at qdbusmessage.cpp:537
#11 0x00007f08d4f498ad in ~QDBusCallDeliveryEvent (this=0x2cbf560, __in_chrg=<optimized out>) at qdbusintegrator_p.h:93
#12 QDBusCallDeliveryEvent::~QDBusCallDeliveryEvent (this=0x2cbf560, __in_chrg=<optimized out>) at qdbusintegrator_p.h:93
#13 0x00007f08d742717a in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x2a2c070) at kernel/qcoreapplication.cpp:1586
#14 0x00007f08d74274a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#15 0x00007f08d7451e83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#16 postEventSourceDispatch (s=s@entry=0x7f085c0012d0) at kernel/qeventdispatcher_glib.cpp:279
#17 0x00007f08ced0cf05 in g_main_dispatch (context=0x7f085c0009a0) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3054
#18 g_main_context_dispatch (context=context@entry=0x7f085c0009a0) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3630
#19 0x00007f08ced0d248 in g_main_context_iterate (context=context@entry=0x7f085c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3701
#20 0x00007f08ced0d304 in g_main_context_iteration (context=0x7f085c0009a0, may_block=1) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3762
#21 0x00007f08d7452016 in QEventDispatcherGlib::processEvents (this=0x7f085c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#22 0x00007f08d742238f in QEventLoop::processEvents (this=this@entry=0x7f0870f81dc0, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007f08d7422618 in QEventLoop::exec (this=this@entry=0x7f0870f81dc0, flags=...) at kernel/qeventloop.cpp:204
#24 0x00007f08d7324410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#25 0x00007f08d7326bec in QThreadPrivate::start (arg=0x235b160) at thread/qthread_unix.cpp:338
#26 0x00007f08d43bbf8e in start_thread (arg=0x7f0870f82700) at pthread_create.c:311
#27 0x00007f08d6ac3e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f08d97337c0 (LWP 20786)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95
#1  0x00007f08d6a4ff2c in _L_lock_11850 () at malloc.c:5130
#2  0x00007f08d6a4d575 in __GI___libc_malloc (bytes=56) at malloc.c:2856
#3  0x00007f08d9586680 in _dl_map_object_deps (map=map@entry=0x7f08d977b9e8, preloads=preloads@entry=0x0, npreloads=npreloads@entry=0, trace_mode=trace_mode@entry=0, open_mode=open_mode@entry=-2147483648) at dl-deps.c:515
#4  0x00007f08d958cdaf in dl_open_worker (a=a@entry=0x7fffb02bae88) at dl-open.c:265
#5  0x00007f08d9588706 in _dl_catch_error (objname=objname@entry=0x7fffb02bae78, errstring=errstring@entry=0x7fffb02bae80, mallocedp=mallocedp@entry=0x7fffb02bae70, operate=operate@entry=0x7f08d958cc00 <dl_open_worker>, args=args@entry=0x7fffb02bae88) at dl-error.c:177
#6  0x00007f08d958c809 in _dl_open (file=0x7f08d6b4c146 "libgcc_s.so.1", mode=-2147483647, caller_dlopen=<optimized out>, nsid=-2, argc=3, argv=0x7fffb02bcdf8, env=0x7fffb02bce18) at dl-open.c:656
#7  0x00007f08d6b013c2 in do_dlopen (ptr=ptr@entry=0x7fffb02bb090) at dl-libc.c:87
#8  0x00007f08d9588706 in _dl_catch_error (objname=0x7fffb02bb070, errstring=0x7fffb02bb080, mallocedp=0x7fffb02bb060, operate=0x7f08d6b01380 <do_dlopen>, args=0x7fffb02bb090) at dl-error.c:177
#9  0x00007f08d6b01482 in dlerror_run (args=0x7fffb02bb090, operate=0x7f08d6b01380 <do_dlopen>) at dl-libc.c:46
#10 __GI___libc_dlopen_mode (name=name@entry=0x7f08d6b4c146 "libgcc_s.so.1", mode=mode@entry=-2147483647) at dl-libc.c:163
#11 0x00007f08d6adb6b5 in init () at ../sysdeps/x86_64/backtrace.c:52
#12 0x00007f08d43c1390 in pthread_once () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S:103
#13 0x00007f08d6adb7d4 in __GI___backtrace (array=array@entry=0x7fffb02bb350, size=size@entry=64) at ../sysdeps/x86_64/backtrace.c:103
#14 0x00007f08d6a3e5c5 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f08d6b51860 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:178
#15 0x00007f08d6a49576 in malloc_printerr (action=3, str=0x7f08d6b51bf8 "malloc(): memory corruption (fast)", ptr=<optimized out>) at malloc.c:4902
#16 0x00007f08d6a4c29d in _int_malloc (av=0x7f08d6d8b740 <main_arena>, bytes=<optimized out>) at malloc.c:3296
#17 0x00007f08d6a4d580 in __GI___libc_malloc (bytes=68) at malloc.c:2859
#18 0x00007f08d736b935 in QString::QString (this=0x7fffb02bbc30, size=18) at tools/qstring.cpp:1141
#19 0x00007f08d745afa1 in QUtf8::convertToUnicode (chars=<optimized out>, len=<optimized out>, state=state@entry=0x0) at codecs/qutfcodec.cpp:183
#20 0x00007f08d736dccb in QString::fromUtf8 (str=<optimized out>, size=<optimized out>, size@entry=-1) at tools/qstring.cpp:4020
#21 0x00007f08d4f4e1b8 in QDBusMessagePrivate::fromDBusMessage (dmsg=0x35d51e0, capabilities=...) at qdbusmessage.cpp:237
#22 0x00007f08d4f46c7e in qDBusSignalFilter (connection=<optimized out>, message=<optimized out>, data=0x2a13b90) at qdbusintegrator.cpp:549
#23 0x00007f08cd72bc06 in dbus_connection_dispatch () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#24 0x00007f08d4f3a5f9 in q_dbus_connection_dispatch (connection=<optimized out>) at qdbus_symbols_p.h:115
#25 QDBusConnectionPrivate::doDispatch (this=this@entry=0x2a13b90) at qdbusintegrator.cpp:1133
#26 0x00007f08d4f3c077 in QDBusConnectionPrivate::socketRead (this=0x2a13b90, fd=17) at qdbusintegrator.cpp:1153
#27 0x00007f08d74380ef in QMetaObject::activate (sender=sender@entry=0x2a165a0, m=m@entry=0x7f08d777e980 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffb02bc000) at kernel/qobject.cpp:3539
#28 0x00007f08d7483d2e in QSocketNotifier::activated (this=this@entry=0x2a165a0, _t1=17) at .moc/release-shared/moc_qsocketnotifier.cpp:103
#29 0x00007f08d7440b0b in QSocketNotifier::event (this=0x2a165a0, e=0x7fffb02bc620) at kernel/qsocketnotifier.cpp:317
#30 0x00007f08d794d8ec in QApplicationPrivate::notify_helper (this=this@entry=0x22a2cf0, receiver=receiver@entry=0x2a165a0, e=e@entry=0x7fffb02bc620) at kernel/qapplication.cpp:4567
#31 0x00007f08d795025b in QApplication::notify (this=this@entry=0x7fffb02bcbe0, receiver=receiver@entry=0x2a165a0, e=e@entry=0x7fffb02bc620) at kernel/qapplication.cpp:4428
#32 0x00007f08d915f1a6 in KApplication::notify (this=0x7fffb02bcbe0, receiver=0x2a165a0, event=0x7fffb02bc620) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007f08d742363e in QCoreApplication::notifyInternal (this=0x7fffb02bcbe0, receiver=0x2a165a0, event=event@entry=0x7fffb02bc620) at kernel/qcoreapplication.cpp:946
#34 0x00007f08d74525c8 in sendEvent (event=0x7fffb02bc620, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#35 socketNotifierSourceDispatch (source=source@entry=0x22acda0) at kernel/qeventdispatcher_glib.cpp:110
#36 0x00007f08ced0cf05 in g_main_dispatch (context=0x22acff0) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3054
#37 g_main_context_dispatch (context=context@entry=0x22acff0) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3630
#38 0x00007f08ced0d248 in g_main_context_iterate (context=context@entry=0x22acff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3701
#39 0x00007f08ced0d304 in g_main_context_iteration (context=0x22acff0, may_block=1) at /build/buildd/glib2.0-2.36.0/./glib/gmain.c:3762
#40 0x00007f08d7452016 in QEventDispatcherGlib::processEvents (this=0x2237b00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#41 0x00007f08d79f31ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f08d742238f in QEventLoop::processEvents (this=this@entry=0x7fffb02bc860, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f08d7422618 in QEventLoop::exec (this=this@entry=0x7fffb02bc860, flags=...) at kernel/qeventloop.cpp:204
#44 0x00007f08d7427cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#45 0x00007f08d794bffc in QApplication::exec () at kernel/qapplication.cpp:3828
#46 0x0000000000402c8d in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:146

This bug may be a duplicate of or related to bug 314123.

Possible duplicates by query: bug 321870, bug 315381, bug 314123.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-09-11 06:36:05 UTC

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