Bug 207916

Summary: Kget crashes on large file (MultiSegmentCopyJob::slotSplitSegment, TransferMultiSegKio::slotSearchUrls)
Product: [Applications] kget Reporter: m.wege
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra, christian_weilbach, nekkar
Priority: NOR Keywords: investigated, triaged
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description m.wege 2009-09-19 21:04:38 UTC
Application that crashed: kget
Version of the application: 2.3.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-02063003-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
Kget crashes for me on downloading
http://debian.tu-bs.de/project/sidux/release/sidux-2009-02-aether-kde-full-i386-amd64-200907141427.iso

I assume it may be the size of the file, which causes the problem, because smaller files work. I notice that Kget uses over 700mB of memory, the system slows down (swap is big enough, should handle it).

 -- Backtrace:
Application: KGet (kget), signal: Segmentation fault
[Current thread is 0 (LWP 10080)]

Thread 2 (Thread 0xb3dd8b90 (LWP 10088)):
#0  0xb8066430 in __kernel_vsyscall ()
#1  0xb61b7412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb665c344 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb694714c in QWaitCondition::wait (this=0x96cf8d8, mutex=0x96cf8d4, time=30000) at thread/qwaitcondition_unix.cpp:85
#4  0xb693bac6 in QThreadPoolThread::run (this=0x9700e98) at concurrent/qthreadpool.cpp:140
#5  0xb6946132 in QThreadPrivate::start (arg=0x9700e98) at thread/qthread_unix.cpp:188
#6  0xb61b34ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb664d49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb5d8d710 (LWP 10080)):
[KCrash Handler]
#6  0xb447e126 in MultiSegmentCopyJob::slotSplitSegment (this=0x96a8d00) at /build/buildd/kdenetwork-4.3.1/kget/transfer-plugins/multisegmentkio/multisegkio.cpp:251
#7  0xb44835c0 in TransferMultiSegKio::slotSearchUrls (this=0x960bf68, Urls=@0x961a720) at /build/buildd/kdenetwork-4.3.1/kget/transfer-plugins/multisegmentkio/transfermultisegkio.cpp:306
#8  0xb4484122 in TransferMultiSegKio::qt_metacall (this=0x960bf68, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbf81f42c)
    at /build/buildd/kdenetwork-4.3.1/obj-i486-linux-gnu/kget/transfer-plugins/multisegmentkio/transfermultisegkio.moc:103
#9  0xb6a501b8 in QMetaObject::activate (sender=0x96257c8, from_signal_index=5, to_signal_index=5, argv=0xbf81f42c) at kernel/qobject.cpp:3113
#10 0xb6a50e42 in QMetaObject::activate (sender=0x96257c8, m=0xb79fa97c, local_signal_index=1, argv=0xbf81f42c) at kernel/qobject.cpp:3187
#11 0xb79df7c3 in TransferDataSource::data (this=0x96257c8, _t1=@0x961a720) at /build/buildd/kdenetwork-4.3.1/obj-i486-linux-gnu/kget/transferdatasource.moc:94
#12 0xb46e483f in MirrorSearchTransferDataSource::qt_metacall (this=0x96257c8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf81f52c)
    at /build/buildd/kdenetwork-4.3.1/kget/transfer-plugins/mirrorsearch/mirrorsearchtransferdatasource.cpp:49
#13 0xb6a501b8 in QMetaObject::activate (sender=0x961a708, from_signal_index=4, to_signal_index=4, argv=0xbf81f52c) at kernel/qobject.cpp:3113
#14 0xb6a50e42 in QMetaObject::activate (sender=0x961a708, m=0xb46e9cbc, local_signal_index=0, argv=0xbf81f52c) at kernel/qobject.cpp:3187
#15 0xb46e3113 in mirror::urls (this=0x961a708, _t1=@0x961a720) at /build/buildd/kdenetwork-4.3.1/obj-i486-linux-gnu/kget/transfer-plugins/mirrorsearch/mirrors.moc:86
#16 0xb46e3f8a in mirror::slotResult (this=0x961a708, job=0x96688c8) at /build/buildd/kdenetwork-4.3.1/kget/transfer-plugins/mirrorsearch/mirrors.cpp:86
#17 0xb46e42cf in mirror::qt_metacall (this=0x961a708, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf81f6dc)
    at /build/buildd/kdenetwork-4.3.1/obj-i486-linux-gnu/kget/transfer-plugins/mirrorsearch/mirrors.moc:74
