Bug 165952

Summary: KGet crashes every time a download starts (after changing some KGet options)
Product: [Unmaintained] kio Reporter: Mika Tikka <clxxiv>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: crash CC: kget, l.appelhans
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mika Tikka 2008-07-07 17:55:52 UTC
Version:            (using KDE 4.0.83)
Installed from:    Fedora RPMs
OS:                Linux

After changing some of KGet options, it crashes every time I start a download from Konqueror. Changed at least these: "use KGet as default d/l manager", "disable tray icon", "close after d/ls complete", "disable dropicon", or some options similar to those, forgot the exact wording. Here is the backtrace:

Application: KGet (kget), signal SIGSEGV
--> many rows of "(no debugging symbols found)" here <--
[Thread debugging using libthread_db enabled]
[New Thread 0xb7fdb770 (LWP 2565)]
--> many rows of "(no debugging symbols found)" here <--
#6  0x02a9baa0 in QUrl::host () from /usr/lib/libQtCore.so.4
#7  0x034213ab in ?? () from /usr/lib/libkio.so.5
#8  0x03425264 in ?? () from /usr/lib/libkio.so.5
#9  0x0342604f in ?? () from /usr/lib/libkio.so.5
#10 0x034262e0 in ?? () from /usr/lib/libkio.so.5
#11 0x03426e66 in KIO::Scheduler::qt_metacall () from /usr/lib/libkio.so.5
#12 0x02af5050 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0x02af5dd2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#14 0x02b2ff27 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#15 0x02afba7e in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#16 0x02aefb3f in QObject::event () from /usr/lib/libQtCore.so.4
#17 0x0388af5c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#18 0x03892d2e in QApplication::notify () from /usr/lib/libQtGui.so.4
#19 0x030dd45d in KApplication::notify () from /usr/lib/libkdeui.so.5
#20 0x02ae0401 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#21 0x02b0e3a1 in ?? () from /usr/lib/libQtCore.so.4
#22 0x02b0abb0 in ?? () from /usr/lib/libQtCore.so.4
#23 0x06e6e0d8 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#24 0x06e71783 in ?? () from /lib/libglib-2.0.so.0
#25 0x06e71941 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#26 0x02b0ab08 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#27 0x039234e5 in ?? () from /usr/lib/libQtGui.so.4
#28 0x02adeaea in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#29 0x02adecaa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#30 0x02ae1355 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#31 0x0388add7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#32 0x08096b8a in _start ()
Comment 1 Christophe Marin 2008-07-08 17:10:47 UTC
Please read the following page and provide a useful backtrace for this crash : http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

Also giving details about the settings that were changed or pasting the content of the kgetrc file would be useful.
Comment 2 Mika Tikka 2008-07-08 20:30:33 UTC
kgetrc:
-----
[Advanced]
EnableSystemTray=false
KonquerorIntegration=true
QuitAfterCompletedTransfer=true

[Appearance]
ShowDropTarget=false

[Directories]
DefaultDirectory[$e]=$HOME/Download
UseDefaultDirectory=true

[Geometry]
ColumnWidths=250,100,100,100,100

[Internal]
FirstRun=false
LastDirectory[$e]=$HOME/Download
MainPosition=87,54

[KFileDialog Settings]
Height 800=188
Recent Files[$e]=file://$HOME/Download/links-2.1pre14-1.i386.rpm,$HOME/Download/links-2.1pre14-1.i386.rpm
Width 1280=584

[MainWindow]
Height 800=490
State=AAAA/wAAAAD9AAAAAAAAAvwAAAGdAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAYAGsAZwBlAHQAXwB0AG8AbwBsAGIAYQByAQAAAAAAAAL8AAAAAAAAAAA=
Width 1280=764

[MainWindow][Toolbar kget_toolbar]
ToolButtonStyle=TextUnderIcon
-----
I will try to get a better backtrace, will post later.
Comment 3 Mika Tikka 2008-07-08 21:51:52 UTC
More detailed backtrace:
Application: KGet (kget), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb7f9e770 (LWP 13118)]
[KCrash handler]
#6  QUrl::scheme (this=<value optimized out>)
    at ../../src/corelib/arch/qatomic_i386.h:122
#7  0x00a40d06 in KUrl::prettyUrl (this=0x9a46b18, 
    trailing=KUrl::LeaveTrailingSlash)
    at /usr/src/debug/kdelibs-4.0.85/kdecore/io/kurl.cpp:1011
#8  0x00a3153a in operator<< (s={stream = 0xbfbc0440}, url=@0x9a46b18)
    at /usr/src/debug/kdelibs-4.0.85/kdecore/io/kdebug.cpp:626
#9  0x0084753f in KIO::Slave::createSlave (protocol=@0x9cc6ae8, 
    url=@0x9a46b18, error=@0xbfbc04a8, error_text=@0xbfbc04a4)
    at /usr/src/debug/kdelibs-4.0.85/kio/kio/slave.cpp:380
