Bug 303245

Summary: Text ui crashes when idle
Product: [Unmaintained] telepathy Reporter: Daniele E. Domenichelli <ddomenichelli>
Component: text-uiAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED NOT A BUG    
Severity: crash CC: ddomenichelli, kde
Priority: NOR    
Version: 0.4.0   
Target Milestone: Future   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Daniele E. Domenichelli 2012-07-09 17:00:58 UTC
Application: ktp-text-ui (0.4)
KDE Platform Version: 4.8.4 (4.8.4) (Compiled from sources)
Qt Version: 4.8.2
Operating System: Linux 3.2.0-3-amd64 x86_64
Distribution: Debian GNU/Linux testing (wheezy)

-- Information about the crash:
Sometimes when I leave my computer and the screensaver starts, when I come back ktp-text-ui is crashed, and I have no way to know if someone in the opened chats wrote me a message

The crash can be reproduced some of the time.

-- Backtrace:
Application: Telepathy Text Ui (ktp-text-ui), signal: Aborted
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:97
[Current thread is 1 (Thread 0x7f4147982820 (LWP 12135))]

Thread 5 (Thread 0x7f412d04f700 (LWP 12136)):
#0  0x00007f414166ca93 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f413d9774d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f413d977932 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f412d054efb in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f413d999df5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4140d3fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#6  0x00007f41416776dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f412c84e700 (LWP 12137)):
#0  0x00007f414166ca93 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f413d9774d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f413d977932 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f413cba37f6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f413d999df5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4140d3fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#6  0x00007f41416776dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f4127fff700 (LWP 12138)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4145506c0d in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f4145ec7280) at wtf/FastMalloc.cpp:2499
#2  0x00007f4145506d19 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1622
#3  0x00007f4140d3fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#4  0x00007f41416776dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f41276fe700 (LWP 12139)):
[KCrash Handler]
#6  0x00007f41415d1475 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f41415d46f0 in *__GI_abort () at abort.c:92
#8  0x00007f414160b2fb in __libc_message (do_abort=<optimized out>, fmt=<optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f4141614b46 in malloc_printerr (action=3, str=0x7f41416e8797 "invalid fastbin entry (free)", ptr=<optimized out>) at malloc.c:6283
#10 0x00007f414161987c in *__GI___libc_free (mem=<optimized out>) at malloc.c:3738
#11 0x00007f41438d7a22 in QString::free (d=0x7f412801b520) at tools/qstring.cpp:1235
#12 0x00007f41435bc609 in ~QString (this=0x7f412804df70, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qstring.h:880
#13 QDBusMessagePrivate::~QDBusMessagePrivate (this=0x7f412804df50, __in_chrg=<optimized out>) at qdbusmessage.cpp:72
#14 0x00007f41435bc71f in ~QDBusMessage (this=<optimized out>, __in_chrg=<optimized out>) at qdbusmessage.cpp:537
#15 QDBusMessage::~QDBusMessage (this=<optimized out>, __in_chrg=<optimized out>) at qdbusmessage.cpp:534
#16 0x00007f41435b8b74 in ~QDBusCallDeliveryEvent (this=0x7f4128042d50, __in_chrg=<optimized out>) at qdbusintegrator_p.h:93
#17 QDBusCallDeliveryEvent::~QDBusCallDeliveryEvent (this=0x7f4128042d50, __in_chrg=<optimized out>) at qdbusintegrator_p.h:93
#18 0x00007f41439904e3 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2913020) at kernel/qcoreapplication.cpp:1555
#19 0x00007f41439bb863 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#20 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#21 0x00007f413d977205 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f413d977538 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f413d9775f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f41439bbc8f in QEventDispatcherGlib::processEvents (this=0x2913120, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#25 0x00007f414398b232 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#26 0x00007f414398b487 in QEventLoop::exec (this=0x7f41276fdd60, flags=...) at kernel/qeventloop.cpp:204
#27 0x00007f414388a3b7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#28 0x00007f414388d3db in QThreadPrivate::start (arg=0x295a240) at thread/qthread_unix.cpp:307
#29 0x00007f4140d3fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#30 0x00007f41416776dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#31 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4147982820 (LWP 12135)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f414161b488 in _L_lock_9627 () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f4141619871 in *__GI___libc_free (mem=0x7f4128000020) at malloc.c:3736
#3  0x00007f41438a8efe in QHashData::free_helper (this=0x3053320, node_delete=0x7f414237ae50 <QHash<QPixmapCache::Key, QCache<QPixmapCache::Key, QPixmapCacheEntry>::Node>::deleteNode2(QHashData::Node*)>) at tools/qhash.cpp:281
#4  0x00007f414237aac0 in freeData (x=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:570
#5  operator= (other=..., this=0x306beb0) at ../../include/QtCore/../../src/corelib/tools/qhash.h:597
#6  clear (this=0x306beb0) at ../../include/QtCore/../../src/corelib/tools/qhash.h:576
#7  clear (this=0x306bea0) at ../../include/QtCore/../../src/corelib/tools/qcache.h:140
#8  QPMCache::clear (this=0x306be90) at image/qpixmapcache.cpp:430
#9  0x00007f414237ab3a in QPMCache::~QPMCache (this=0x306be90, __in_chrg=<optimized out>) at image/qpixmapcache.cpp:227
#10 0x00007f414237acf9 in QPMCache::~QPMCache (this=0x306be90, __in_chrg=<optimized out>) at image/qpixmapcache.cpp:229
#11 0x00007f414237ad25 in QGlobalStaticDeleter<QPMCache>::~QGlobalStaticDeleter (this=0x7f4142d9ad98, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1929
#12 0x00007f41415d5df2 in __run_exit_handlers (status=1, listp=0x7f41419204c8, run_list_atexit=true) at exit.c:78
#13 0x00007f41415d5e45 in *__GI_exit (status=671088672) at exit.c:100
#14 0x00007f414230dc48 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:770
#15 0x00007f4146ec8688 in KApplication::xioErrhandler (this=0x2580270, dpy=0x25b9250) at ../../kdeui/kernel/kapplication.cpp:419
#16 0x00007f414021560e in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#17 0x00007f41402130ad in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#18 0x00007f41402046af in XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#19 0x00007f414234683c in x11EventSourceCheck (s=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:85
#20 0x00007f413d976feb in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f413d977472 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f413d9775f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f41439bbcf6 in QEventDispatcherGlib::processEvents (this=0x254ab30, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#24 0x00007f41423469fe in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#25 0x00007f414398b232 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#26 0x00007f414398b487 in QEventLoop::exec (this=0x7fff8b857230, flags=...) at kernel/qeventloop.cpp:204
#27 0x00007f41439907d7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#28 0x000000000040c98d in main (argc=1, argv=0x7fff8b8576d8) at /opt/telepathy/ktp-text-ui/app/main.cpp:84

