Bug 163023 - kio::copy crashes when URL doesn't exist
Summary: kio::copy crashes when URL doesn't exist
Status: RESOLVED DUPLICATE of bug 162285
Alias: None
Product: kio
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-01 20:34 UTC by kstars
Modified: 2008-06-02 12:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kstars 2008-06-01 20:34:57 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc-4.1.2 x86_64
OS:                Linux

I am using KIO::copy() in KStars (in file kstars/kstars/imageviewer.cpp) to download images of celestial objects from the internet.  I have noticed that if the URL is invalid, or if the server cannot be reached, KStars crashes.  I believe this may be a problem in KIO.  Here is the console output when I induce the crash by trying to download an image file from a URL that does not exist (if you want to reproduce this, this is the last image entry in the context menu for Jupiter, labeled "Show New Horizons Image"):

----------------------------------------------------------------------------
kstars(10936)/kio (KIOJob) KIO::stat: stat KUrl("file:///tmp/kstars-kde4/kde-kstars/kstarsE10936.tmp")                                                          
kstars(10936)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kstars-kde4/kdecache-kstars/ksycoca4"                      
kstars(10936)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///tmp/kstars-kde4/kde-kstars/kstarsE10936.tmp")                           
kstars(10936)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/kstars-kde4/ksocket-kstars/kstarsa10936.slave-socket"       
kstars(10936)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  111   "/tmp/kstars-kde4/kde-kstars/kstarsE10936.tmp"                                           
kstars(10936)/kio (KIOJob) KIO::stat: stat KUrl("http://pluto.jhuapl.edu/gallery/sciencePhotos/images/large/100907_11.jpg")                                     
kstars(10936)/kio (Slave) KIO::Slave::createSlave: createSlave "http" for KUrl("http://pluto.jhuapl.edu/gallery/sciencePhotos/images/large/100907_11.jpg")      
kstars(10936)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/kstars-kde4/ksocket-kstars/kstarsE10936.slave-socket"       
kstars(10936)/kio (KIOJob) KIO::CopyJobPrivate::copyNextFile: copying  "/tmp/kstars-kde4/kde-kstars/kstarsE10936.tmp"                                           
kstars(10936)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/kstars-kde4/ksocket-kstars/kstarsV10936.slave-socket"       
kstars(10936)/kio (KIOJob) KIO::SlaveInterface::dispatch: error  111   "http://pluto.jhuapl.edu/gallery/sciencePhotos/images/large/100907_11.jpg"               
kstars(10936)/kio (Scheduler) KIO::SchedulerPrivate::cancelJob: Scheduler: killing slave  10941                                                                 
kstars(10936)/kio (Slave) KIO::Slave::kill: killing slave pid= 10941  ( "file" :// "" )                                                                         
kstars(10936)/kio (KIOJob) KIO::Job::doKill: this= KIO::TransferJob(0x63cb990) KIO::TransferJob
kstars(10936)/kio (Slave) KIO::Slave::gotInput: slave died pid =  10941
kstars(10936)/kio (Scheduler) KIO::SchedulerPrivate::slotSlaveDied: Scheduler: BUG!! Slave  KIO::Slave(0x6345020) / 10941  died, but is NOT in slaveList!!!
kstars(10936)/kio (Slave) KIO::Slave::timeout: slave failed to connect to application pid= 10941  protocol= "file"
kstars(10936)/kio (Slave) KIO::Slave::timeout: Houston, we lost our slave, pid=10941
kstars(10936)/kio (Slave) KIO::Slave::timeout: slave died pid =  10941
kstars(10936)/kio (Scheduler) KIO::SchedulerPrivate::slotSlaveDied: Scheduler: BUG!! Slave  KIO::Slave(0x6345020) / 10941  died, but is NOT in slaveList!!!
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kstars path = <unknown> pid = 10936
sock_file=/home/kstars/.kde4.0/socket-localhost/kdeinit4__0
------------------------------------------------------------------


And here's the backtrace:
--------------------------------------------------------------------
#0  0x00000000063cfb80 in ?? ()                     
#1  0x00002acd87eb9bbf in qDeleteAll<QList<KJob*>::const_iterator> (
    begin=@0x7fff23a52820, end=@0x7fff23a52810)
    at /usr/qt/4/include/QtCore/qalgorithms.h:352
#2  0x00002acd87eb9c0f in qDeleteAll<QList<KJob*> > (c=@0x63f9480)
    at /usr/qt/4/include/QtCore/qalgorithms.h:360
