Bug 131144

Summary: Crashes when registering new RSS stream on rss.netlab.cz
Product: [Unmaintained] kopete Reporter: Matej Cepl <mcepl>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Back stack for kopete's crash

Description Matej Cepl 2006-07-21 03:13:17 UTC
Version:           0.12.0 (using KDE 3.5.3, Debian Package 4:3.5.3-1 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.17.6.chelcicky.1

netlab.cz provides service rss.netlab.cz where you can register RSS/Atom feeds and then put contact (for example, dot.kde.org@rss.netlab.cz) to your roster and server delivers individual messages via Jabber.

However, whenever I register new stream, kopete (SVN/yesterday) crashes.
Comment 1 Matej Cepl 2006-07-21 03:14:10 UTC
Created attachment 17052 [details]
Back stack for kopete's crash
Comment 2 Olivier Goffart 2006-07-26 19:19:53 UTC
SVN commit 566670 by ogoffart:

This may fix Bug 131144. But i have not been able to reproduce it.  Please test.

CCBUG: 131144




 M  +2 -1      kopetemessage.cpp  


--- branches/kopete/0.12/kopete/libkopete/kopetemessage.cpp #566669:566670
@@ -29,6 +29,7 @@
 #include <kiconloader.h>
 #include <kstringhandler.h>
 #include <kmdcodec.h>
+#include <qguardedptr.h>
 
 #include "kopetemessage.h"
 #include "kopetemetacontact.h"
@@ -49,7 +50,7 @@
 	         const QString &body, const QString &subject, MessageDirection direction, MessageFormat f,
 	         const QString &requestedPlugin, MessageType type );
 
-	const Contact *from;
+	QGuardedPtr<const Contact> from;
 	ContactPtrList to;
 	ChatSession *manager;
 
Comment 3 Matej Cepl 2006-07-26 20:56:55 UTC
So far so good. Will reopen if happens again.