Bug 332052

Summary: KTP crashes after entering password after resuming from suspend
Product: [Unmaintained] telepathy Reporter: Jussi Schultink <jussi01>
Component: auth-handlerAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED FIXED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 0.7.80   
Target Milestone: Future   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jussi Schultink 2014-03-12 06:20:31 UTC
Application: ktp-auth-handler (0.7.80)
KDE Platform Version: 4.12.2
Qt Version: 4.8.6
Operating System: Linux 3.11.0-17-generic x86_64
Distribution: Ubuntu 13.10

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

Opened the computer after leaving it for a few days, resumed from suspend. Then entered my password for a password protected MUC and it crashed.

-- Backtrace:
Application: Telepathy Authentication Handler (ktp-auth-handler), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f177880f7c0 (LWP 32152))]

Thread 2 (Thread 0x7f1760ff5700 (LWP 32156)):
#0  0x00007fffb6593a2f in clock_gettime ()
#1  0x00007f177258d96d in clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f17772f6b87 in do_gettime (frac=0x7f1760ff4b00, sec=0x7f1760ff4af8) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f17773d3185 in updateCurrentTime (this=0x7f175c002860) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x7f175c002860, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f17773d192c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f1760ff4bb4) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f17773d19d5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f17714b3d4d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f17714b45c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f17714b47ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f17773d1af6 in QEventDispatcherGlib::processEvents (this=0x7f175c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#12 0x00007f17773a330f in QEventLoop::processEvents (this=this@entry=0x7f1760ff4d70, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f17773a3605 in QEventLoop::exec (this=this@entry=0x7f1760ff4d70, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f177729fc4f in QThread::exec (this=this@entry=0xab63f0) at thread/qthread.cpp:537
#15 0x00007f1777384a33 in QInotifyFileSystemWatcherEngine::run (this=0xab63f0) at io/qfilesystemwatcher_inotify.cpp:265
#16 0x00007f17772a231f in QThreadPrivate::start (arg=0xab63f0) at thread/qthread_unix.cpp:349
#17 0x00007f1772023f6e in start_thread (arg=0x7f1760ff5700) at pthread_create.c:311
#18 0x00007f17725789cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f177880f7c0 (LWP 32152)):
[KCrash Handler]
#6  Private (other=..., this=0x7fffb64a7400) at ../../include/QtCore/../../src/corelib/kernel/qvariant.h:356
#7  QVariant::QVariant (this=0x7fffb64a7400, p=...) at kernel/qvariant.cpp:1423
#8  0x00007f177841b32d in QDBusPendingReplyData::argumentAt (this=this@entry=0x7fffb64a73d0, index=index@entry=0) at qdbuspendingreply.cpp:270
#9  0x000000000041e54a in argumentAt<0> (this=0x7fffb64a73d0) at /usr/include/qt4/QtDBus/qdbuspendingreply.h:176
#10 ConferenceAuthOp::onPasswordProvided (this=0x9c6ae0, watcher=<optimized out>) at /build/buildd/ktp-auth-handler-0.7.80/conference-auth-op.cpp:105
#11 0x00007f17773b8ae8 in QMetaObject::activate (sender=0xe21d90, m=m@entry=0x7f1778639640 <QDBusPendingCallWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffb64a7550) at kernel/qobject.cpp:3539
#12 0x00007f177841a13f in QDBusPendingCallWatcher::finished (this=<optimized out>, _t1=0xe21d90) at .moc/release-shared/moc_qdbuspendingcall.cpp:105
#13 0x00007f17773bce9e in QObject::event (this=0xe21d90, e=<optimized out>) at kernel/qobject.cpp:1194
#14 0x00007f17778d5e7c in QApplicationPrivate::notify_helper (this=this@entry=0x829770, receiver=receiver@entry=0xe21d90, e=e@entry=0xe22bc0) at kernel/qapplication.cpp:4567
#15 0x00007f17778dc4f0 in QApplication::notify (this=this@entry=0x7fffb64a7ca0, receiver=receiver@entry=0xe21d90, e=e@entry=0xe22bc0) at kernel/qapplication.cpp:4353
#16 0x00007f1773c98c6a in KApplication::notify (this=0x7fffb64a7ca0, receiver=0xe21d90, event=0xe22bc0) at ../../kdeui/kernel/kapplication.cpp:311
#17 0x00007f17773a473d in QCoreApplication::notifyInternal (this=0x7fffb64a7ca0, receiver=receiver@entry=0xe21d90, event=event@entry=0xe22bc0) at kernel/qcoreapplication.cpp:953
#18 0x00007f17773a7daf in sendEvent (event=0xe22bc0, receiver=0xe21d90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#19 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x7e51f0) at kernel/qcoreapplication.cpp:1577
#20 0x00007f17773a8253 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#21 0x00007f17773d2213 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#22 postEventSourceDispatch (s=0x828040) at kernel/qeventdispatcher_glib.cpp:280
#23 0x00007f17714b43b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f17714b4708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f17714b47ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f17773d1ad5 in QEventDispatcherGlib::processEvents (this=0x7e6af0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#27 0x00007f1777977cb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f17773a330f in QEventLoop::processEvents (this=this@entry=0x7fffb64a7b80, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007f17773a3605 in QEventLoop::exec (this=this@entry=0x7fffb64a7b80, flags=...) at kernel/qeventloop.cpp:204
#30 0x00007f17773a8deb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#31 0x00007f17778d43cc in QApplication::exec () at kernel/qapplication.cpp:3828
#32 0x000000000040bc88 in main (argc=<optimized out>, argv=0x7fffb64a7dd8) at /build/buildd/ktp-auth-handler-0.7.80/main.cpp:90

Possible duplicates by query: bug 330611, bug 320994.

Reported using DrKonqi
Comment 1 David Edmundson 2014-04-20 23:40:50 UTC
Git commit 638062b18e314790622e639ad263a3317b47026c by David Edmundson.
Committed on 20/04/2014 at 23:40.
Pushed by davidedmundson into branch 'kde-telepathy-0.8'.

Verify DBusResponse in ConferenceAuthOp before using args

M  +4    -0    conference-auth-op.cpp

http://commits.kde.org/telepathy-auth-handler/638062b18e314790622e639ad263a3317b47026c