#3  0x00002acd87eb981d in ~KCompositeJobPrivate (this=0x63f9420)
    at /home/kstars/kde/src/kdelibs/kdecore/jobs/kcompositejob.cpp:29
#4  0x00002acd887e6ac5 in ~JobPrivate (this=0x63f9420)
    at /home/kstars/kde/src/kdelibs/kio/kio/job_p.h:35
#5  0x00002acd8881f3ff in ~FileCopyJobPrivate (this=0x63f9420)
    at /home/kstars/kde/src/kdelibs/kio/kio/job.cpp:1636
#6  0x00002acd87ebb65d in ~KJob (this=0x63ecdd0)
    at /home/kstars/kde/src/kdelibs/kdecore/jobs/kjob.cpp:69
#7  0x00002acd87eb96bd in ~KCompositeJob (this=0x63ecdd0)
    at /home/kstars/kde/src/kdelibs/kdecore/jobs/kcompositejob.cpp:44
#8  0x00002acd888178ad in ~Job (this=0x63ecdd0)
    at /home/kstars/kde/src/kdelibs/kio/kio/job.cpp:97
#9  0x00002acd888178e9 in ~FileCopyJob (this=0x63ecdd0)
    at /home/kstars/kde/src/kdelibs/kio/kio/job.cpp:1791
#10 0x00002acd872d212e in qDeleteInEventHandler (o=0x63ecdd0)
    at kernel/qobject.cpp:3586
#11 0x00002acd872d6a24 in QObject::event (this=0x63ecdd0, e=0x63ed090)
    at kernel/qobject.cpp:1115
#12 0x00002acd8cf352ed in QApplicationPrivate::notify_helper (this=0x80dbc0,
    receiver=0x63ecdd0, e=0x63ed090) at kernel/qapplication.cpp:3772
#13 0x00002acd8cf3560f in QApplication::notify (this=0x7fff23a53b10,
    receiver=0x63ecdd0, e=0x63ed090) at kernel/qapplication.cpp:3366
#14 0x00002acd88432e40 in KApplication::notify (this=0x7fff23a53b10,
    receiver=0x63ecdd0, event=0x63ed090)
    at /home/kstars/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#15 0x00002acd872c3c16 in QCoreApplication::notifyInternal (
    this=0x7fff23a53b10, receiver=0x63ecdd0, event=0x63ed090)
    at kernel/qcoreapplication.cpp:583
#16 0x00002acd872c74a9 in QCoreApplication::sendEvent (receiver=0x63ecdd0,
    event=0x63ed090)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#17 0x00002acd872c41cb in QCoreApplicationPrivate::sendPostedEvents (
    receiver=0x0, event_type=0, data=0x7fc030)
    at kernel/qcoreapplication.cpp:1195
#18 0x00002acd872c4394 in QCoreApplication::sendPostedEvents (receiver=0x0,
    event_type=0) at kernel/qcoreapplication.cpp:1091
#19 0x00002acd872f2469 in QCoreApplication::sendPostedEvents ()
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#20 0x00002acd872f14a1 in postEventSourceDispatch (s=0x810590)
    at kernel/qeventdispatcher_glib.cpp:211
#21 0x00002acd8dfcaa42 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#22 0x00002acd8dfcdd3d in ?? () from /usr/lib/libglib-2.0.so.0
#23 0x00002acd8dfce25e in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#24 0x00002acd872f0af2 in QEventDispatcherGlib::processEvents (this=0x80d430,
    flags=@0x7fff23a53410) at kernel/qeventdispatcher_glib.cpp:325
#25 0x00002acd8cfd3b2f in QGuiEventDispatcherGlib::processEvents (
    this=0x80d430, flags=@0x7fff23a53470)
    at kernel/qguieventdispatcher_glib.cpp:204
#26 0x00002acd872c0ba0 in QEventLoop::processEvents (this=0x7fff23a53520,
    flags=@0x7fff23a534d0) at kernel/qeventloop.cpp:149
#27 0x00002acd872c0d9b in QEventLoop::exec (this=0x7fff23a53520,
    flags=@0x7fff23a53530) at kernel/qeventloop.cpp:196
#28 0x00002acd872c44a0 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:845
#29 0x00002acd8cf3504e in QApplication::exec () at kernel/qapplication.cpp:3304
#30 0x00000000005deb3c in main (argc=1, argv=0x7fff23a545f8)
    at /home/kstars/kde/src/kdeedu/kstars/kstars/main.cpp:187
----------------------------------------------------------------------------
Comment 1 David Faure 2008-06-02 12:30:12 UTC

*** This bug has been marked as a duplicate of 162285 ***