Bug 55392

Summary: Kopete crashs when sending message without connection
Product: [Applications] kopete Reporter: Tom Gufler <tom.gufler>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tom Gufler 2003-03-01 22:35:14 UTC
Version:           0.6.1a (using KDE 3.1.0)
Installed from:    Gentoo
Compiler:          gcc version 3.2.2
OS:          Linux (i686) release 2.4.20-ck4

I'm using Kopete 0.6.1a with the jabber plugin. When I start kopete (from kmenu), open a contact and send a message to that contact kopete crashs. This only happens when I forget to connect. Kopete should e.g. not allow me to send a message when I'm not connected but not crash.

(no debugging symbols found)...(no debugging symbols found)...
0x414c5a99 in wait4 () from /lib/libc.so.6
#0  0x414c5a99 in wait4 () from /lib/libc.so.6
#1  0x41541444 in __DTOR_END__ () from /lib/libc.so.6
#2  0x413a39c3 in waitpid () from /lib/libpthread.so.0
#3  0x40a0ad3b in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.1/lib/libkdecore.so.4
#4  0x4209993f in JabberContact::userId() const ()
   from /usr/lib/kde3/kopete_jabber.so
Comment 1 Till Gerken 2003-03-01 23:24:15 UTC

*** This bug has been marked as a duplicate of 55385 ***
Comment 2 Boyd Faulkner 2003-03-01 23:52:30 UTC
55385 did not exist in Kopete 0.6.1a.  Also, the backtrace is different.  The difference in symptom is  
that in 55385, the crash occurs in libkopete and when the contact is opening, not when a message is 
being sent. 
Comment 3 Till Gerken 2003-03-02 01:12:37 UTC
It both seems to be related to a flaw in the API which allows userId() / myContact() 
return null values when offline.