Bug 75281 - Kopete/Jabber protocol crashes on receiving IM from own account.
Summary: Kopete/Jabber protocol crashes on receiving IM from own account.
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: libkopete (show other bugs)
Version: 0.8.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 75283 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-15 14:47 UTC by Ulrik Mikaelsson
Modified: 2005-08-18 22:08 UTC (History)
0 users

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 Ulrik Mikaelsson 2004-02-15 14:47:22 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          GCC 3.3.2 
OS:          Linux

The short description says it all.

Steps to reproduce:
Precondiditions: "Use message queue" must be enabled.
1. Right click the protocol-icon and choose "Send Raw Packet to Server"
2. Enter the message
 <message to='YOURSELF@SERVER/RESOURCE' from='YOURSELF@SERVER/RESOURCE'>
  <body>Body text</body>
 </message>
3. Send the message.
4. A message will popup, saying you've got a message. Click ignore.
5. Bam-boom-crash and welcome mr KCrashHandler

Another way to reproduce the error is by logging on using for example Psi on the same account, and sending a message to yourself. The key to making it crash seems to be to ignore a message sent by the same account Kopete is listening on.

Please confirm this bug.
Feel free to contact me at rawler@rsn.bth.se
Comment 1 Richard Smith 2004-02-15 14:53:58 UTC
Backtrace:

#4  <signal handler called>
#5  0x400cefa8 in KopeteMetaContact::isTemporary() const (this=0x0)
    at kopetemetacontact.cpp:741
#6  0x401007a0 in KopeteEvent::ignore() (this=0x8364be0) at kopeteevent.cpp:57
#7  0x40100a55 in KopeteEvent::qt_invoke(int, QUObject*) (this=0x8364be0, 
    _id=3, _o=0xbfffed60) at kopeteevent.moc:108
#8  0x414adf0e in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#9  0x414add6c in QObject::activate_signal(int) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#10 0x0806b960 in KopeteBalloon::signalIgnoreButtonClicked() (this=0x82accc0)
    at kopeteballoon.moc:92
#11 0x0806ba16 in KopeteBalloon::qt_emit(int, QUObject*) (this=0x82accc0, 
    _id=3, _o=0xbfffee50) at kopeteballoon.moc:110
#12 0x414adebd in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#13 0x414add6c in QObject::activate_signal(int) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#14 0x4177d390 in QButton::clicked() ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#15 0x4152cdac in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#16 0x414dbf6f in QWidget::event(QEvent*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#17 0x4145c301 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#18 0x4145bb19 in QApplication::notify(QObject*, QEvent*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#19 0x410608fd in KApplication::notify(QObject*, QEvent*) (this=0xbffff6e0, 
    receiver=0x8331930, event=0xbffff230) at kapplication.cpp:505
#20 0x413fddd2 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#21 0x413fbbd7 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#22 0x41410b5a in QEventLoop::processEvents(unsigned) ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#23 0x4146bd07 in QEventLoop::enterLoop() ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#24 0x4146bbc4 in QEventLoop::exec() ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#25 0x4145c51c in QApplication::exec() ()
   from /home/tla/kde-cvs/lib/libqt-mt.so.3
#26 0x080658b6 in main (argc=2, argv=0xbffff864) at main.cpp:97
Comment 2 Richard Smith 2004-02-15 15:11:38 UTC
*** Bug 75283 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Gehn 2004-02-15 15:14:20 UTC
People who are so sick and message themselves actually deserve such a crash :P
The right fix is to ignore such messages.
Comment 4 Richard Smith 2004-02-15 17:25:43 UTC
Looks like ignoring such messages is what's causing the crash :)
Mine, by the way.
Comment 5 Richard Smith 2004-02-15 17:29:05 UTC
CVS commit by lilachaze: 

Don't assume a contact has a metacontact.
CCMAIL: 75281-done@bugs.kde.org


  M +1 -1      kopeteevent.cpp   1.4


