Application: ktorrent (3.3.4) KDE Platform Version: 4.4.5 (KDE 4.4.5) Qt Version: 4.6.3 Operating System: Linux 2.6.32-24-generic i686 Distribution: Ubuntu 10.04.1 LTS -- Information about the crash: KTorrent had a few torrent running, one was added rather recently. I wasn't doing anything inperticular. KTorrent craches every time I restart it after a few seconds. The crash does not seem to be reproducible. -- Backtrace: Application: KTorrent (ktorrent), signal: Segmentation fault [Current thread is 1 (Thread 0xb772eaa0 (LWP 1691))] Thread 5 (Thread 0xb24efb70 (LWP 2069)): #0 0x00810422 in __kernel_vsyscall () #1 0x05023b86 in *__GI___poll (fds=0x50b9ff4, nfds=56, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87 #2 0x00272982 in net::DownloadThread::waitForSocketReady (this=0x91eaff8) at ../../libbtcore/net/downloadthread.cpp:188 #3 0x00272a4f in net::DownloadThread::update (this=0x91eaff8) at ../../libbtcore/net/downloadthread.cpp:53 #4 0x002736b8 in net::NetworkThread::run (this=0x91eaff8) at ../../libbtcore/net/networkthread.cpp:48 #5 0x043fd97e in QThreadPrivate::start (arg=0x91eaff8) at thread/qthread_unix.cpp:248 #6 0x0079096e in start_thread (arg=0xb24efb70) at pthread_create.c:300 #7 0x05031a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 4 (Thread 0xb1ceeb70 (LWP 2070)): #0 0x00810422 in __kernel_vsyscall () #1 0x00795015 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122 #2 0x043fe997 in QWaitConditionPrivate::wait (this=0x91eb390, mutex=0x91eb394, time=4294967295) at thread/qwaitcondition_unix.cpp:87 #3 QWaitCondition::wait (this=0x91eb390, mutex=0x91eb394, time=4294967295) at thread/qwaitcondition_unix.cpp:159 #4 0x002723a9 in net::UploadThread::update (this=0x91eb358) at ../../libbtcore/net/uploadthread.cpp:73 #5 0x002736b8 in net::NetworkThread::run (this=0x91eb358) at ../../libbtcore/net/networkthread.cpp:48 #6 0x043fd97e in QThreadPrivate::start (arg=0x91eb358) at thread/qthread_unix.cpp:248 #7 0x0079096e in start_thread (arg=0xb1ceeb70) at pthread_create.c:300 #8 0x05031a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 3 (Thread 0xb14edb70 (LWP 2071)): #0 0x00810422 in __kernel_vsyscall () #1 0x05021e2b in read () at ../sysdeps/unix/syscall-template.S:82 #2 0x04fcb42b in _IO_new_file_underflow (fp=0xb0b11cb0) at fileops.c:606 #3 0x04fccccb in _IO_default_uflow (fp=0xb0b11cb0) at genops.c:440 #4 0x04fce0f8 in *__GI___uflow (fp=0xb0b11cb0) at genops.c:394 #5 0x04fc128c in _IO_getline_info (fp=0xb0b11cb0, buf=0xb14ec688 "-15 Timeout reached\n", n=255, delim=10, extract_delim=1, eof=0x0) at iogetline.c:74 #6 0x04fc11d1 in _IO_getline (fp=0xb0b11cb0, buf=0xb14ec688 "-15 Timeout reached\n", n=255, delim=10, extract_delim=1) at iogetline.c:42 #7 0x04fc021a in _IO_fgets (buf=0xb14ec688 "-15 Timeout reached\n", n=256, fp=0xb0b11cb0) at iofgets.c:58 #8 0x049bacd4 in ?? () from /lib/libnss_mdns4.so.2 #9 0x049bb177 in _nss_mdns4_gethostbyaddr_r () from /lib/libnss_mdns4.so.2 #10 0x0504836b in __gethostbyaddr_r (addr=0x9d06fd4, len=4, type=2, resbuf=0xb14ed044, buffer=0xb14eca80 "\377\002", buflen=1024, result=0xb14ed074, h_errnop=0xb14ed078) at ../nss/getXXbyYY_r.c:253 #11 0x0504d5db in *__GI_getnameinfo (sa=0x9d06fd0, addrlen=16, host=0xb14ed194 "", hostlen=199, serv=0xb14ed0cc "", servlen=199, flags=<value optimized out>) at getnameinfo.c:223 #12 0x0027692b in net::ReverseResolver::resolve (this=0xad4e870, addr=...) at ../../libbtcore/net/reverseresolver.cpp:64 #13 0x002769c3 in net::ReverseResolver::run (this=0xad4e870) at ../../libbtcore/net/reverseresolver.cpp:73 #14 0x00276ac7 in net::ReverseResolverThread::run (this=0x9981048) at ../../libbtcore/net/reverseresolver.cpp:118 #15 0x043fd97e in QThreadPrivate::start (arg=0x9981048) at thread/qthread_unix.cpp:248 #16 0x0079096e in start_thread (arg=0xb14edb70) at pthread_create.c:300 #17 0x05031a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 2 (Thread 0xb61d5b70 (LWP 15052)): #0 0x00a47e16 in *__GI_clock_gettime (clock_id=10797044, tp=0xb61d4fb8) at ../sysdeps/unix/clock_gettime.c:100 #1 0x04523f5b in qt_gettime () at kernel/qcore_unix.cpp:111 #2 0x04529085 in QTimerInfoList::updateCurrentTime (this=0xad8fb3c4) at kernel/qeventdispatcher_unix.cpp:340 #3 0x045290ca in QTimerInfoList::timerWait (this=0xad8fb3c4, tm=...) at kernel/qeventdispatcher_unix.cpp:443 #4 0x04527078 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb61d50cc) at kernel/qeventdispatcher_glib.cpp:136 #5 0x04527105 in timerSourcePrepare (source=0x0, timeout=0xa4bff4) at kernel/qeventdispatcher_glib.cpp:169 #6 0x088f6aca in g_main_context_prepare () from /lib/libglib-2.0.so.0 #7 0x088f6ee9 in ?? () from /lib/libglib-2.0.so.0 #8 0x088f74b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #9 0x04526e6f in QEventDispatcherGlib::processEvents (this=0xc3ec9d8, flags=...) at kernel/qeventdispatcher_glib.cpp:414 #10 0x044f9759 in QEventLoop::processEvents (this=0xb61d5290, flags=) at kernel/qeventloop.cpp:149 #11 0x044f9baa in QEventLoop::exec (this=0xb61d5290, flags=...) at kernel/qeventloop.cpp:201 #12 0x043fafc9 in QThread::exec (this=0xc39a2d0) at thread/qthread.cpp:487 #13 0x044d91db in QInotifyFileSystemWatcherEngine::run (this=0xc39a2d0) at io/qfilesystemwatcher_inotify.cpp:248 #14 0x043fd97e in QThreadPrivate::start (arg=0xc39a2d0) at thread/qthread_unix.cpp:248 #15 0x0079096e in start_thread (arg=0xb61d5b70) at pthread_create.c:300 #16 0x05031a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Thread 1 (Thread 0xb772eaa0 (LWP 1691)): [KCrash Handler] #6 __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:100 #7 0x0699e016 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2 #8 0x069b5167 in QCA::Hash::update(QByteArray const&) () from /usr/lib/libqca.so.2 #9 0x0025c18f in bt::SHA1HashGen::update (this=0xc3590b0, data=0xb5877bc5 "\206D\244\066\245\273\314\236\225\370\333\320\245\212\306\331\030\322\276A\256{\245\024\r\033c)z\344y\275f|i\255\310\066\204`n\024\216h4\030\216\202\022\225\226\023@\341\221CC\003\235\030\360`\rJi\334\370%r\253\070\277\034\060\244\336\n\241\374\001\224%\t\245\257X\001\022O\f$\345\315T\321\244m\312\273\232T\236\242\330T\305=E\330P\263\373-\273H\272\244\306F`\n1:o\231;\213af\023\004\342\356t\345\355\363\rCs\267\276b\313\323\273c29\373Q(\367P\312\336\315\347\215\r\364c.ZJcZM~\375\257\302\347\065\313\034A>\310 {\364\267\343e\334]\317\224\302bm\t\377\351#\210\325\276\321"..., len=16384) at ../../libbtcore/util/sha1hashgen.cpp:240 #10 0x00294b7e in bt::ChunkDownload::updateHash (this=0xc359040) at ../../libbtcore/download/chunkdownload.cpp:579 #11 0x0029640d in bt::ChunkDownload::piece (this=0xc359040, p=..., ok=@0xbff507bf) at ../../libbtcore/download/chunkdownload.cpp:145 #12 0x0029caf9 in bt::Downloader::pieceReceived (this=0xc3eb690, p=...) at ../../libbtcore/download/downloader.cpp:126 #13 0x0028441f in bt::PeerManager::pieceReceived (this=0xc471578, p=...) at ../../libbtcore/peer/peermanager.cpp:677 #14 0x00282abf in bt::Peer::packetReady (this=0xcdb3f18, packet=0xaf570478 "\a", len=16393) at ../../libbtcore/peer/peer.cpp:268 #15 0x0028cba9 in bt::PacketReader::update (this=0xbe5b270) at ../../libbtcore/peer/packetreader.cpp:141 #16 0x00282409 in bt::Peer::update (this=0xcdb3f18) at ../../libbtcore/peer/peer.cpp:462 #17 0x00286886 in bt::PeerManager::update (this=0xc471578) at ../../libbtcore/peer/peermanager.cpp:119 #18 0x002b897d in bt::TorrentControl::update (this=0xbc35ff0) at ../../libbtcore/torrent/torrentcontrol.cpp:150 #19 0x08071a63 in kt::Core::update (this=0x92b0f18) at ../../ktorrent/core.cpp:849 #20 0x08077308 in kt::Core::qt_metacall (this=0x92b0f18, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbff50b3c) at ./core.moc:155 #21 0x0450047a in QMetaObject::metacall (object=0x92b0f18, cl=3826, idx=21, argv=0xbff50b3c) at kernel/qmetaobject.cpp:237 #22 0x0450efbb in QMetaObject::activate (sender=0x92b0f2c, m=0x46105a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3295 #23 0x04561327 in QTimer::timeout (this=0x92b0f2c) at .moc/release-shared/moc_qtimer.cpp:134 #24 0x04516e4e in QTimer::timerEvent (this=0x92b0f2c, e=0xbff51070) at kernel/qtimer.cpp:271 #25 0x0450ba64 in QObject::event (this=0x92b0f2c, e=0xcc11a50) at kernel/qobject.cpp:1212 #26 0x0706ee8c in QApplicationPrivate::notify_helper (this=0x920d5c8, receiver=0x92b0f2c, e=0xbff51070) at kernel/qapplication.cpp:4302 #27 0x07075a0e in QApplication::notify (this=0xbff513c4, receiver=0x92b0f2c, e=0xbff51070) at kernel/qapplication.cpp:3706 #28 0x00cb440a in KApplication::notify (this=0xbff513c4, receiver=0x92b0f2c, event=0xbff51070) at ../../kdeui/kernel/kapplication.cpp:302 #29 0x044fb13b in QCoreApplication::notifyInternal (this=0xbff513c4, receiver=0x92b0f2c, event=0xbff51070) at kernel/qcoreapplication.cpp:726 #30 0x0452a5c6 in QCoreApplication::sendEvent (this=0x9212f74) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #31 QTimerInfoList::activateTimers (this=0x9212f74) at kernel/qeventdispatcher_unix.cpp:603 #32 0x04527177 in timerSourceDispatch (source=0x9212fa8) at kernel/qeventdispatcher_glib.cpp:184 #33 idleTimerSourceDispatch (source=0x9212fa8) at kernel/qeventdispatcher_glib.cpp:231 #34 0x088f35e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #35 0x088f72d8 in ?? () from /lib/libglib-2.0.so.0 #36 0x088f74b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #37 0x04526e35 in QEventDispatcherGlib::processEvents (this=0x91e9e78, flags=...) at kernel/qeventdispatcher_glib.cpp:412 #38 0x0712ee15 in QGuiEventDispatcherGlib::processEvents (this=0x91e9e78, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #39 0x044f9759 in QEventLoop::processEvents (this=0xbff51334, flags=) at kernel/qeventloop.cpp:149 #40 0x044f9baa in QEventLoop::exec (this=0xbff51334, flags=...) at kernel/qeventloop.cpp:201 #41 0x044fee3f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003 #42 0x0706ef27 in QApplication::exec () at kernel/qapplication.cpp:3581 #43 0x08067a51 in main (argc=3, argv=0xbff51794) at ../../ktorrent/main.cpp:172 Reported using DrKonqi
Correction: The crash is reproducible. However, I stopped the two active downloads and moved the data to another disk. After that I could start the downloads again without KTorrent crashing.
*** This bug has been marked as a duplicate of bug 227400 ***