Bug 322197 - Text-UI crashed with uninitialised channel
Summary: Text-UI crashed with uninitialised channel
Status: RESOLVED WORKSFORME
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: text-ui (show other bugs)
Version: 0.6.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-10 13:53 UTC by l.mierzwa
Modified: 2021-01-03 04:34 UTC (History)
4 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 l.mierzwa 2013-07-10 13:53:01 UTC
Application: ktp-text-ui (0.6.1)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.8.0-26-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
I was talking over XMPP, disconnected, once I've got back and logged in again I had recived old message from that conversation, once clicked on telepathy icon in the tray I got crash window instead of chat window.

-- Backtrace:
Application: Interfejs użytkownika tekstu Telepathy (ktp-text-ui), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9d46214880 (LWP 15603))]

Thread 4 (Thread 0x7f9d29c20700 (LWP 15604)):
#0  0x00007f9d3b926359 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9d3b9265e9 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9d3b8e6b39 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9d3b8e714c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9d3b8e7304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9d29e65a1d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#6  0x00007f9d3b90aeb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9d41224f8e in start_thread (arg=0x7f9d29c20700) at pthread_create.c:311
#8  0x00007f9d41ebbe1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f9d2941f700 (LWP 15605)):
#0  0x00007f9d41eadb0d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9d3b9256cf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9d3b8e6d3c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9d3b8e7175 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9d3b8e76ba in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9d393854f6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007f9d3b90aeb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9d41224f8e in start_thread (arg=0x7f9d2941f700) at pthread_create.c:311
#8  0x00007f9d41ebbe1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f9d28c1e700 (LWP 15606)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9d3da7f585 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f9d3da7f5d9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f9d41224f8e in start_thread (arg=0x7f9d28c1e700) at pthread_create.c:311
#4  0x00007f9d41ebbe1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f9d46214880 (LWP 15603)):
[KCrash Handler]
#6  0x00007f9d449d0696 in Tp::Contact::alias() const () from /usr/lib/x86_64-linux-gnu/libtelepathy-qt4.so.2
#7  0x00007f9d43ac5faf in ChatWidget::ChatWidget (this=0x17b1a40, channel=..., account=..., parent=<optimized out>) at /build/buildd/ktp-text-ui-0.6.1/lib/chat-widget.cpp:136
#8  0x000000000041b651 in ChatTab::ChatTab (this=0x17b1a40, channel=..., account=..., parent=<optimized out>) at /build/buildd/ktp-text-ui-0.6.1/app/chat-tab.cpp:38
#9  0x00000000004110c9 in TelepathyChatUi::handleChannels (this=0x1577c70, context=..., account=..., connection=..., channels=..., channelRequests=..., userActionTime=..., handlerInfo=...) at /build/buildd/ktp-text-ui-0.6.1/app/telepathy-chat-ui.cpp:160
#10 0x00007f9d44978228 in ?? () from /usr/lib/x86_64-linux-gnu/libtelepathy-qt4.so.2
#11 0x00007f9d434dd0ef in QMetaObject::activate (sender=0x171e840, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff25b83880) at kernel/qobject.cpp:3539
#12 0x00007f9d44aa6e8f in Tp::PendingOperation::finished(Tp::PendingOperation*) () from /usr/lib/x86_64-linux-gnu/libtelepathy-qt4.so.2
#13 0x00007f9d44aa6f71 in ?? () from /usr/lib/x86_64-linux-gnu/libtelepathy-qt4.so.2
#14 0x00007f9d434e25be in QObject::event (this=0x171e840, e=<optimized out>) at kernel/qobject.cpp:1194
#15 0x00007f9d4286e8ec in QApplicationPrivate::notify_helper (this=this@entry=0x1591d10, receiver=receiver@entry=0x171e840, e=e@entry=0x15eab00) at kernel/qapplication.cpp:4567
#16 0x00007f9d4287125b in QApplication::notify (this=this@entry=0x1577c70, receiver=receiver@entry=0x171e840, e=e@entry=0x15eab00) at kernel/qapplication.cpp:4428
#17 0x00007f9d457671a6 in KApplication::notify (this=0x1577c70, receiver=0x171e840, event=0x15eab00) at ../../kdeui/kernel/kapplication.cpp:311
#18 0x00007f9d434c863e in QCoreApplication::notifyInternal (this=0x1577c70, receiver=receiver@entry=0x171e840, event=event@entry=0x15eab00) at kernel/qcoreapplication.cpp:946
#19 0x00007f9d434cc171 in sendEvent (event=0x15eab00, receiver=0x171e840) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x152c1f0) at kernel/qcoreapplication.cpp:1570
#21 0x00007f9d434cc4a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#22 0x00007f9d434f6e83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#23 postEventSourceDispatch (s=0x1589460) at kernel/qeventdispatcher_glib.cpp:279
#24 0x00007f9d3b8e6f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f9d3b8e7248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f9d3b8e7304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f9d434f7016 in QEventDispatcherGlib::processEvents (this=0x152dad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#28 0x00007f9d429141ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007f9d434c738f in QEventLoop::processEvents (this=this@entry=0x7fff25b84190, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007f9d434c7618 in QEventLoop::exec (this=this@entry=0x7fff25b84190, flags=...) at kernel/qeventloop.cpp:204
#31 0x00007f9d434cccf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#32 0x00007f9d4286cffc in QApplication::exec () at kernel/qapplication.cpp:3828
#33 0x000000000040ea5a in main (argc=1, argv=0x7fff25b845f8) at /build/buildd/ktp-text-ui-0.6.1/app/main.cpp:93