--- kdenetwork/kopete/libkopete/private/kopeteevent.cpp  #1.3:1.4
@@ -55,5 +55,5 @@ void KopeteEvent::apply()
 void KopeteEvent::ignore()
 {
-        if( m_message.from()->metaContact()->isTemporary() )
+        if( m_message.from()->metaContact() && m_message.from()->metaContact()->isTemporary() )
                 KopeteContactList::contactList()->removeMetaContact( m_message.from()->metaContact() );
         m_state= Ignored;


Comment 6 Clara Gnos 2005-03-05 21:57:44 UTC
Just seems to happen with 3.4.0 rc1. Also kopete doesnt show me as a special contact when i am logged in with different clients on different resources.
Comment 7 Jan Huelsbergen 2005-08-18 21:23:15 UTC
Still present with kopete 0.10.2 on KDE 3.4.1.

> People who are so sick and message themselves actually deserve such a
> crash :P
I think it's very usefull to be able to send another Ressource a message. I used to send messages from my laptop to my home workstation while I was on the road to remind myself of stuff I wanted to do once I came home. :-)


backtrace:
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1243941152 (LWP 3986)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#7  0xb7e4d2aa in Kopete::MetaContact::metaContactId ()
   from /opt/kde/lib/libkopete.so.1
#8  0xb58ecd06 in StatisticsPlugin::slotAboutToReceive ()
   from /opt/kde/lib/kde3/kopete_statistics.so
#9  0xb58ed3d7 in StatisticsPlugin::qt_invoke ()
   from /opt/kde/lib/kde3/kopete_statistics.so
#10 0xb69f9514 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#11 0xb7e4ccc0 in Kopete::ChatSessionManager::aboutToReceive ()
   from /opt/kde/lib/libkopete.so.1
#12 0xb7e4d0c1 in Kopete::ChatSessionManager::qt_emit ()
   from /opt/kde/lib/libkopete.so.1
#13 0xb69f958c in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#14 0xb7e4bbe6 in Kopete::ChatSession::messageReceived ()
   from /opt/kde/lib/libkopete.so.1
#15 0xb7ea2eff in Kopete::ChatSession::appendMessage ()
   from /opt/kde/lib/libkopete.so.1
#16 0xb5759dc3 in JabberChatSession::appendMessage ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#17 0xb576b8e7 in JabberContact::handleIncomingMessage ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#18 0xb57662df in JabberAccount::slotReceivedMessage ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#19 0xb576a01e in JabberAccount::qt_invoke ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#20 0xb69f9514 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#21 0xb57971a0 in XMPP::Client::messageReceived ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#22 0xb57e0d32 in XMPP::Client::pmMessage ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#23 0xb5797884 in XMPP::Client::qt_invoke ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#24 0xb69f9514 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#25 0xb57f3bed in XMPP::JT_PushMessage::message ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#26 0xb57f966d in XMPP::JT_PushMessage::take ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#27 0xb57e01a3 in XMPP::Task::take () from /opt/kde/lib/kde3/kopete_jabber.so
#28 0xb57dd782 in XMPP::Client::distribute ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#29 0xb57e00ba in XMPP::Client::streamReadyRead ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#30 0xb57977e1 in XMPP::Client::qt_invoke ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#31 0xb69f9514 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#32 0xb69f9cac in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#33 0xb5795c1c in XMPP::Stream::readyRead ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#34 0xb57cd47d in XMPP::ClientStream::doReadyRead ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#35 0xb5796200 in XMPP::ClientStream::qt_invoke ()
   from /opt/kde/lib/kde3/kopete_jabber.so
#36 0xb69f9514 in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#37 0xb6d4ee1d in QSignal::signal () from /opt/qt/lib/libqt-mt.so.3
#38 0xb6a13f21 in QSignal::activate () from /opt/qt/lib/libqt-mt.so.3
#39 0xb6a1ba23 in QSingleShotTimer::event () from /opt/qt/lib/libqt-mt.so.3
#40 0xb6995abf in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#41 0xb6995cb2 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#42 0xb70a5c55 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#43 0xb698910c in QEventLoop::activateTimers () from /opt/qt/lib/libqt-mt.so.3
#44 0xb69414d2 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#45 0xb69ac191 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#46 0xb69ac0e6 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#47 0xb6994c2f in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#48 0x08078710 in ?? ()
#49 0xbf81baa0 in ?? ()
#50 0xbf81ba80 in ?? ()
#51 0xbf81ba80 in ?? ()
#52 0x00000000 in ?? ()
#53 0x080bce7d in _IO_stdin_used ()
#54 0x00000001 in ?? ()
#55 0x080be290 in _IO_stdin_used ()
#56 0x080bcab4 in _IO_stdin_used ()
#57 0x080bcac9 in _IO_stdin_used ()
#58 0x080bca99 in _IO_stdin_used ()
#59 0x00000018 in ?? ()
#60 0x00000001 in ?? ()
#61 0x00000000 in ?? ()
#62 0xbf81ba90 in ?? ()
#63 0xbf81baa8 in ?? ()
#64 0xb70ee578 in malloc () from /opt/kde/lib/libkdecore.so.4
#65 0x4272619d in __libc_start_main () from /lib/tls/libc.so.6
#66 0x08069c11 in ?? ()
Comment 8 Michaël Larouche 2005-08-18 22:08:30 UTC
Jan Huelsbergen, try desactivate the statictics plugin, that's the source of your crash (if I refer to your backtrace). A patch is pending to be applied from another bug report about statictics plugin.