Bug 221240

Summary: Crash after updating svn, recompiling and restarting kget [QMutex::lock, bt::PreallocationThread::isStopped, bt::PreallocationJob::finished]
Product: [Applications] kget Reporter: Dario Massarin <nekkar>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED DUPLICATE    
Severity: crash CC: joris.guisson
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The transfers.kgt file I have as of now
To be complete, I attach the whole /home/dario/.kde4/share/apps/kget directory

Description Dario Massarin 2010-01-04 14:27:33 UTC
Application: kget (2.3.85)
KDE Platform Version: 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31-16-generic i686
Distribution: Ubuntu 9.10

-- Information about the crash:
Hi guys, this morning I just recompiled kget and I got this crash. I'm not sure what this is, but in the meantime I post the bt here, so that everyone can take a look at it.

The crash can be reproduced everytime.

 -- Backtrace:
Application: KGet (kget), signal: Segmentation fault
[KCrash Handler]
#6  0x015f3e4e in QMutex::lock (this=0x1c) at thread/qmutex.cpp:150
#7  0x0290f6b8 in bt::PreallocationThread::isStopped (this=0x0) at /home/dario/kde/kdenetwork/kget/transfer-plugins/bittorrent/libbtcore/diskio/preallocationthread.cpp:82
#8  0x0291d341 in bt::PreallocationJob::finished (this=0x8c09a10) at /home/dario/kde/kdenetwork/kget/transfer-plugins/bittorrent/libbtcore/diskio/preallocationjob.cpp:60
#9  0x02851e21 in bt::PreallocationJob::qt_metacall (this=0x8c09a10, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0x8fccdd0)
    at /home/dario/kde/kdenetwork_build/kget/transfer-plugins/bittorrent/moc_preallocationjob.cpp:74
#10 0x01718ff0 in QMetaObject::metacall (object=0x8c09a10, cl=QMetaObject::InvokeMetaMethod, idx=31, argv=0x8fccdd0) at kernel/qmetaobject.cpp:237
#11 0x017270bb in QMetaCallEvent::placeMetaCall (this=0x8fccde0, object=0x8c09a10) at kernel/qobject.cpp:574
#12 0x01729309 in QObject::event (this=0x8c09a10, e=0x8fccde0) at kernel/qobject.cpp:1260
#13 0x019fa0ac in QApplicationPrivate::notify_helper (this=0x8c0aab8, receiver=0x8c09a10, e=0x8fccde0) at kernel/qapplication.cpp:4242
#14 0x019f7bbf in QApplication::notify (this=0xbfeb53b8, receiver=0x8c09a10, e=0x8fccde0) at kernel/qapplication.cpp:3661
#15 0x0037c17a in KApplication::notify (this=0xbfeb53b8, receiver=0x8c09a10, event=0x8fccde0) at /home/dario/kde/kdelibs/kdeui/kernel/kapplication.cpp:302
#16 0x01711897 in QCoreApplication::notifyInternal (this=0xbfeb53b8, receiver=0x8c09a10, event=0x8fccde0) at kernel/qcoreapplication.cpp:704
#17 0x0171542f in QCoreApplication::sendEvent (receiver=0x8c09a10, event=0x8fccde0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#18 0x0171294b in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8be3588) at kernel/qcoreapplication.cpp:1345
#19 0x01712603 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#20 0x01749c2a in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#21 0x01748518 in postEventSourceDispatch (s=0x8c0cd10) at kernel/qeventdispatcher_glib.cpp:276
#22 0x02a8ae88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0x02a8e730 in ?? () from /lib/libglib-2.0.so.0
#24 0x02a8e863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#25 0x01749514 in QEventDispatcherGlib::processEvents (this=0x8be3180, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#26 0x01acf458 in QGuiEventDispatcherGlib::processEvents (this=0x8be3180, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#27 0x0170eca3 in QEventLoop::processEvents (this=0xbfeb3f34, flags=...) at kernel/qeventloop.cpp:149
#28 0x0170ede8 in QEventLoop::exec (this=0xbfeb3f34, flags=...) at kernel/qeventloop.cpp:201
#29 0x006ba02b in KIO::NetAccess::enter_loop (this=0xbfeb3fd0) at /home/dario/kde/kdelibs/kio/kio/netaccess.cpp:502
#30 0x006ba3c0 in KIO::NetAccess::filecopyInternal (this=0xbfeb3fd0, src=..., target=..., permissions=-1, flags=..., window=0x0, move=false) at /home/dario/kde/kdelibs/kio/kio/netaccess.cpp:324
#31 0x006bb5e0 in KIO::NetAccess::file_copy (src=..., target=..., window=0x0) at /home/dario/kde/kdelibs/kio/kio/netaccess.cpp:149
#32 0x0288b756 in bt::CopyFile (src=..., dst=..., nothrow=false) at /home/dario/kde/kdenetwork/kget/transfer-plugins/bittorrent/libbtcore/util/fileops.cpp:159
#33 0x028e354c in bt::TorrentControl::init (this=0x8fe4030, qman=0x0, torrent=..., tmpdir=..., ddir=...)
    at /home/dario/kde/kdenetwork/kget/transfer-plugins/bittorrent/libbtcore/torrent/torrentcontrol.cpp:479