Reported using DrKonqi
Comment 1 David Edmundson 2013-07-10 14:08:41 UTC
Confirming as backtrace makes sense.

Are you able to repeat this crash? Has it happened before?

Backtrace shows crash is on receiving a new channel (which happens on reconnect), shouldn't be anything related to activating the text-ui with the unread message, I think that's just coincidence.

Crash is at groupSelfContact->alias() which implies we're now handling a channel with isn't initialised properly. This shouldn't be null unless becomeReady() failed.. I /thought/ at this point handleChannels is not called, but I could be wrong.
Comment 2 l.mierzwa 2013-07-10 14:19:03 UTC
I started using telepathy recently (few weeks), so far this was the only crash I had. I did some testing but I couldn't reproduce it.
With the crash I was disconnected for several hours, maybe it happens after some time (?)

> shouldn't be anything related to activating the text-ui with the unread message, I think that's just coincidence.

Probably, but just to note: I did received that message, I got tooltip with message content (it was short)
Comment 3 Lukáš Karas 2014-09-17 10:04:35 UTC
This bug affect me relatively often (ones in week).

Ater IM startup (and login), I got some message. When I click to tray icon, ktp-text-ui crashed. 

Interesting is that I was not able to find this message in telepathy logs (~/.local/share/TpLogger/logs), so I know message text (from notification popup) but I dont know who send me this message :-( It can be caused by the same problem or something absolutely different.

Application: ktp-text-ui (0.8.1)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.16.2 x86_64
Distribution: Ubuntu 14.04.1 LTS

-- Backtrace:
Application: Textové rozhraní  Telepathy (ktp-text-ui), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc2b7b9a7c0 (LWP 7062))]

