Bug 236273

Summary: Ktorrent crashed all by itself
Product: [Applications] ktorrent Reporter: azzaroli
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 azzaroli 2010-05-04 07:36:17 UTC
Application: ktorrent (3.3.4)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-21-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
My PC was just downloading; i was asleep so there was no activity except ktorrent and xchat connected to IRC servers (no operations there anyway);

I've seen when it crashes (it has happened several times) the system unmount the USB HD on which ktorrent is writing and then it automatically remount it; aftern 2 or 3 times it "unmount and remount" the hd appears to be mounted but i cannot browse it and i have to restart the system or i cannot unmount it manually cause it seems to be processes active on it (checked the tasks but i cannot see anything i know in there that could be working on that USB driver).

Thank you :)

DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS" CPU: Quad AMD Athlon(tm) II X4 630 Processor 800.000 MHz Bogomips: 22351.27 Mem: 673/2009M [||||||||||] Diskspace: 1804.57G Free: 279.06G Uptime: 6 hrs 15 mins 49 secs Load: 1.24 1.11 0.90  Procs: 205 Graphic: nVidia Corporation G94 [GeForce 9600 GT] (rev a1) Screen: 1920x1080 (32 bpp) Netinfo: eth0: In: 187.30M Out: 35.36M

The crash can be reproduced every time.

 -- Backtrace:
Application: KTorrent (ktorrent), signal: Bus error
[Current thread is 1 (Thread 0x7fc64e5a4760 (LWP 1991))]

