Bug 253133

Summary: KTorrent crashed while deleting torrent
Product: [Applications] ktorrent Reporter: proDOOMman <prodoomman>
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 proDOOMman 2010-10-03 17:10:36 UTC
Application: ktorrent (4.0.3)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-6.dmz.2-liquorix-686 i686
Distribution: Ubuntu maverick (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
I have two torrent files, that are merged by ktorrent. While deleting torrent and his data (shift+del) ktorrent crashed.

The crash can be reproduced every time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Aborted
[Current thread is 1 (Thread 0xb4963710 (LWP 2875))]

Thread 7 (Thread 0xb1bf0b70 (LWP 2877)):
#0  0xb7897424 in __kernel_vsyscall ()
#1  0xb5bd2103 in ?? () from /lib/libc.so.6
#2  0xb5b6665f in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0xb23f1b70 (LWP 2878)):
#0  0xb7897424 in __kernel_vsyscall ()
#1  0xb5bbd381 in select () from /lib/libc.so.6
#2  0xb77ca8db in dht::RPCServerThread::run (this=0x9d97710) at ../../src/dht/rpcserver.cpp:107
#3  0xb68c4df9 in QThreadPrivate::start (arg=0x9d97710) at thread/qthread_unix.cpp:266
#4  0xb684ecc9 in start_thread () from /lib/libpthread.so.0
#5  0xb5bc46ae in clone () from /lib/libc.so.6

Thread 5 (Thread 0xa96fab70 (LWP 2892)):
#0  0xb7897424 in __kernel_vsyscall ()
#1  0xb68534dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb68c3ef2 in QMutexPrivate::wait (this=0x9d29910, timeout=-1) at thread/qmutex_unix.cpp:84
#3  0xb68bf5ca in QMutex::lock (this=0x8116894) at thread/qmutex.cpp:167
#4  0xb775b890 in net::SocketMonitor::lock (this=0x8116890) at ../../src/net/socketmonitor.cpp:82
#5  0xb775d5c5 in net::DownloadThread::update (this=0x9d29978) at ../../src/net/downloadthread.cpp:51
#6  0xb775e178 in net::NetworkThread::run (this=0x9d29978) at ../../src/net/networkthread.cpp:48
#7  0xb68c4df9 in QThreadPrivate::start (arg=0x9d29978) at thread/qthread_unix.cpp:266
#8  0xb684ecc9 in start_thread () from /lib/libpthread.so.0
#9  0xb5bc46ae in clone () from /lib/libc.so.6

Thread 4 (Thread 0xa8ef9b70 (LWP 2893)):
#0  0xb7897424 in __kernel_vsyscall ()
#1  0xb5b7ea06 in gettimeofday () from /lib/libc.so.6
#2  0xb7745356 in bt::Now () at ../../src/util/functions.cpp:171
#3  0xb775cb1a in net::UploadThread::update (this=0x9d29d80) at ../../src/net/uploadthread.cpp:51
#4  0xb775e178 in net::NetworkThread::run (this=0x9d29d80) at ../../src/net/networkthread.cpp:48
#5  0xb68c4df9 in QThreadPrivate::start (arg=0x9d29d80) at thread/qthread_unix.cpp:266
#6  0xb684ecc9 in start_thread () from /lib/libpthread.so.0
#7  0xb5bc46ae in clone () from /lib/libc.so.6

Thread 3 (Thread 0xab6feb70 (LWP 2898)):
#0  0xb7897424 in __kernel_vsyscall ()
#1  0xb68534dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb68c59c7 in wait (this=0xa83a1a14, mutex=0xa83a1a10, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0xa83a1a14, mutex=0xa83a1a10, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0xb77618f2 in net::ReverseResolverThread::run (this=0xa83a1a08) at ../../src/net/reverseresolver.cpp:123
#5  0xb68c4df9 in QThreadPrivate::start (arg=0xa83a1a08) at thread/qthread_unix.cpp:266
#6  0xb684ecc9 in start_thread () from /lib/libpthread.so.0
#7  0xb5bc46ae in clone () from /lib/libc.so.6

Thread 2 (Thread 0xabeffb70 (LWP 2903)):
#0  0xb7897424 in __kernel_vsyscall ()
#1  0xb68534dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb68c3ef2 in QMutexPrivate::wait (this=0x9d464b8, timeout=-1) at thread/qmutex_unix.cpp:84
#3  0xb68bf5ea in QMutex::lock (this=0x9d43028) at thread/qmutex.cpp:204
#4  0xb774b0a3 in bt::Log::lock (this=0x9db3de8) at ../../src/util/log.cpp:262
#5  0xb774bb05 in bt::Out (arg=19) at ../../src/util/log.cpp:270
#6  0xb774bfec in bt::QtMessageOutput (type=4294966784, msg=0xa6d10710 "QSocketNotifier: Invalid socket 59 and type 'Read', disabling...") at ../../src/util/log.cpp:297
#7  0xb68bb285 in qt_message_output (msgType=QtWarningMsg, buf=0x19 <Address 0x19 out of bounds>) at global/qglobal.cpp:2205
#8  0xb68bb4aa in qt_message (msgType=<value optimized out>, msg=0xb6a91578 "QSocketNotifier: Invalid socket %d and type '%s', disabling...", ap=0xabeff044 ";") at global/qglobal.cpp:2305
#9  0xb68bb689 in qWarning (msg=0xb6a91578 "QSocketNotifier: Invalid socket %d and type '%s', disabling...") at global/qglobal.cpp:2387
#10 0xb69f59ec in socketNotifierSourceCheck (source=0xa6d0eda0) at kernel/qeventdispatcher_glib.cpp:90
#11 0xb50b9b39 in g_main_context_check () from /lib/libglib-2.0.so.0
#12 0xb50ba45e in ?? () from /lib/libglib-2.0.so.0
#13 0xb50ba848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#14 0xb69f5565 in QEventDispatcherGlib::processEvents (this=0xa7d45e0, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#15 0xb69c5609 in QEventLoop::processEvents (this=0xabeff290, flags=) at kernel/qeventloop.cpp:149
#16 0xb69c5a8a in QEventLoop::exec (this=0xabeff290, flags=...) at kernel/qeventloop.cpp:201
#17 0xb68c1b7e in QThread::exec (this=0xa30f8b0) at thread/qthread.cpp:490
#18 0xb69a435b in QInotifyFileSystemWatcherEngine::run (this=0xa30f8b0) at io/qfilesystemwatcher_inotify.cpp:248
#19 0xb68c4df9 in QThreadPrivate::start (arg=0xa30f8b0) at thread/qthread_unix.cpp:266
#20 0xb684ecc9 in start_thread () from /lib/libpthread.so.0
#21 0xb5bc46ae in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4963710 (LWP 2875)):
[KCrash Handler]
#7  0xb7897424 in __kernel_vsyscall ()
#8  0xb5b1e941 in raise () from /lib/libc.so.6
#9  0xb5b21e42 in abort () from /lib/libc.so.6
#10 0xb5b56305 in ?? () from /lib/libc.so.6
#11 0xb5b60501 in ?? () from /lib/libc.so.6
#12 0xb5b63679 in ?? () from /lib/libc.so.6
#13 0xb5b64f33 in malloc () from /lib/libc.so.6
#14 0xb68bf11d in qMalloc (size=20) at global/qmalloc.cpp:55
#15 0xb68e39c3 in QHashData::allocateNode (this=0xa7b8f60, nodeAlign=4) at tools/qhash.cpp:175
#16 0xb6a1e36b in createNode (this=0x0, q=0xbfa293d4) at ../../include/QtCore/../../src/corelib/tools/qhash.h:543
#17 insert (this=0x0, q=0xbfa293d4) at ../../include/QtCore/../../src/corelib/tools/qhash.h:760
#18 QXmlStreamReaderPrivate::QXmlStreamReaderPrivate (this=0x0, q=0xbfa293d4) at xml/qxmlstream.cpp:805
#19 0xb6a21127 in QXmlStreamReader::QXmlStreamReader (this=0xbfa293d4, data=...) at xml/qxmlstream.cpp:419
#20 0xb6d6ad8e in KuitSemanticsPrivate::semanticToVisualText (this=0x9dab0c8, text_=..., fmtExp_=Kuit::Fmt::None, fmtImp_=Kuit::Fmt::Plain) at ../../kdecore/localization/kuitsemantics.cpp:1112
#21 0xb6d6d65f in KuitSemanticsPrivate::format (this=0x9dab0c8, text=..., ctxt=...) at ../../kdecore/localization/kuitsemantics.cpp:878
#22 0xb6d6d749 in KuitSemantics::format (this=0x9ddfaf8, text=..., ctxt=...) at ../../kdecore/localization/kuitsemantics.cpp:1557
#23 0xb6d466c4 in KLocalizedStringPrivate::postFormat (this=0xb4f4b50, text=..., lang=..., ctxt=...) at ../../kdecore/localization/klocalizedstring.cpp:481
#24 0xb6d4933a in KLocalizedStringPrivate::toString (this=0xb4f4b50, locale=0x9daa9f0, catalogName=...) at ../../kdecore/localization/klocalizedstring.cpp:301
#25 0xb6d49f26 in KLocalizedString::toString (this=0xbfa296e8) at ../../kdecore/localization/klocalizedstring.cpp:195
#26 0xadb7b2a9 in kt::IWFileTreeModel::displayData (this=0xa18a9b8, n=0xb3ef800, index=...) at ../../../plugins/infowidget/iwfiletreemodel.cpp:189
#27 0xadb7b957 in kt::IWFileTreeModel::data (this=0xa18a9b8, index=..., role=0) at ../../../plugins/infowidget/iwfiletreemodel.cpp:140
#28 0xb650db08 in QSortFilterProxyModel::data (this=0xa374bf0, index=..., role=0) at itemviews/qsortfilterproxymodel.cpp:1715
#29 0xb65366d8 in data (this=0xa369a00, option=0xbfa29970, index=...) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:398
#30 QStyledItemDelegate::initStyleOption (this=0xa369a00, option=0xbfa29970, index=...) at itemviews/qstyleditemdelegate.cpp:380
#31 0xb65377be in QStyledItemDelegate::paint (this=0xa369a00, painter=0xbfa29ebc, option=..., index=...) at itemviews/qstyleditemdelegate.cpp:420
#32 0xb64c2da0 in QTreeView::drawRow (this=0xa34ed38, painter=0xbfa29ebc, option=..., index=...) at itemviews/qtreeview.cpp:1678
#33 0xb64c846a in QTreeView::drawTree (this=0xa34ed38, painter=0xbfa29ebc, region=...) at itemviews/qtreeview.cpp:1441
#34 0xb64cb20b in QTreeView::paintEvent (this=0xa34ed38, event=0xbfa2a724) at itemviews/qtreeview.cpp:1274
#35 0xb5f08cc6 in QWidget::event (this=0xa34ed38, event=0xbfa2a724) at kernel/qwidget.cpp:8333
#36 0xb632a763 in QFrame::event (this=0xa34ed38, e=0xbfa2a724) at widgets/qframe.cpp:557
#37 0xb63c7a82 in QAbstractScrollArea::viewportEvent (this=0xb3b, e=0x6) at widgets/qabstractscrollarea.cpp:1043
#38 0xb64840f7 in QAbstractItemView::viewportEvent (this=0xa34ed38, event=0xbfa2a724) at itemviews/qabstractitemview.cpp:1619
#39 0xb64c6883 in QTreeView::viewportEvent (this=0xa34ed38, event=0xbfa2a724) at itemviews/qtreeview.cpp:1256
#40 0xb63ca4d5 in viewportEvent (this=0xa36f9e8, o=0xa3717c8, e=0xbfa2a724) at widgets/qabstractscrollarea_p.h:100
#41 QAbstractScrollAreaFilter::eventFilter (this=0xa36f9e8, o=0xa3717c8, e=0xbfa2a724) at widgets/qabstractscrollarea_p.h:116
#42 0xb69c629a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x9d4c510, receiver=0xa3717c8, event=0xbfa2a724) at kernel/qcoreapplication.cpp:847
#43 0xb5eaafb9 in QApplicationPrivate::notify_helper (this=0x9d4c510, receiver=0xa3717c8, e=0xbfa2a724) at kernel/qapplication.cpp:4392
#44 0xb5eb10e9 in QApplication::notify (this=0xbfa2b470, receiver=0xa3717c8, e=0xbfa2a724) at kernel/qapplication.cpp:4361
#45 0x080783dc in kt::App::notify (this=0xb3b, receiver=0x6, event=0x0) at ../../ktorrent/app.cpp:97
#46 0xb69c6b3b in QCoreApplication::notifyInternal (this=0xbfa2b470, receiver=0xa3717c8, event=0xbfa2a724) at kernel/qcoreapplication.cpp:732
#47 0xb5f0fee6 in sendSpontaneousEvent (this=0xa369c58, pdev=0xa916ed0, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9de8108) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#48 QWidgetPrivate::drawWidget (this=0xa369c58, pdev=0xa916ed0, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x9de8108) at kernel/qwidget.cpp:5420
#49 0xb6100bff in QWidgetBackingStore::sync (this=0x9de8108) at painting/qbackingstore.cpp:1320
#50 0xb5f022b3 in QWidgetPrivate::syncBackingStore (this=0x9da4f38) at kernel/qwidget.cpp:1805
#51 0xb5f09466 in QWidget::event (this=0x9da33b8, event=0xa7b1e08) at kernel/qwidget.cpp:8480
#52 0xb6349917 in QMainWindow::event (this=0x9da33b8, event=0xa7b1e08) at widgets/qmainwindow.cpp:1417
#53 0xb72a08a4 in KMainWindow::event (this=0x9da33b8, ev=0xa7b1e08) at ../../kdeui/widgets/kmainwindow.cpp:1100
#54 0xb72e914f in KXmlGuiWindow::event (this=0x9da33b8, ev=0xa7b1e08) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:130
#55 0xb5eaafdc in QApplicationPrivate::notify_helper (this=0x9d4c510, receiver=0x9da33b8, e=0xa7b1e08) at kernel/qapplication.cpp:4396
#56 0xb5eb10e9 in QApplication::notify (this=0xbfa2b470, receiver=0x9da33b8, e=0xa7b1e08) at kernel/qapplication.cpp:4361
#57 0x080783dc in kt::App::notify (this=0xb3b, receiver=0x6, event=0x0) at ../../ktorrent/app.cpp:97
#58 0xb69c6b3b in QCoreApplication::notifyInternal (this=0xbfa2b470, receiver=0x9da33b8, event=0xa7b1e08) at kernel/qcoreapplication.cpp:732
#59 0xb69c9d8b in sendEvent (receiver=0x0, event_type=0, data=0x9d28be8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#60 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9d28be8) at kernel/qcoreapplication.cpp:1373
#61 0xb69c9f4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#62 0xb69f5a74 in sendPostedEvents (s=0x9d4dad8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#63 postEventSourceDispatch (s=0x9d4dad8) at kernel/qeventdispatcher_glib.cpp:277
#64 0xb50b6855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#65 0xb50ba668 in ?? () from /lib/libglib-2.0.so.0
#66 0xb50ba848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#67 0xb69f5565 in QEventDispatcherGlib::processEvents (this=0x9d286d8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#68 0xb5f6cbe5 in QGuiEventDispatcherGlib::processEvents (this=0x9d286d8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#69 0xb69c5609 in QEventLoop::processEvents (this=0xbfa2b3e4, flags=) at kernel/qeventloop.cpp:149
#70 0xb69c5a8a in QEventLoop::exec (this=0xbfa2b3e4, flags=...) at kernel/qeventloop.cpp:201
#71 0xb69ca00f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#72 0xb5ea9e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#73 0x08066e91 in main (argc=5, argv=0xbfa2b874) at ../../ktorrent/main.cpp:176

Reported using DrKonqi
Comment 1 Joris Guisson 2010-10-13 19:32:30 UTC

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