Possible duplicates by query: bug 300614, bug 294766, bug 280265, bug 245306.

Reported using DrKonqi
Comment 1 David Edmundson 2012-07-09 20:17:33 UTC
I can't do anything with that backtrace. 

It's crashing inside Qt, called from an X11 event.
I would need gdb attached...or something more.

I'll run everything through valgrind see if that spots anything.
Comment 2 Daniele E. Domenichelli 2012-10-28 00:01:24 UTC
Created attachment 74839 [details]
New crash information added by DrKonqi

ktp-text-ui (0.5.1) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2

Got the same crash using latest filter branch. The backtrace is exactly the same (and useless, sorry)
Anyway perhaps it can be reproduced somehow...

-- Backtrace (Reduced):
#9  0x00007f15ca04ab76 in malloc_printerr (action=3, str=0x7f15ca11e7b7 "invalid fastbin entry (free)", ptr=<optimized out>) at malloc.c:6283
[...]
#11 0x00007f15cc2d4618 in QString::free (d=0x7f15a8013960) at tools/qstring.cpp:1235
#12 0x00007f15cbfbc989 in ~QString (this=0x7f15a802ad60, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qstring.h:880
#13 QDBusMessagePrivate::~QDBusMessagePrivate (this=0x7f15a802ad40, __in_chrg=<optimized out>) at qdbusmessage.cpp:72
#14 0x00007f15cbfbca9f in QDBusMessage::~QDBusMessage (this=0x14d6, __in_chrg=<optimized out>) at qdbusmessage.cpp:537
Comment 3 David Edmundson 2013-03-22 14:50:04 UTC
[14:25] <d_ed> drdanz: have you seen https://bugs.kde.org/show_bug.cgi?id=303245 in the last 6 months?
[14:26] <drdanz> d_ed: Not recently, I don't know if in the last 6 months though...
[14:29] <d_ed> can I close it?
[14:29] <d_ed> or not? I can't do anything to fix it atm
[14:30] <d_ed> with the information there
[14:43] <drdanz> d_ed: yes close it...

Seems like this is a bug in Qt, which has possibly fixed itself.
Either way it's not something I can fix.