Thread 5 (Thread 0x7fc63affd710 (LWP 2021)):
#0  0x00007fc64a1c5f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc64e0d6aa9 in net::DownloadThread::waitForSocketReady (this=0x179f950) at ../../libbtcore/net/downloadthread.cpp:188
#2  0x00007fc64e0d6b66 in net::DownloadThread::update (this=0x1e26990) at ../../libbtcore/net/downloadthread.cpp:53
#3  0x00007fc64e0d76e9 in net::NetworkThread::run (this=0x179f950) at ../../libbtcore/net/networkthread.cpp:48
#4  0x00007fc64bb49775 in QThreadPrivate::start (arg=0x179f950) at thread/qthread_unix.cpp:248
#5  0x00007fc64b8b99ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fc64a1d269d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fc62b4ea710 (LWP 2022)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc64bb4a72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x179ff20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x179ff20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fc64e0d660c in net::UploadThread::update (this=0x179feb0) at ../../libbtcore/net/uploadthread.cpp:73
#4  0x00007fc64e0d76e9 in net::NetworkThread::run (this=0x179feb0) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007fc64bb49775 in QThreadPrivate::start (arg=0x179feb0) at thread/qthread_unix.cpp:248
#6  0x00007fc64b8b99ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007fc64a1d269d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fc62ace9710 (LWP 2023)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc64bb4a72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x7fc63c1030f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x7fc63c1030f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fc64e0da342 in net::ReverseResolverThread::run (this=0x7fc63c1030e0) at ../../libbtcore/net/reverseresolver.cpp:123
#4  0x00007fc64bb49775 in QThreadPrivate::start (arg=0x7fc63c1030e0) at thread/qthread_unix.cpp:248
#5  0x00007fc64b8b99ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fc64a1d269d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fc63b7fe710 (LWP 2097)):
#0  0x00007fc64a1c5f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc6468594a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fc6468598fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007fc64bc67566 in QEventDispatcherGlib::processEvents (this=0x1a04b80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007fc64bc3c992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fc64bc3cd6c in QEventLoop::exec (this=0x7fc63b7fddb0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fc64bb46d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007fc64bc1d178 in QInotifyFileSystemWatcherEngine::run (this=0x7fc63c783af0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fc64bb49775 in QThreadPrivate::start (arg=0x7fc63c783af0) at thread/qthread_unix.cpp:248
#9  0x00007fc64b8b99ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fc64a1d269d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc64e5a4760 (LWP 1991)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007fc64e0f6844 in bt::ChunkDownload::piece (this=0x7fc63c4d1e30, p=..., ok=@0x7fff4dc5856f) at /usr/include/bits/string3.h:52
#7  0x00007fc64e0fcd3e in bt::Downloader::pieceReceived (this=0x19fd9c0, p=...) at ../../libbtcore/download/downloader.cpp:126
#8  0x00007fc64e0e4681 in bt::Peer::packetReady (this=0x7fc63c59d8d0, packet=0x1ed26a0 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:268
#9  0x00007fc64e0edc78 in bt::PacketReader::update (this=0x7fc63cfcba00) at ../../libbtcore/peer/packetreader.cpp:141
#10 0x00007fc64e0e4045 in bt::Peer::update (this=0x7fc63c59d8d0) at ../../libbtcore/peer/peer.cpp:462
#11 0x00007fc64e0e80d0 in bt::PeerManager::update (this=0x19d4680) at ../../libbtcore/peer/peermanager.cpp:119
#12 0x00007fc64e11625a in bt::TorrentControl::update (this=0x19a20b0) at ../../libbtcore/torrent/torrentcontrol.cpp:150
#13 0x0000000000430d9b in kt::Core::update (this=0x7fc63c003880) at ../../ktorrent/core.cpp:849
#14 0x0000000000436926 in kt::Core::qt_metacall (this=0x7fc63c003880, _c=QMetaObject::InvokeMetaMethod, _id=176, _a=0x7fff4dc58930) at ./core.moc:155
#15 0x00007fc64bc50e3f in QMetaObject::activate (sender=0x7fc63c0038a8, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x600) at kernel/qobject.cpp:3293
#16 0x00007fc64bc4da63 in QObject::event (this=0x7fc63c0038a8, e=0x7fff4dc59080) at kernel/qobject.cpp:1212
#17 0x00007fc64adda22c in QApplicationPrivate::notify_helper (this=0x17d2630, receiver=0x7fc63c0038a8, e=0x7fff4dc59080) at kernel/qapplication.cpp:4300
#18 0x00007fc64ade06fb in QApplication::notify (this=0x7fff4dc593b0, receiver=0x7fc63c0038a8, e=0x7fff4dc59080) at kernel/qapplication.cpp:4183
#19 0x00007fc64d284526 in KApplication::notify (this=0x7fff4dc593b0, receiver=0x7fc63c0038a8, event=0x7fff4dc59080) at ../../kdeui/kernel/kapplication.cpp:302
#20 0x00007fc64bc3e06c in QCoreApplication::notifyInternal (this=0x7fff4dc593b0, receiver=0x7fc63c0038a8, event=0x7fff4dc59080) at kernel/qcoreapplication.cpp:704
#21 0x00007fc64bc6ad42 in QCoreApplication::sendEvent (this=0x17dcb00) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QTimerInfoList::activateTimers (this=0x17dcb00) at kernel/qeventdispatcher_unix.cpp:603
#23 0x00007fc64bc67848 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#24 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#25 0x00007fc6468558c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x00007fc646859748 in ?? () from /lib/libglib-2.0.so.0
#27 0x00007fc6468598fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x00007fc64bc67513 in QEventDispatcherGlib::processEvents (this=0x179d980, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#29 0x00007fc64ae8a46e in QGuiEventDispatcherGlib::processEvents (this=0x7fc641e0cfff, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fc64bc3c992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007fc64bc3cd6c in QEventLoop::exec (this=0x7fff4dc59320, flags=) at kernel/qeventloop.cpp:201
#32 0x00007fc64bc40aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#33 0x0000000000427294 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:172

This bug may be a duplicate of or related to bug 212846.

Possible duplicates by query: bug 236130, bug 235702, bug 235542, bug 235055, bug 232985.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-05-04 18:52:40 UTC

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