Bug 316609 - ktp-text-ui crashes when switching windows
Summary: ktp-text-ui crashes when switching windows
Status: RESOLVED DUPLICATE of bug 316484
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: text-ui (show other bugs)
Version: 0.5.80
Platform: openSUSE Linux
: NOR crash
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 16:58 UTC by Andrei Nistor
Modified: 2013-03-13 15:01 UTC (History)
2 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 Andrei Nistor 2013-03-12 16:58:30 UTC
Application: ktp-text-ui (0.5.80)
KDE Platform Version: 4.10.00
Qt Version: 4.8.4
Operating System: Linux 3.8.2-2-desktop x86_64
Distribution: "openSUSE 12.2 (x86_64)"

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

Exchanged a few messages with a friend then used alt-tab to switch to another window. That's when it crashed.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Telepathy Text Ui (ktp-text-ui), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0aecef6800 (LWP 18303))]

Thread 5 (Thread 0x7f0ad3eec700 (LWP 18304)):
#0  0x00007f0ae88d6d9f in __pthread_mutex_unlock_usercnt () from /lib64/libpthread.so.0
#1  0x00007f0ae27064a1 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f0ae26ca019 in g_main_context_query () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f0ae26ca5f9 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f0ae26caae2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f0ad3ef1e7b in ?? () from /usr/lib64/gio/modules/libdconfsettings.so
#6  0x00007f0ae26ed0e5 in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007f0ae88d3e0e in start_thread () from /lib64/libpthread.so.0
#8  0x00007f0ae8bcc2cd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f0ad36eb700 (LWP 18305)):
#0  0x00007f0ae8bc414f in poll () from /lib64/libc.so.6
#1  0x00007f0ae26ca684 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f0ae26caae2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f0ae0160a26 in ?? () from /usr/lib64/libgio-2.0.so.0
#4  0x00007f0ae26ed0e5 in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f0ae88d3e0e in start_thread () from /lib64/libpthread.so.0
#6  0x00007f0ae8bcc2cd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f0ad2eea700 (LWP 18306)):
#0  0x00007f0ae88d78f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f0ae440beb7 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f0ae440bee9 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f0ae88d3e0e in start_thread () from /lib64/libpthread.so.0
#4  0x00007f0ae8bcc2cd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f0ad25e9700 (LWP 18307)):
#0  0x00007f0ae2706494 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f0ae26c9eb5 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f0ae26ca5ab in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f0ae26ca7a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f0aea20d136 in QEventDispatcherGlib::processEvents (this=0x7f0ac80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f0aea1dd94f in QEventLoop::processEvents (this=this@entry=0x7f0ad25e8d80, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f0aea1ddbd8 in QEventLoop::exec (this=0x7f0ad25e8d80, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f0aea0e00b0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00007f0aea0e308c in QThreadPrivate::start (arg=0x2744f80) at thread/qthread_unix.cpp:338
#9  0x00007f0ae88d3e0e in start_thread () from /lib64/libpthread.so.0
#10 0x00007f0ae8bcc2cd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f0aecef6800 (LWP 18303)):
[KCrash Handler]
#6  QKeySequence::isEmpty (this=0xc0) at kernel/qkeysequence.cpp:1064
#7  0x00007f0ae95843a9 in QAction::shortcuts (this=<optimized out>) at kernel/qaction.cpp:508
#8  0x00007f0aec369301 in KAction::shortcut (this=0x29d8090, type=...) at /usr/src/debug/kdelibs-4.10.0/kdeui/actions/kaction.cpp:193
#9  0x00007f0aea7f7edf in ChatTextEdit::event (this=0x30cc940, e=0x7fff4f11d620) at /usr/src/debug/ktp-text-ui-0.5.80git.1362987183/lib/chat-text-edit.cpp:151
#10 0x00007f0ae958885c in QApplicationPrivate::notify_helper (this=this@entry=0x23b2240, receiver=receiver@entry=0x30cc940, e=e@entry=0x7fff4f11d620) at kernel/qapplication.cpp:4562
#11 0x00007f0ae958d854 in QApplication::notify (this=<optimized out>, receiver=0x30cc940, e=0x7fff4f11d620) at kernel/qapplication.cpp:4003
#12 0x00007f0aec441a96 in KApplication::notify (this=0x2390400, receiver=0x30cc940, event=0x7fff4f11d620) at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#13 0x00007f0aea1debfe in QCoreApplication::notifyInternal (this=0x2390400, receiver=0x30cc940, event=0x7fff4f11d620) at kernel/qcoreapplication.cpp:946
#14 0x00007f0ae95baa7c in sendEvent (event=0x7fff4f11d620, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#15 QShortcutMap::tryShortcutEvent (this=0x23b2360, o=<optimized out>, e=0x7fff4f11d620) at kernel/qshortcutmap.cpp:340
#16 0x00007f0ae958e9b9 in QApplication::notify (this=0x2390400, receiver=0x30cc940, e=0x7fff4f11d620) at kernel/qapplication.cpp:3986
#17 0x00007f0aec441a96 in KApplication::notify (this=0x2390400, receiver=0x30cc940, event=0x7fff4f11d620) at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#18 0x00007f0aea1debfe in QCoreApplication::notifyInternal (this=0x2390400, receiver=0x30cc940, event=0x7fff4f11d620) at kernel/qcoreapplication.cpp:946
#19 0x00007f0ae9624e4a in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x30cc940, grab=grab@entry=false, type=QEvent::KeyPress, code=47, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=61, nativeVirtualKey=47, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1866
#20 0x00007f0ae9625281 in QKeyMapperPrivate::translateKeyEvent (this=0x23dd140, keyWidget=0x30cc940, event=0x7fff4f11e040, grab=false) at kernel/qkeymapper_x11.cpp:1836
#21 0x00007f0ae96029b8 in QApplication::x11ProcessEvent (this=0x2390400, event=0x7fff4f11e040) at kernel/qapplication_x11.cpp:3543
#22 0x00007f0ae9628f72 in x11EventSourceDispatch (s=0x235b430, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#23 0x00007f0ae26ca3b5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f0ae26ca6e8 in ?? () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f0ae26ca7a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f0aea20d116 in QEventDispatcherGlib::processEvents (this=0x232e2d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#27 0x00007f0ae9628bee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f0aea1dd94f in QEventLoop::processEvents (this=this@entry=0x7fff4f11e410, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007f0aea1ddbd8 in QEventLoop::exec (this=0x7fff4f11e410, flags=...) at kernel/qeventloop.cpp:204
#30 0x00007f0aea1e2878 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#31 0x000000000040f9ea in main (argc=1, argv=0x7fff4f11e878) at /usr/src/debug/ktp-text-ui-0.5.80git.1362987183/app/main.cpp:93

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

Possible duplicates by query: bug 316484, bug 303186.

Reported using DrKonqi
Comment 1 Martin Klapetek 2013-03-12 17:06:29 UTC

*** This bug has been marked as a duplicate of bug 316484 ***
Comment 2 David Edmundson 2013-03-13 15:01:47 UTC
Found how to reproduce the bug, and the cuase.

[15:00] <d_ed> jtalk: ok, imagine you have the setting "open tabs in a new window'
[15:00] <d_ed> you open window 1
[15:00] <d_ed> it gets the right action, things are good
[15:00] <d_ed> you open window 2
[15:00] <d_ed> you get the action for the first window
[15:00] <d_ed> things still work
[15:00] <d_ed> you close window 1
[15:00] <d_ed> that KAction* is now deleted
[15:00] <d_ed> you type in window 2.. crash