Bug 221333 - When launching ktorrent it crashes
Summary: When launching ktorrent it crashes
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
: 221240 225830 242176 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-05 05:16 UTC by ericb
Modified: 2010-06-20 00:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ericb 2010-01-05 05:16:15 UTC
Application that crashed: ktorrent
Version of the application: 3.3.1
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.3
Operating System: Linux 2.6.31.9-174.fc12.i686.PAE i686

What I was doing when the application crashed:
0: It's a little hard to remember the sequence of events.
1: Used to have fedora 10 installed and was using ktorrent with it.
2: Backed up all the torrents and all the downloaded data.
3: Installed Fedora 12.
4: Installed ktorrent, enabled the bandwidth schedular.
5: Configured ktorrent save, move and copy directories.
6: Moved the downloaded data into the save directory.
7: Made ktorrent aware of the torrents - which it then promptly did a consistancy check. Did this process over a couple of days.
8: Prettu sure it did do some downloading 
9: ktorrent eventually crashed, went to restart it and it crashed - rebooted the linux box and ktorrent still crashes. Done several reboots over the last week and it continues to crash. So I can not actually use it at all. 

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[KCrash Handler]
#6  QMutex::lock (this=0x1c) at thread/qmutex.cpp:152
#7  0x071f8ac9 in bt::PreallocationThread::isStopped (this=<value optimized out>) at /usr/src/debug/ktorrent-3.3.1/libbtcore/diskio/preallocationthread.cpp:82
#8  0x071f8f92 in bt::PreallocationJob::finished (this=<value optimized out>) at /usr/src/debug/ktorrent-3.3.1/libbtcore/diskio/preallocationjob.cpp:60
#9  0x07167f22 in bt::PreallocationJob::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at /usr/src/debug/ktorrent-3.3.1/i686-redhat-linux-gnu/libbtcore/moc_preallocationjob.cpp:68
#10 0x031ea7fc in QMetaCallEvent::placeMetaCall (this=<value optimized out>, object=<value optimized out>) at kernel/qobject.cpp:477
#11 0x031ebf96 in QObject::event (this=<value optimized out>, e=<value optimized out>) at kernel/qobject.cpp:1110
#12 0x0369ab24 in QApplicationPrivate::notify_helper (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:4065
#13 0x036a2281 in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:3605
#14 0x0414907b in KApplication::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at /usr/src/debug/kdelibs-4.3.4/kdeui/kernel/kapplication.cpp:302
#15 0x031dbd73 in QCoreApplication::notifyInternal (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at kernel/qcoreapplication.cpp:610
#16 0x031dc972 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#17 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1247
#18 0x031dcb2e in QCoreApplication::sendPostedEvents (receiver=<value optimized out>, event_type=<value optimized out>) at kernel/qcoreapplication.cpp:1140
#19 0x03206f40 in sendPostedEvents () at kernel/qcoreapplication.h:218
#20 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:210
#21 0x0086e128 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#22 0x00871a58 in ?? () from /lib/libglib-2.0.so.0
#23 0x00871b84 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#24 0x03206b6d in QEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#25 0x0373a356 in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#26 0x031da2aa in QEventLoop::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:149
#27 0x031da70a in QEventLoop::exec (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:201
#28 0x031dcbf7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#29 0x0369a9a8 in QApplication::exec () at kernel/qapplication.cpp:3525
#30 0x08065481 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/ktorrent-3.3.1/ktorrent/main.cpp:172

Reported using DrKonqi
Comment 1 Lukas Appelhans 2010-01-05 20:15:38 UTC
*** Bug 221240 has been marked as a duplicate of this bug. ***
Comment 2 Joris Guisson 2010-01-05 20:21:07 UTC
SVN commit 1070485 by guisson:

Fix crash caused by not checking for 0 pointer 

BUG: 221333


 M  +1 -0      ChangeLog  
 M  +9 -3      libbtcore/diskio/preallocationjob.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1070485
Comment 3 Joris Guisson 2010-02-08 17:59:15 UTC
*** Bug 225830 has been marked as a duplicate of this bug. ***
Comment 4 Joris Guisson 2010-06-20 00:08:09 UTC
*** Bug 242176 has been marked as a duplicate of this bug. ***