#34 0x02857081 in BTTransfer::btTransferInit (this=0x90612f0, src=..., data=...) at /home/dario/kde/kdenetwork/kget/transfer-plugins/bittorrent/bttransfer.cpp:486
#35 0x02858176 in BTTransfer::start (this=0x90612f0) at /home/dario/kde/kdenetwork/kget/transfer-plugins/bittorrent/bttransfer.cpp:154
#36 0x007f1b74 in Scheduler::updateQueue (this=0x8be6328, queue=0x8d25790) at /home/dario/kde/kdenetwork/kget/core/scheduler.cpp:229
#37 0x0080144b in TransferGroupScheduler::jobQueueAddedJobEvent (this=0x8be6328, queue=0x8d25790, job=0x90612f0) at /home/dario/kde/kdenetwork/kget/core/transfergroupscheduler.cpp:39
#38 0x007e3662 in JobQueue::append (this=0x8d25790, job=0x90612f0) at /home/dario/kde/kdenetwork/kget/core/jobqueue.cpp:88
#39 0x007feaa1 in TransferGroup::append (this=0x8d25790, transfer=0x90612f0) at /home/dario/kde/kdenetwork/kget/core/transfergroup.cpp:96
#40 0x007f5b86 in TransferTreeModel::addTransfer (this=0x8d0c998, transfer=0x90612f0, group=0x8d25790) at /home/dario/kde/kdenetwork/kget/core/transfertreemodel.cpp:214
#41 0x007e929d in KGet::createTransfer (src=..., dest=..., groupName=..., start=false, e=0xbfeb4724) at /home/dario/kde/kdenetwork/kget/core/kget.cpp:785
#42 0x007ed1ec in KGet::addTransfer (e=..., groupName=...) at /home/dario/kde/kdenetwork/kget/core/kget.cpp:262
#43 0x007fcda8 in TransferGroup::load (this=0x8d25790, e=...) at /home/dario/kde/kdenetwork/kget/core/transfergroup.cpp:378
#44 0x007eeb91 in KGet::load (filename=...) at /home/dario/kde/kdenetwork/kget/core/kget.cpp:494
#45 0x080e7296 in MainWindow::slotDelayedInit (this=0x8c04558) at /home/dario/kde/kdenetwork/kget/mainwindow.cpp:348
#46 0x080e8f2d in MainWindow::qt_metacall (this=0x8c04558, _c=QMetaObject::InvokeMetaMethod, _id=28, _a=0xbfeb4b14) at /home/dario/kde/kdenetwork_build/kget/mainwindow.moc:179
#47 0x01718ff0 in QMetaObject::metacall (object=0x8c04558, cl=QMetaObject::InvokeMetaMethod, idx=81, argv=0xbfeb4b14) at kernel/qmetaobject.cpp:237
#48 0x0172d1f3 in QMetaObject::activate (sender=0x8eb1578, m=0x1872184, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3294
#49 0x01736069 in QSingleShotTimer::timeout (this=0x8eb1578) at .moc/debug-shared/qtimer.moc:82
#50 0x01735f1e in QSingleShotTimer::timerEvent (this=0x8eb1578) at kernel/qtimer.cpp:308
#51 0x01729246 in QObject::event (this=0x8eb1578, e=0xbfeb5054) at kernel/qobject.cpp:1224
#52 0x019fa0ac in QApplicationPrivate::notify_helper (this=0x8c0aab8, receiver=0x8eb1578, e=0xbfeb5054) at kernel/qapplication.cpp:4242
#53 0x019f7bbf in QApplication::notify (this=0xbfeb53b8, receiver=0x8eb1578, e=0xbfeb5054) at kernel/qapplication.cpp:3661
#54 0x0037c17a in KApplication::notify (this=0xbfeb53b8, receiver=0x8eb1578, event=0xbfeb5054) at /home/dario/kde/kdelibs/kdeui/kernel/kapplication.cpp:302
#55 0x01711897 in QCoreApplication::notifyInternal (this=0xbfeb53b8, receiver=0x8eb1578, event=0xbfeb5054) at kernel/qcoreapplication.cpp:704
#56 0x0171542f in QCoreApplication::sendEvent (receiver=0x8eb1578, event=0xbfeb5054) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#57 0x0174c540 in QTimerInfoList::activateTimers (this=0x8c0da74) at kernel/qeventdispatcher_unix.cpp:603
#58 0x01748378 in timerSourceDispatch (source=0x8c0da40) at kernel/qeventdispatcher_glib.cpp:184
#59 0x02a8ae88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#60 0x02a8e730 in ?? () from /lib/libglib-2.0.so.0
#61 0x02a8e863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#62 0x01749514 in QEventDispatcherGlib::processEvents (this=0x8be3180, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#63 0x01acf458 in QGuiEventDispatcherGlib::processEvents (this=0x8be3180, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#64 0x0170eca3 in QEventLoop::processEvents (this=0xbfeb531c, flags=...) at kernel/qeventloop.cpp:149
#65 0x0170ede8 in QEventLoop::exec (this=0xbfeb531c, flags=...) at kernel/qeventloop.cpp:201
#66 0x01711f73 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#67 0x019f782e in QApplication::exec () at kernel/qapplication.cpp:3570
#68 0x080eab2d in main (argc=1, argv=0xbfeb55e4) at /home/dario/kde/kdenetwork/kget/main.cpp:184

Reported using DrKonqi
Comment 1 Dario Massarin 2010-01-04 15:14:52 UTC
Created attachment 39553 [details]
The transfers.kgt file I have as of now
Comment 2 Dario Massarin 2010-01-04 15:21:15 UTC
Created attachment 39554 [details]
To be complete, I attach the whole /home/dario/.kde4/share/apps/kget directory
Comment 3 Lukas Appelhans 2010-01-04 20:52:06 UTC
As this seems to be in libbtcore, let's attach Joris to this...

Lukas
Comment 4 Joris Guisson 2010-01-05 19:47:25 UTC
This looks identical to:

https://bugs.kde.org/show_bug.cgi?id=221333
Comment 5 Joris Guisson 2010-01-05 19:57:16 UTC
The problem clearly is a 0 pointer, but I'm not sure how you can get in this situation.
Comment 6 Lukas Appelhans 2010-01-05 20:15:38 UTC
Ok, well let's mark it as a duplicate...

Hope we can fix this problem soon though... :)

Lukas

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