Bug 150879 - crash when nothing to download in rss feed
Summary: crash when nothing to download in rss feed
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash (vote)
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 01:43 UTC by Keven Lachance
Modified: 2007-10-18 20:12 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 Keven Lachance 2007-10-16 01:43:12 UTC
Version:           2.2.2 final release (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
Compiler:          gcc 4.4.2 - g++ 4.1.2 compiled on ubuntu 7.04 AMD64 version
OS:                Linux

if you are trying to download a torrent from a "blank" rss feed, ktorrent find nothing to search for; not even a hyperlink and will crash being unable to add a torrent
some example are required : baka-update example
http://www.baka-updates.com/releases.php
as you can see, some of anime release are not available in torrent and are added in the rss feed just like news, using the title only. One of that example could be "fate stay night 13-16 - exiled destiny" from october 15,2007. there is no torrent to download and only the title and, when you try to download it from ktorrent it will crash because he does not find a link to check for if it's torrent or not.

here is the terminal bash message i got while crashing
--------------
kdevelop (core): caption change
Qt: Warning: QGDict::hashKeyString: Invalid null key
Qt: Warning: QGDict::hashKeyString: Invalid null key
ktorrent: ERROR: : couldn't create slave : Unable to create io-slave:
klauncher said: Unknown protocol ''.
ktorrent: 
KCrash: Application 'ktorrent' crashing...
---------------

here is the ktorrent crash report
------------------------
(no debugging symbols found)
Using host libthread_db library "/lib/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)
[Thread debugging using libthread_db enabled]
[New Thread 47461779635328 (LWP 9933)]
[New Thread 1115703616 (LWP 9969)]
[New Thread 1107310912 (LWP 9968)]
(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)
(no debugging symbols found)
[KCrash handler]
#5  0x0000000000fa1b30 in ?? ()
#6  0x00002b2a8a1ae1d6 in QApplication::internalNotify ()
   from /usr/lib/libqt-mt.so.3
#7  0x00002b2a8a1aff65 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#8  0x00002b2a88f2f378 in KApplication::notify () from /usr/lib/libkdecore.so.4
#9  0x00002b2a8a140cc2 in QApplication::sendEvent ()
   from /usr/lib/libqt-mt.so.3
#10 0x00002b2a8a1af1ed in QApplication::sendPostedEvents ()
   from /usr/lib/libqt-mt.so.3
#11 0x00002b2a8a1af2e5 in QApplication::sendPostedEvents ()
   from /usr/lib/libqt-mt.so.3
#12 0x00002b2a8a154338 in QEventLoop::processEvents ()
   from /usr/lib/libqt-mt.so.3
#13 0x00002b2a8a1c770b in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#14 0x00002b2a8a1c7513 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#15 0x00002b2a8a1afc9c in QApplication::exec () from /usr/lib/libqt-mt.so.3
#16 0x000000000044d925 in ?? ()
#17 0x00002b2a8dcd88e4 in __libc_start_main () from /lib/libc.so.6
#18 0x000000000042bb39 in ?? ()
#19 0x00007fff237aa2c8 in ?? ()
#20 0x0000000000000000 in ?? ()
-----------------------------------------

well, that a simple verification;you have to search if the is a hyperlink before trying to go in and download the torrent
Comment 1 Keven Lachance 2007-10-16 01:53:07 UTC
forgot to mention that, I tryed to compile from the lastest csv before putting a bug report and I installed all the required liibrary and since..... my ktorrent crash on exiting so the ktorrent crash report could not be accurcive.
And another thing... sorry, I compile ktorrent 2.2.2 final release from source  - did no install it from ubuntu official package liku it is written above. sorry first bug track
Comment 2 Keven Lachance 2007-10-16 03:32:34 UTC
verified... on a clean system
I boot in my ubuntu 7.4 amd64 livecd and 
I installed 2.2.2 from modax deb at
http://ktorrent.org/forum/viewtopic.php?t=1886

rss feed from earlyer :
http://www.baka-updates.com/rss.php
Comment 3 Joris Guisson 2007-10-18 20:12:58 UTC
SVN commit 726720 by guisson:

Fix two crashes :
- One when trying to download an empty link with the RSS plugin (150879)
- Crash at exit when the RSS plugin was loaded

BUG: 150879



 M  +1 -1      apps/ktorrent/ktorrentcore.cpp  
 M  +22 -7     plugins/rssfeed/rsslinkdownloader.cpp  
 M  +1 -0      plugins/rssfeed/rsslinkdownloader.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=726720