#18 0xb6a501b8 in QMetaObject::activate (sender=0x96688c8, from_signal_index=7, to_signal_index=7, argv=0xbf81f6dc) at kernel/qobject.cpp:3113
#19 0xb6a50e42 in QMetaObject::activate (sender=0x96688c8, m=0xb6dd4da8, local_signal_index=3, argv=0xbf81f6dc) at kernel/qobject.cpp:3187
#20 0xb6c770b3 in KJob::result (this=0x96688c8, _t1=0x96688c8) at /build/buildd/kde4libs-4.3.1/obj-i486-linux-gnu/kdecore/kjob.moc:188
#21 0xb6c77559 in KJob::emitResult (this=0x96688c8) at /build/buildd/kde4libs-4.3.1/kdecore/jobs/kjob.cpp:304
#22 0xb7b1b995 in KIO::SimpleJob::slotFinished (this=0x96688c8) at /build/buildd/kde4libs-4.3.1/kio/kio/job.cpp:477
#23 0xb7b1c2d3 in KIO::TransferJob::slotFinished (this=0x96688c8) at /build/buildd/kde4libs-4.3.1/kio/kio/job.cpp:948
#24 0xb7b1887b in KIO::TransferJob::qt_metacall (this=0x96688c8, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf81f918) at /build/buildd/kde4libs-4.3.1/obj-i486-linux-gnu/kio/jobclasses.moc:343
#25 0xb6a501b8 in QMetaObject::activate (sender=0x969ceb0, from_signal_index=8, to_signal_index=8, argv=0x0) at kernel/qobject.cpp:3113
#26 0xb6a50e42 in QMetaObject::activate (sender=0x969ceb0, m=0xb7cc4f44, local_signal_index=4, argv=0x0) at kernel/qobject.cpp:3187
#27 0xb7be18d7 in KIO::SlaveInterface::finished (this=0x969ceb0) at /build/buildd/kde4libs-4.3.1/obj-i486-linux-gnu/kio/slaveinterface.moc:165
#28 0xb7be5617 in KIO::SlaveInterface::dispatch (this=0x969ceb0, _cmd=104, rawdata=@0xbf81fae4) at /build/buildd/kde4libs-4.3.1/kio/kio/slaveinterface.cpp:175
#29 0xb7be1db7 in KIO::SlaveInterface::dispatch (this=0x969ceb0) at /build/buildd/kde4libs-4.3.1/kio/kio/slaveinterface.cpp:91
#30 0xb7bd3b2d in KIO::Slave::gotInput (this=0x969ceb0) at /build/buildd/kde4libs-4.3.1/kio/kio/slave.cpp:322
#31 0xb7bd5fc3 in KIO::Slave::qt_metacall (this=0x969ceb0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf81fbf8) at /build/buildd/kde4libs-4.3.1/obj-i486-linux-gnu/kio/slave.moc:76
#32 0xb6a501b8 in QMetaObject::activate (sender=0x96d22b8, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#33 0xb6a50e42 in QMetaObject::activate (sender=0x96d22b8, m=0xb7cc1880, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#34 0xb7adf697 in KIO::Connection::readyRead (this=0x96d22b8) at /build/buildd/kde4libs-4.3.1/obj-i486-linux-gnu/kio/connection.moc:86
#35 0xb7ae1003 in KIO::ConnectionPrivate::dequeue (this=0x96d78d8) at /build/buildd/kde4libs-4.3.1/kio/kio/connection.cpp:82
#36 0xb7ae13e6 in KIO::Connection::qt_metacall (this=0x96d22b8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x96a4968) at /build/buildd/kde4libs-4.3.1/obj-i486-linux-gnu/kio/connection.moc:73
#37 0xb6a498cb in QMetaCallEvent::placeMetaCall (this=0x9702348, object=0x96d22b8) at kernel/qobject.cpp:477
#38 0xb6a4b3b0 in QObject::event (this=0x96d22b8, e=0x9702348) at kernel/qobject.cpp:1111
#39 0xb6efdd3c in QApplicationPrivate::notify_helper (this=0x9533d18, receiver=0x96d22b8, e=0x9702348) at kernel/qapplication.cpp:4056
#40 0xb6f0603e in QApplication::notify (this=0xbf820398, receiver=0x96d22b8, e=0x9702348) at kernel/qapplication.cpp:3603
#41 0xb7e8e85d in KApplication::notify (this=0xbf820398, receiver=0x96d22b8, event=0x9702348) at /build/buildd/kde4libs-4.3.1/kdeui/kernel/kapplication.cpp:302
#42 0xb6a3abcb in QCoreApplication::notifyInternal (this=0xbf820398, receiver=0x96d22b8, event=0x9702348) at kernel/qcoreapplication.cpp:610
#43 0xb6a3b825 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x95073a8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#44 0xb6a3ba1d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#45 0xb6a666af in postEventSourceDispatch (s=0x9526d10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#46 0xb603ab88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#47 0xb603e0eb in ?? () from /usr/lib/libglib-2.0.so.0
#48 0xb603e268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#49 0xb6a662f8 in QEventDispatcherGlib::processEvents (this=0x9506fa8, flags={i = -1081998712}) at kernel/qeventdispatcher_glib.cpp:327
#50 0xb6f9fa75 in QGuiEventDispatcherGlib::processEvents (this=0x9506fa8, flags={i = -1081998664}) at kernel/qguieventdispatcher_glib.cpp:202
#51 0xb6a391fa in QEventLoop::processEvents (this=0xbf820330, flags={i = -1081998600}) at kernel/qeventloop.cpp:149
#52 0xb6a39642 in QEventLoop::exec (this=0xbf820330, flags={i = -1081998536}) at kernel/qeventloop.cpp:201
#53 0xb6a3bae9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#54 0xb6efdbb7 in QApplication::exec () at kernel/qapplication.cpp:3525
#55 0x0809fdea in main (argc=1, argv=0xbf820584) at /build/buildd/kdenetwork-4.3.1/kget/main.cpp:173

