Bug 269143

Summary: crash when viewing chunks
Product: [Applications] ktorrent Reporter: twrightiii <twrightiii>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description twrightiii 2011-03-22 14:50:02 UTC
Application: ktorrent (3.3.4)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-30-generic i686
Distribution: Ubuntu 10.04.2 LTS

-- Information about the crash:
When viewing chunks and changing the sortation it caused the crash.  I repeated the same actions three times to be sure that the crash was not just random and that it had to do with my viewing the chunks and changing the sortation.  I have not had this problem with other torrents so just in case it might be helpfull I was downloading archlinux-2010.05-core-i686.iso.torrent

I am running ktorrent from Gnome desktop however I also have KDE 4 installed from the Ubuntu/Debian repository.

The crash can be reproduced every time.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7850aa0 (LWP 3483))]

Thread 4 (Thread 0xb17ffb70 (LWP 3557)):
#0  0x00932422 in __kernel_vsyscall ()
#1  0x06db3b86 in *__GI___poll (fds=0x6e49ff4, nfds=112, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x00a61982 in net::DownloadThread::waitForSocketReady (this=0x9094560) at ../../libbtcore/net/downloadthread.cpp:188
#3  0x00a61a4f in net::DownloadThread::update (this=0x9094560) at ../../libbtcore/net/downloadthread.cpp:53
#4  0x00a626b8 in net::NetworkThread::run (this=0x9094560) at ../../libbtcore/net/networkthread.cpp:48
#5  0x0600832e in QThreadPrivate::start (arg=0x9094560) at thread/qthread_unix.cpp:248
#6  0x001d396e in start_thread (arg=0xb17ffb70) at pthread_create.c:300
#7  0x06dc1a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb21feb70 (LWP 3558)):
#0  0x00932422 in __kernel_vsyscall ()
#1  0x001d8015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x06009287 in QWaitConditionPrivate::wait (this=0x90948f8, mutex=0x90948fc, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x90948f8, mutex=0x90948fc, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x00a613a9 in net::UploadThread::update (this=0x90948c0) at ../../libbtcore/net/uploadthread.cpp:73
#5  0x00a626b8 in net::NetworkThread::run (this=0x90948c0) at ../../libbtcore/net/networkthread.cpp:48
#6  0x0600832e in QThreadPrivate::start (arg=0x90948c0) at thread/qthread_unix.cpp:248
#7  0x001d396e in start_thread (arg=0xb21feb70) at pthread_create.c:300
#8  0x06dc1a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xadfffb70 (LWP 3628)):
#0  0x00929e16 in *__GI_clock_gettime (clock_id=9625588, tp=0xadffefb8) at ../sysdeps/unix/clock_gettime.c:100
#1  0x061336fb in qt_gettime () at kernel/qcore_unix.cpp:111
#2  0x06138825 in QTimerInfoList::updateCurrentTime (this=0x979c9dc) at kernel/qeventdispatcher_unix.cpp:340
#3  0x0613886a in QTimerInfoList::timerWait (this=0x979c9dc, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0x06136818 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xadfff0cc) at kernel/qeventdispatcher_glib.cpp:136
#5  0x061368a5 in timerSourcePrepare (source=0x0, timeout=0x92dff4) at kernel/qeventdispatcher_glib.cpp:169
#6  0x03788aca in g_main_context_prepare () from /lib/libglib-2.0.so.0
#7  0x03788ee9 in ?? () from /lib/libglib-2.0.so.0
#8  0x037894b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#9  0x0613660f in QEventDispatcherGlib::processEvents (this=0x999d030, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#10 0x06109059 in QEventLoop::processEvents (this=0xadfff290, flags=) at kernel/qeventloop.cpp:149
#11 0x061094aa in QEventLoop::exec (this=0xadfff290, flags=...) at kernel/qeventloop.cpp:201
#12 0x060055a8 in QThread::exec (this=0x9877c28) at thread/qthread.cpp:487
#13 0x060e8c1b in QInotifyFileSystemWatcherEngine::run (this=0x9877c28) at io/qfilesystemwatcher_inotify.cpp:248
#14 0x0600832e in QThreadPrivate::start (arg=0x9877c28) at thread/qthread_unix.cpp:248
#15 0x001d396e in start_thread (arg=0xadfffb70) at pthread_create.c:300
#16 0x06dc1a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7850aa0 (LWP 3483)):
[KCrash Handler]
#6  0x07b46675 in kt::ChunkDownloadModel::Item::changed (this=0x9b0d550, col=0, modified=@0xbffd7b7f) at ../../../plugins/infowidget/chunkdownloadmodel.cpp:42
#7  0x07b46834 in kt::ChunkDownloadModel::update (this=0x95f01d8) at ../../../plugins/infowidget/chunkdownloadmodel.cpp:173
#8  0x07b4400d in kt::ChunkDownloadView::update (this=0x943d658) at ../../../plugins/infowidget/chunkdownloadview.cpp:83
#9  0x07b31b50 in kt::InfoWidgetPlugin::guiUpdate (this=0x95aa4f8) at ../../../plugins/infowidget/infowidgetplugin.cpp:156
#10 0x00875c93 in kt::PluginManager::updateGuiPlugins (this=0xb58093c8) at ../../libktcore/plugin/pluginmanager.cpp:202
#11 0x0807a3b5 in kt::GUI::update (this=0x90eef20) at ../../ktorrent/gui.cpp:473
#12 0x0807c901 in kt::GUI::qt_metacall (this=0x90eef20, _c=QMetaObject::InvokeMetaMethod, _id=65, _a=0xbffd7d7c) at ./gui.moc:126
#13 0x0610fc9a in QMetaObject::metacall (object=0x90eef20, cl=QMetaObject::ReadProperty, idx=65, argv=0xbffd7d7c) at kernel/qmetaobject.cpp:237
#14 0x0611e3d5 in QMetaObject::activate (sender=0x90eef48, m=0x621e5a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3293
#15 0x0616faa7 in QTimer::timeout (this=0x90eef48) at .moc/release-shared/moc_qtimer.cpp:134
#16 0x0612660e in QTimer::timerEvent (this=0x90eef48, e=0xbffd82b0) at kernel/qtimer.cpp:271
#17 0x0611b254 in QObject::event (this=0x90eef48, e=0x0) at kernel/qobject.cpp:1212
#18 0x01c8d4dc in QApplicationPrivate::notify_helper (this=0x90b7c70, receiver=0x90eef48, e=0xbffd82b0) at kernel/qapplication.cpp:4300
#19 0x01c9405e in QApplication::notify (this=0xbffd8604, receiver=0x90eef48, e=0xbffd82b0) at kernel/qapplication.cpp:3704
#20 0x0113b40a in KApplication::notify (this=0xbffd8604, receiver=0x90eef48, event=0xbffd82b0) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x0610aa3b in QCoreApplication::notifyInternal (this=0xbffd8604, receiver=0x90eef48, event=0xbffd82b0) at kernel/qcoreapplication.cpp:704
#22 0x06139d66 in QCoreApplication::sendEvent (this=0x90bc7bc) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 QTimerInfoList::activateTimers (this=0x90bc7bc) at kernel/qeventdispatcher_unix.cpp:603
#24 0x06136917 in timerSourceDispatch (source=0x90bcc00) at kernel/qeventdispatcher_glib.cpp:184
#25 idleTimerSourceDispatch (source=0x90bcc00) at kernel/qeventdispatcher_glib.cpp:231
#26 0x037855e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#27 0x037892d8 in ?? () from /lib/libglib-2.0.so.0
#28 0x037894b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#29 0x061365d5 in QEventDispatcherGlib::processEvents (this=0x9093380, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#30 0x01d4d135 in QGuiEventDispatcherGlib::processEvents (this=0x9093380, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x06109059 in QEventLoop::processEvents (this=0xbffd8574, flags=) at kernel/qeventloop.cpp:149
#32 0x061094aa in QEventLoop::exec (this=0xbffd8574, flags=...) at kernel/qeventloop.cpp:201
#33 0x0610d69f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#34 0x01c8d577 in QApplication::exec () at kernel/qapplication.cpp:3579
#35 0x08067a51 in main (argc=5, argv=0xbffd89d4) at ../../ktorrent/main.cpp:172

Possible duplicates by query: bug 247201, bug 246483, bug 233996.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-03-22 18:36:31 UTC

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