#10 0x0083d82c in KIO::SchedulerPrivate::createSlave (this=0x9cf47f0, 
    protInfo=0x9cc6ad8, job=0x9b213e0, url=@0x9a46b18)
    at /usr/src/debug/kdelibs-4.0.85/kio/kio/scheduler.cpp:689
#11 0x008402b7 in KIO::SchedulerPrivate::startJobDirect (this=0x9cf47f0)
    at /usr/src/debug/kdelibs-4.0.85/kio/kio/scheduler.cpp:592
#12 0x00840350 in KIO::SchedulerPrivate::startStep (this=0x9cf47f0)
    at /usr/src/debug/kdelibs-4.0.85/kio/kio/scheduler.cpp:432
#13 0x00840ed6 in KIO::Scheduler::qt_metacall (this=0x9cc3db0, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfbc0618)
    at /usr/src/debug/kdelibs-4.0.85/i386-redhat-linux-gnu/kio/scheduler.moc:101
#14 0x02af5050 in QMetaObject::activate (sender=<value optimized out>, 
    from_signal_index=<value optimized out>, 
    to_signal_index=<value optimized out>, argv=<value optimized out>)
    at kernel/qobject.cpp:3010
#15 0x02af5dd2 in QMetaObject::activate (sender=<value optimized out>, 
    m=<value optimized out>, local_signal_index=<value optimized out>, argv=)
    at kernel/qobject.cpp:3080
#16 0x02b2ff27 in QTimer::timeout (this=)
    at .moc/release-shared/moc_qtimer.cpp:126
#17 0x02afba7e in QTimer::timerEvent (this=<value optimized out>, 
    e=<value optimized out>) at kernel/qtimer.cpp:263
#18 0x02aefb3f in QObject::event (this=<value optimized out>, 
    e=<value optimized out>) at kernel/qobject.cpp:1105
#19 0x0388af5c in QApplicationPrivate::notify_helper (
    this=<value optimized out>, receiver=<value optimized out>, 
    e=<value optimized out>) at kernel/qapplication.cpp:3772
#20 0x03892d2e in QApplication::notify (this=<value optimized out>, 
    receiver=<value optimized out>, e=<value optimized out>)
    at kernel/qapplication.cpp:3366
#21 0x004ff8cd in KApplication::notify (this=0xbfbc0d48, receiver=0x9cf47f4, 
    event=0xbfbc0abc)
    at /usr/src/debug/kdelibs-4.0.85/kdeui/kernel/kapplication.cpp:311
#22 0x02ae0401 in QCoreApplication::notifyInternal (
    this=<value optimized out>, receiver=<value optimized out>, 
    event=<value optimized out>) at kernel/qcoreapplication.cpp:587
#23 0x02b0e3a1 in QTimerInfoList::activateTimers (this=<value optimized out>)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#24 0x02b0abb0 in timerSourceDispatch (source=)
    at kernel/qeventdispatcher_glib.cpp:166
#25 0x06e6e0d8 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x06e71783 in ?? () from /lib/libglib-2.0.so.0
#27 0x06e71941 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x02b0ab08 in QEventDispatcherGlib::processEvents (
    this=<value optimized out>, flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:325
#29 0x039234e5 in QGuiEventDispatcherGlib::processEvents (this=)
    at kernel/qguieventdispatcher_glib.cpp:204
#30 0x02adeaea in QEventLoop::processEvents (this=<value optimized out>, 
    flags=<value optimized out>) at kernel/qeventloop.cpp:149
#31 0x02adecaa in QEventLoop::exec (this=<value optimized out>, 
    flags=<value optimized out>) at kernel/qeventloop.cpp:200
#32 0x02ae1355 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#33 0x0388add7 in QApplication::exec () at kernel/qapplication.cpp:3304
#34 0x08096b6a in main (argc=3, argv=0xbfbc0f34)
    at /usr/src/debug/kdenetwork-4.0.85/kget/main.cpp:153
Comment 4 Mika Tikka 2008-07-10 14:24:41 UTC
Tried removing ~/.kde/share/config/kgetrc. Now when downloading something, it asks for the directory, but download is saved as (for example if I download the top-left logo on this page) Documentskde_gear_64.png, not Documents/kde_gear_64.png. After it is completed, kget crashes.
Comment 5 Lukas Appelhans 2008-07-16 13:06:25 UTC
Well this seems like a crash in KIO itself...

Lukas
Comment 6 David Faure 2008-07-16 13:19:13 UTC
Well, between this one and 166435, I'm wondering if kget isn't sending dead references to KUrls to KIO :)
Getting a valgrind log of this crash would be necessary.
Comment 7 Mika Tikka 2008-07-17 18:49:53 UTC
With KDE / kdenetwork updated to 4.0.85 crash no longer seems to occur.
Comment 8 Lukas Appelhans 2008-07-17 18:53:30 UTC
4.0.85 is kind of old, but I will close this ;)

Lukas