Reported using DrKonqi
Comment 1 Dario Massarin 2009-09-24 10:54:25 UTC
Thanks for your report. 

It is possible that this bug has been already fixed in trunk. Anyway, we are trying to reproduce it. In the meanwhile, if you have the possibility to test again with current development subversion release, would be great.
Comment 2 m.wege 2009-10-14 08:57:07 UTC
In KDE 4.3.2 the problem still seems to exist. I downloaded a smaller large file (700MB) and Kget started to eat up a lot of memory. The download stopped very early, but still Kget used a lot of memory until I deleted the download.
Comment 3 Dario Andres 2009-11-01 01:25:21 UTC
From bug 212562:
What I was doing when the application crashed:
i have tried to download the file two times before with both times getting
stalled at round about the half. the download was to a nfs4 share which is
almost full, but this should be no problem as it is still writable.
now kget even crashes on startup, which needs serious manual config file
fixes/deletion.
Comment 4 Dario Andres 2009-11-01 01:25:53 UTC
*** Bug 212562 has been marked as a duplicate of this bug. ***
Comment 5 Lukas Appelhans 2009-12-01 20:52:17 UTC
Please retest, the code totally changed in trunk...

Lukas
Comment 6 Andrew Crouthamel 2018-09-20 03:07:58 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-21 04:29:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!