| Summary: | Crash when receiving file over jabber protocol (google talk) | ||
|---|---|---|---|
| Product: | [Unmaintained] kopete | Reporter: | Vitor Boschi da Silva <vitorboschi> |
| Component: | general | Assignee: | Kopete Developers <kopete-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | kde |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
can someone review this patch ?
Index: kopete/libkopete/kopetechatsession.cpp
===================================================================
--- kopete/libkopete/kopetechatsession.cpp (révision 1151097)
+++ kopete/libkopete/kopetechatsession.cpp (copie de travail)
@@ -537,7 +537,7 @@
QWidget *viewWidget = 0L;
bool isActiveWindow = false;
- if ( !account()->isAway() || Kopete::BehaviorSettings::self()->enableEventsWhileAway() )
+ if ( viewWidget && ( !account()->isAway() || Kopete::BehaviorSettings::self()->enableEventsWhileAway() ) )
{
viewWidget = dynamic_cast<QWidget*>(view(false));
isActiveWindow = view(false) && viewWidget->isActiveWindow();
forget it ,this is stupid, i will try to think more SVN commit 1153511 by nlecureuil: Fix crash BUG: 244254 M +1 -1 kopetechatsession.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1153511 SVN commit 1153512 by nlecureuil: Forward port commit 1153511 CCBUG: 244254 M +1 -1 kopetechatsession.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1153512 |
Application: kopete (1.0.80) KDE Platform Version: 4.4.92 (KDE 4.4.92 (KDE 4.5 RC2)) Qt Version: 4.7.0 Operating System: Linux 2.6.33.5-124.fc13.x86_64 x86_64 Distribution: "Fedora release 13 (Goddard)" -- Information about the crash: After receiving a file transfer request from my friend, kopete crashed when I clicked to accept it. -- Backtrace: Application: Kopete (kopete), signal: Segmentation fault 82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) [Current thread is 1 (Thread 0x7f207d19e820 (LWP 19184))] Thread 4 (Thread 0x7f206cbec710 (LWP 19190)): #0 0x0000003708ed7de3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87 #1 0x000000370a63f849 in g_main_context_poll (context=0x13fb980, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2904 #2 g_main_context_iterate (context=0x13fb980, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2586 #3 0x000000370a63fc9c in IA__g_main_context_iteration (context=0x13fb980, may_block=1) at gmain.c:2654 #4 0x00007f207fc844a6 in QEventDispatcherGlib::processEvents (this=0x1401290, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414 #5 0x00007f207fc5b222 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149 #6 0x00007f207fc5b4fc in QEventLoop::exec (this=0x1990b80, flags=...) at kernel/qeventloop.cpp:201 #7 0x0000003279868c33 in QCA::SyncThread::run (this=0x1bce070) at support/syncthread.cpp:195 #8 0x00007f207fb76e7e in QThreadPrivate::start (arg=0x1bce070) at thread/qthread_unix.cpp:266 #9 0x0000003709607761 in start_thread (arg=0x7f206cbec710) at pthread_create.c:301 #10 0x0000003708ee14dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 Thread 3 (Thread 0x7f206c1eb710 (LWP 19191)): #0 0x0000003709609191 in __pthread_mutex_lock (mutex=0x1b03e98) at pthread_mutex_lock.c:61 #1 0x000000370a63f971 in g_main_context_iterate (context=0x1b03e90, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2557 #2 0x000000370a63fc9c in IA__g_main_context_iteration (context=0x1b03e90, may_block=1) at gmain.c:2654 #3 0x00007f207fc844a6 in QEventDispatcherGlib::processEvents (this=0x13988b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414 #4 0x00007f207fc5b222 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149 #5 0x00007f207fc5b4fc in QEventLoop::exec (this=0x1b045e0, flags=...) at kernel/qeventloop.cpp:201 #6 0x00007f206ee2195f in XMPP::SyncThread::run (this=0x1433e70) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151 #7 0x00007f207fb76e7e in QThreadPrivate::start (arg=0x1433e70) at thread/qthread_unix.cpp:266 #8 0x0000003709607761 in start_thread (arg=0x7f206c1eb710) at pthread_create.c:301 #9 0x0000003708ee14dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 Thread 2 (Thread 0x7f206b7ea710 (LWP 19192)): #0 0x0000003708eda033 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007f206ea75c93 in posix_timer_do () at posixtimer.c:70 #2 0x00007f206ea769de in rtp_scheduler_schedule (psched=0x19632d0) at scheduler.c:130 #3 0x0000003709607761 in start_thread (arg=0x7f206b7ea710) at pthread_create.c:301 #4 0x0000003708ee14dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 Thread 1 (Thread 0x7f207d19e820 (LWP 19184)): [KCrash Handler] #6 parent (this=0x0) at ../../src/corelib/kernel/qobject.h:250 #7 parentWidget (this=0x0) at ../../src/gui/kernel/qwidget.h:1022 #8 QWidget::window (this=0x0) at kernel/qwidget.cpp:4152 #9 0x00007f207ee1d54e in QWidget::isActiveWindow (this=0x0) at kernel/qwidget.cpp:6461 #10 0x00007f20826e168e in Kopete::ChatSession::receivedTypingMsg (this=0x1c14210, c=0x15c5c20, t=true) at /usr/src/debug/kdenetwork-4.4.92/kopete/libkopete/kopetechatsession.cpp:543 #11 0x00007f206ed3d417 in JabberContact::handleIncomingMessage (this=0x15c5c20, message=...) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/jabbercontact.cpp:339 #12 0x00007f206ed224c6 in JabberAccount::slotReceivedMessage (this=0x102e890, message=...) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/jabberaccount.cpp:1443 #13 0x00007f206ed2b397 in JabberAccount::qt_metacall (this=0x102e890, _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0x7fff4c4e2200) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/jabberaccount.moc:179 #14 0x00007f207fc72b17 in QMetaObject::activate (sender=0x15c7590, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff4c4e2200) at kernel/qobject.cpp:3272 #15 0x00007f206ed5ff55 in JabberClient::messageReceived (this=<value optimized out>, _t1=<value optimized out>) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/jabberclient.moc:307 #16 0x00007f206ed627a2 in JabberClient::qt_metacall (this=0x15c7590, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4c4e2330) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/jabberclient.moc:199 #17 0x00007f207fc72b17 in QMetaObject::activate (sender=0x1959b50, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff4c4e2330) at kernel/qobject.cpp:3272 #18 0x00007f206ed703b5 in XMPP::Client::messageReceived (this=<value optimized out>, _t1=<value optimized out>) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/libiris/moc_xmpp_client.cpp:233 #19 0x00007f206ed87113 in XMPP::Client::pmMessage (this=0x1959b50, m=...) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-im/client.cpp:867 #20 0x00007f206ed75339 in XMPP::Client::qt_metacall (this=0x1959b50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4c4e2560) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/libiris/moc_xmpp_client.cpp:150 #21 0x00007f207fc72b17 in QMetaObject::activate (sender=0x1a2e190, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff4c4e2560) at kernel/qobject.cpp:3272 #22 0x00007f206ed71272 in XMPP::JT_PushMessage::message (this=<value optimized out>, _t1=<value optimized out>) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/libiris/moc_xmpp_tasks.cpp:484 #23 0x00007f206edd0c41 in XMPP::JT_PushMessage::take (this=0x1a2e190, e=<value optimized out>) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-im/xmpp_tasks.cpp:870 #24 0x00007f206edb8c67 in XMPP::Task::take (this=<value optimized out>, x=...) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-im/xmpp_task.cpp:139 #25 0x00007f206ed87b16 in XMPP::Client::distribute (this=0x1959b50, x=...) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-im/client.cpp:580 #26 0x00007f206ed883fa in XMPP::Client::streamReadyRead (this=0x1959b50) at /usr/src/debug/kdenetwork-4.4.92/kopete/protocols/jabber/libiris/iris/xmpp/xmpp-im/client.cpp:527 #27 0x00007f206ed7529b in XMPP::Client::qt_metacall (this=0x1959b50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4c4e2ae0) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/libiris/moc_xmpp_client.cpp:144 #28 0x00007f207fc72b17 in QMetaObject::activate (sender=0x14a7d80, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3272 #29 0x00007f206ed7588c in XMPP::ClientStream::qt_metacall (this=0x14a7d80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x1e23380) at /usr/src/debug/kdenetwork-4.4.92/x86_64-redhat-linux-gnu/kopete/protocols/jabber/libiris/moc_xmpp_clientstream.cpp:139 #30 0x00007f207fc6d626 in QObject::event (this=0x14a7d80, e=<value optimized out>) at kernel/qobject.cpp:1211 #31 0x00007f207edd7ccc in QApplicationPrivate::notify_helper (this=0xf06c00, receiver=0x14a7d80, e=0x1ff8b60) at kernel/qapplication.cpp:4389 #32 0x00007f207eddd31d in QApplication::notify (this=<value optimized out>, receiver=0x14a7d80, e=0x1ff8b60) at kernel/qapplication.cpp:4270 #33 0x00007f2080652916 in KApplication::notify (this=0x7fff4c4e35a0, receiver=0x14a7d80, event=0x1ff8b60) at /usr/src/debug/kdelibs-4.4.92/kdeui/kernel/kapplication.cpp:309 #34 0x00007f207fc5c3dc in QCoreApplication::notifyInternal (this=0x7fff4c4e35a0, receiver=0x14a7d80, event=0x1ff8b60) at kernel/qcoreapplication.cpp:732 #35 0x00007f207fc5f9f2 in sendEvent (receiver=0x0, event_type=0, data=0xecc9f0) at kernel/qcoreapplication.h:215 #36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xecc9f0) at kernel/qcoreapplication.cpp:1373 #37 0x00007f207fc84913 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220 #38 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276 #39 0x000000370a63bd02 in g_main_dispatch (context=0xf09520) at gmain.c:1960 #40 IA__g_main_context_dispatch (context=0xf09520) at gmain.c:2513 #41 0x000000370a63fae8 in g_main_context_iterate (context=0xf09520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591 #42 0x000000370a63fc9c in IA__g_main_context_iteration (context=0xf09520, may_block=1) at gmain.c:2654 #43 0x00007f207fc84453 in QEventDispatcherGlib::processEvents (this=0xecc0d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412 #44 0x00007f207ee785ce in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #45 0x00007f207fc5b222 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149 #46 0x00007f207fc5b4fc in QEventLoop::exec (this=0x7fff4c4e34f0, flags=...) at kernel/qeventloop.cpp:201 #47 0x00007f207fc5fc79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009 #48 0x00000000004144c2 in main (argc=3, argv=0x7fff4c4e4428) at /usr/src/debug/kdenetwork-4.4.92/kopete/kopete/main.cpp:105 Possible duplicates by query: bug 162055. Reported using DrKonqi