Bug 256091 - KGet crashed when torrent download was finished
Summary: KGet crashed when torrent download was finished
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
: 259085 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-04 22:55 UTC by Elias Probst
Modified: 2010-12-07 12:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.07 KB, text/plain)
2010-11-04 22:58 UTC, Elias Probst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2010-11-04 22:55:31 UTC
Application: kget (2.5.3)
KDE Platform Version: 4.5.3 (KDE 4.5.3) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.36-rc5+ x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
There were two torrent downloads in the list:
- 1 finished, which was seeding
- 1 in the process of being finished
When the 2nd process went 100%, KGet crashed producing this backtrace.

-- Backtrace:
Application: KGet (kget), signal: Segmentation fault
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f82ada93780 (LWP 30424))]

Thread 4 (Thread 0x7f828fdf9710 (LWP 30435)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
#1  0x00007f82abcfd9ee in _L_cond_lock_1024 () from /lib/libpthread.so.0
#2  0x00007f82abcfd81b in __pthread_mutex_cond_lock (mutex=0x94b170) at ../nptl/pthread_mutex_lock.c:61
#3  0x00007f82abcf82e6 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:236
#4  0x00007f82aaa29f9c in QMutexPrivate::wait (this=0x94b150, timeout=-1) at thread/qmutex_unix.cpp:84
#5  0x00007f82aaa260b3 in QMutex::lock (this=0x7f8295c49668) at thread/qmutex.cpp:167
#6  0x00007f829596c2e7 in net::DownloadThread::update (this=0x94b1d0) at /var/tmp/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/downloadthread.cpp:51
#7  0x00007f829596cc13 in net::NetworkThread::run (this=0x94b1d0) at /var/tmp/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/networkthread.cpp:48
#8  0x00007f82aaa2a797 in QThreadPrivate::start (arg=0x94b1d0) at thread/qthread_unix.cpp:248
#9  0x00007f82abcf38b4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00007f82a935f1dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f828f5f8710 (LWP 30436)):
#0  pthread_cond_signal@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S:89
#1  0x00007f82aaa29dc3 in QMutexPrivate::wakeUp (this=0x94b150) at thread/qmutex_unix.cpp:111
#2  0x00007f829596bba7 in net::UploadThread::update (this=0x94b820) at /var/tmp/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/uploadthread.cpp:82
#3  0x00007f829596cc13 in net::NetworkThread::run (this=0x94b820) at /var/tmp/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/networkthread.cpp:48
#4  0x00007f82aaa2a797 in QThreadPrivate::start (arg=0x94b820) at thread/qthread_unix.cpp:248
#5  0x00007f82abcf38b4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f82a935f1dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f828edf7710 (LWP 30437)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f82aaa2b6d4 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x17c8ed0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x17c8ed0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f829596f59c in net::ReverseResolverThread::run (this=0x17c8ec0) at /var/tmp/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/reverseresolver.cpp:123
#4  0x00007f82aaa2a797 in QThreadPrivate::start (arg=0x17c8ec0) at thread/qthread_unix.cpp:248
#5  0x00007f82abcf38b4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f82a935f1dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f82ada93780 (LWP 30424)):
[KCrash Handler]
#6  Verifier::availableChecksum (this=0x0, strength=Verifier::Strongest) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/core/verifier.cpp:641
#7  0x00007f82acba6038 in NepomukHandler::saveFileProperties (this=0x149d9b0) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/core/nepomukhandler.cpp:68
#8  0x00007f82acb777f5 in Transfer::setStatus (this=0x14cc2a0, jobStatus=<value optimized out>, text=<value optimized out>, pix=<value optimized out>)
    at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/core/transfer.cpp:351
#9  0x00007f8295c83ddd in BTTransfer::slotDownloadFinished (this=0x14cc2a0, ti=<value optimized out>)
    at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/transfer-plugins/bittorrent/bttransfer.cpp:489
#10 0x00007f8295c86d4b in BTTransfer::qt_metacall (this=0x14cc2a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3a1e16a0)
    at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3_build/kget/transfer-plugins/bittorrent/bttransfer.moc:92
#11 0x00007f82aab170a2 in QMetaObject::activate (sender=0x9ab740, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xfffffffffff7f914) at kernel/qobject.cpp:3287
#12 0x00007f829599944b in bt::TorrentInterface::finished (this=0x7fff3a1e1180, _t1=0x9ab740) at /var/tmp/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4_build/src/torrentinterface.moc:124
#13 0x00007f82959a9ae5 in bt::TorrentControl::update (this=0x9ab740) at /var/tmp/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/torrent/torrentcontrol.cpp:194
#14 0x00007f8295c81f49 in BTTransfer::updateTorrent (this=0x14cc2a0) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/transfer-plugins/bittorrent/bttransfer.cpp:304
#15 0x00007f8295c824bc in BTTransfer::update (this=0x14cc2a0) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/transfer-plugins/bittorrent/bttransfer.cpp:198
#16 0x00007f8295c86d58 in BTTransfer::qt_metacall (this=0x14cc2a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff3a1e18b0)
    at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3_build/kget/transfer-plugins/bittorrent/bttransfer.moc:90
#17 0x00007f82aab170a2 in QMetaObject::activate (sender=0x14cc3b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xfffffffffff7f914) at kernel/qobject.cpp:3287
#18 0x00007f82aab13afc in QObject::event (this=0x14cc3b0, e=0x0) at kernel/qobject.cpp:1204
#19 0x00007f82a9f44d28 in QApplicationPrivate::notify_helper (this=0x7391e0, receiver=0x14cc3b0, e=0x7fff3a1e2000) at kernel/qapplication.cpp:4302
#20 0x00007f82a9f4a9d2 in QApplication::notify (this=0x7fff3a1e2340, receiver=0x14cc3b0, e=0x7fff3a1e2000) at kernel/qapplication.cpp:4185
#21 0x00007f82ad4d67e4 in KApplication::notify (this=0x7fff3a1e2340, receiver=0x14cc3b0, event=0x7fff3a1e2000)
    at /var/tmp/portage/kde-base/kdelibs-4.5.3/work/kdelibs-4.5.3/kdeui/kernel/kapplication.cpp:310
#22 0x00007f82aab0595a in QCoreApplication::notifyInternal (this=0x7fff3a1e2340, receiver=0x14cc3b0, event=0x7fff3a1e2000) at kernel/qcoreapplication.cpp:726
#23 0x00007f82aab2e3ac in QCoreApplication::sendEvent (this=0x730a30) at kernel/qcoreapplication.h:215
#24 QTimerInfoList::activateTimers (this=0x730a30) at kernel/qeventdispatcher_unix.cpp:603
#25 0x00007f82aab2b29b in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#26 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#27 0x00007f82a4f0843a in g_main_dispatch (context=0x72fca0) at gmain.c:1960
#28 IA__g_main_context_dispatch (context=0x72fca0) at gmain.c:2513
#29 0x00007f82a4f0ba61 in g_main_context_iterate (context=0x72fca0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#30 0x00007f82a4f0bc1e in IA__g_main_context_iteration (context=0x72fca0, may_block=1) at gmain.c:2654
#31 0x00007f82aab2b028 in QEventDispatcherGlib::processEvents (this=0x6e8520, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#32 0x00007f82a9fe4bfe in QGuiEventDispatcherGlib::processEvents (this=0x7fff3a1e1180, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f82aab045b2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#34 0x00007f82aab04903 in QEventLoop::exec (this=0x7fff3a1e22a0, flags=) at kernel/qeventloop.cpp:201
#35 0x00007f82aab08e4f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#36 0x000000000049f6d1 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/main.cpp:202

Reported using DrKonqi
Comment 1 Elias Probst 2010-11-04 22:58:54 UTC
Created attachment 53146 [details]
New crash information added by DrKonqi

kget (2.5.3) on KDE Platform 4.5.3 (KDE 4.5.3) using Qt 4.6.3

- What I was doing when the application crashed:

Now KGet keeps crashing when restarting it.

-- Backtrace (Reduced):
#6  Verifier::availableChecksum (this=0x0, strength=Verifier::Strongest) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/core/verifier.cpp:641
#7  0x00007f0a6956e038 in NepomukHandler::saveFileProperties (this=0x99b4e0) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/core/nepomukhandler.cpp:68
#8  0x00007f0a6953f7f5 in Transfer::setStatus (this=0x926aa0, jobStatus=<value optimized out>, text=<value optimized out>, pix=<value optimized out>)
    at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/core/transfer.cpp:351
#9  0x00007f0a5264bddd in BTTransfer::slotDownloadFinished (this=0x926aa0, ti=<value optimized out>)
    at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/transfer-plugins/bittorrent/bttransfer.cpp:489
#10 0x00007f0a5264d245 in BTTransfer::startTorrent (this=0x926aa0) at /var/tmp/portage/kde-base/kget-4.5.3/work/kget-4.5.3/kget/transfer-plugins/bittorrent/bttransfer.cpp:269
Comment 2 Matthias Fuchs 2010-11-22 18:36:05 UTC
SVN commit 1199766 by mfuchs:

Check for nullpointer.
BUG:256091

 M  +5 -2      nepomukhandler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1199766
Comment 3 Matthias Fuchs 2010-11-22 18:37:16 UTC
SVN commit 1199768 by mfuchs:

Backport r1199766
Check for nullpointer.
CCBUG:256091

 M  +5 -2      nepomukhandler.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1199768
Comment 4 Lukas Appelhans 2010-12-07 12:13:13 UTC
*** Bug 259085 has been marked as a duplicate of this bug. ***