Thread 2 (Thread 0x7fc299ffd700 (LWP 7071)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc2aee8f81d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fc2aee8f859 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fc2b2d86182 in start_thread (arg=0x7fc299ffd700) at pthread_create.c:312
#4  0x00007fc2b3a29fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fc2b7b9a7c0 (LWP 7062)):
[KCrash Handler]
#6  Tp::Contact::alias (this=0x0) at /build/buildd/telepathy-qt-0.9.3/TelepathyQt/contact.cpp:399
#7  0x00007fc2b542bdb4 in ChatWidget::ChatWidget (this=0x2b28fd0, channel=..., account=..., parent=<optimized out>) at /build/buildd/ktp-text-ui-0.8.1/lib/chat-widget.cpp:143
#8  0x00000000004186a1 in ChatTab::ChatTab (this=0x2b28fd0, channel=..., account=..., parent=<optimized out>) at /build/buildd/ktp-text-ui-0.8.1/app/chat-tab.cpp:38
#9  0x0000000000410682 in TelepathyChatUi::handleChannels (this=<optimized out>, context=..., account=..., connection=..., channels=..., channelRequests=..., userActionTime=..., handlerInfo=...) at /build/buildd/ktp-text-ui-0.8.1/app/telepathy-chat-ui.cpp:167
#10 0x00007fc2b62f2280 in Tp::ClientHandlerAdaptor::onReadyOpFinished (this=0x2ac1a10, op=<optimized out>) at /build/buildd/telepathy-qt-0.9.3/TelepathyQt/client-registrar.cpp:509
#11 0x00007fc2b50b887a in QMetaObject::activate (sender=sender@entry=0xb40dd0, m=m@entry=0x7fc2b6819480 <Tp::PendingOperation::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffa10ee1c0) at kernel/qobject.cpp:3539
#12 0x00007fc2b641e63f in Tp::PendingOperation::finished (this=this@entry=0xb40dd0, _t1=_t1@entry=0xb40dd0) at /build/buildd/telepathy-qt-0.9.3/obj-x86_64-linux-gnu/TelepathyQt/_gen/pending-operation.moc.hpp:111
#13 0x00007fc2b641e731 in Tp::PendingOperation::emitFinished (this=0xb40dd0) at /build/buildd/telepathy-qt-0.9.3/TelepathyQt/pending-operation.cpp:123
#14 0x00007fc2b50bcc1e in QObject::event (this=0xb40dd0, e=<optimized out>) at kernel/qobject.cpp:1194
#15 0x00007fc2b41c2e2c in QApplicationPrivate::notify_helper (this=this@entry=0xa902b0, receiver=receiver@entry=0xb40dd0, e=e@entry=0xb56160) at kernel/qapplication.cpp:4567
#16 0x00007fc2b41c94a0 in QApplication::notify (this=this@entry=0xa7c180, receiver=receiver@entry=0xb40dd0, e=e@entry=0xb56160) at kernel/qapplication.cpp:4353
#17 0x00007fc2b70fad1a in KApplication::notify (this=0xa7c180, receiver=0xb40dd0, event=0xb56160) at ../../kdeui/kernel/kapplication.cpp:311
#18 0x00007fc2b50a44dd in QCoreApplication::notifyInternal (this=0xa7c180, receiver=receiver@entry=0xb40dd0, event=event@entry=0xb56160) at kernel/qcoreapplication.cpp:953
#19 0x00007fc2b50a7b3d in sendEvent (event=0xb56160, receiver=0xb40dd0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xa311f0) at kernel/qcoreapplication.cpp:1577
#21 0x00007fc2b50a7fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#22 0x00007fc2b50d1f83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#23 postEventSourceDispatch (s=0xa8d950) at kernel/qeventdispatcher_glib.cpp:287
#24 0x00007fc2ad12ae04 in g_main_dispatch (context=0xa90740) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3064
#25 g_main_context_dispatch (context=context@entry=0xa90740) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3663
#26 0x00007fc2ad12b048 in g_main_context_iterate (context=context@entry=0xa90740, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3734
#27 0x00007fc2ad12b0ec in g_main_context_iteration (context=0xa90740, may_block=1) at /build/buildd/glib2.0-2.40.0/./glib/gmain.c:3795
#28 0x00007fc2b50d17a1 in QEventDispatcherGlib::processEvents (this=0xa32af0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#29 0x00007fc2b4264bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fc2b50a30af in QEventLoop::processEvents (this=this@entry=0x7fffa10ee7f0, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007fc2b50a33a5 in QEventLoop::exec (this=this@entry=0x7fffa10ee7f0, flags=...) at kernel/qeventloop.cpp:204
#32 0x00007fc2b50a8b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#33 0x00007fc2b41c137c in QApplication::exec () at kernel/qapplication.cpp:3828
#34 0x000000000040e995 in main (argc=1, argv=0x7fffa10eea18) at /build/buildd/ktp-text-ui-0.8.1/app/main.cpp:72
Comment 4 David Edmundson 2014-09-17 10:11:58 UTC
Could you list what account types you have?
run 

mc-tool list | cut -d / -f 1,2

--

It /should/ be in the logs, as that runs as a completely separate process in case of events like this. Unless the logger is crashing too?
Comment 5 Lukáš Karas 2014-09-17 10:39:36 UTC
(In reply to David Edmundson from comment #4)
> Could you list what account types you have?
> run 
> 
> mc-tool list | cut -d / -f 1,2
> 
gabble/jabber
gabble/jabber
gabble/jabber
gabble/jabber
haze/icq
salut/local_xmpp

> It /should/ be in the logs, as that runs as a completely separate process in
> case of events like this. Unless the logger is crashing too?

DrKonqi nor apport dont shows me that telepathy-logger crashed. So I guess that message arrived before logger start. It is possible?
Comment 6 Justin Zobel 2020-12-04 03:21:05 UTC
Thank you for the report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 7 Bug Janitor Service 2020-12-19 04:34:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2021-01-03 04:34:18 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!