Bug 225310

Summary: ktorrent too many files open segmentation fault
Product: [Applications] ktorrent Reporter: jarbinks
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description jarbinks 2010-02-02 21:33:56 UTC
Application that crashed: ktorrent
Version of the application: 3.2.4
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-17-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Ktorrent stopped a torrent like 10 minutes before it crashed and said there was too many files opened. Maybe because the torrent had more than 20000 seeders and 40000 leechers ? Then it crashed when it was in the background, I haven't done anything to disturb it. Crashed and said 'segmentation fault'

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

Thread 3 (Thread 0xb4d63b70 (LWP 2419)):
#0  net::DownloadThread::update (this=0x99d4040) at ../../libbtcore/net/downloadthread.cpp:70
#1  0x00c02d38 in net::NetworkThread::run (this=0x99d4040) at ../../libbtcore/net/networkthread.cpp:48
#2  0x03c47e32 in QThreadPrivate::start (arg=0x99d4040) at thread/qthread_unix.cpp:188
#3  0x00ec580e in start_thread (arg=0xb4d63b70) at pthread_create.c:300
#4  0x007c18de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb4562b70 (LWP 2420)):
#0  0x00f18422 in __kernel_vsyscall ()
#1  0x00ec9e15 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x007ce87d in __pthread_cond_wait (cond=0x99d45d0, mutex=0x99d45b8) at forward.c:139
#3  0x03c48e67 in QWaitConditionPrivate::wait (this=0x99d4328, mutex=0x99d432c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x99d4328, mutex=0x99d432c, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x00c01a6d in net::UploadThread::update (this=0x99d42f0) at ../../libbtcore/net/uploadthread.cpp:73
#6  0x00c02d38 in net::NetworkThread::run (this=0x99d42f0) at ../../libbtcore/net/networkthread.cpp:48
#7  0x03c47e32 in QThreadPrivate::start (arg=0x99d42f0) at thread/qthread_unix.cpp:188
#8  0x00ec580e in start_thread (arg=0xb4562b70) at pthread_create.c:300
#9  0x007c18de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb77b5700 (LWP 2347)):
[KCrash Handler]
#6  memcpy () at ../sysdeps/i386/i686/memcpy.S:75
#7  0xbfc43f0c in ?? ()
#8  0x00a517bb in QCA::Hash::update(char const*, int) () from /usr/lib/libqca.so.2
#9  0x00bed594 in bt::SHA1HashGen::update (this=0xbd619c4, data=0xb2bc4000 "\023\346\301\004\263\264<\377\356e\345\354S", len=16384) at ../../libbtcore/util/sha1hashgen.cpp:238
#10 0x00c22eb8 in bt::ChunkDownload::updateHash (this=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:562
#11 0x00c23d30 in bt::ChunkDownload::piece (this=0xbd61940, p=..., ok=@0xbfc440af) at ../../libbtcore/download/chunkdownload.cpp:133
#12 0x00c2a8ff in bt::Downloader::pieceReceived (this=0xa2d8358, p=...) at ../../libbtcore/download/downloader.cpp:133
#13 0x00c12b0f in bt::PeerManager::pieceReceived (this=0xa36f2e8, p=...) at ../../libbtcore/peer/peermanager.cpp:669
#14 0x00c1149f in bt::Peer::packetReady (this=0xbecdd88, packet=0xb1c9a118 "\a", len=16393) at ../../libbtcore/peer/peer.cpp:269
#15 0x00c1af16 in bt::PacketReader::update (this=0xa8fbd70) at ../../libbtcore/peer/packetreader.cpp:131
#16 0x00c111d9 in bt::Peer::update (this=0xbecdd88) at ../../libbtcore/peer/peer.cpp:474
#17 0x00c14f0e in bt::PeerManager::update (this=0xa36f2e8) at ../../libbtcore/peer/peermanager.cpp:117
#18 0x00c4a3be in bt::TorrentControl::update (this=0xa516c78) at ../../libbtcore/torrent/torrentcontrol.cpp:178
#19 0x0806d1e7 in kt::Core::update (this=0x9ac5350) at ../../ktorrent/core.cpp:877
#20 0x08072c1d in kt::Core::qt_metacall (this=0x9ac5350, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbfc4442c) at ./core.moc:148
#21 0x03d4e263 in QMetaObject::activate (sender=0x9ac5364, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#22 0x03d4eec2 in QMetaObject::activate (sender=0x9ac5364, m=0x3e29904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#23 0x03d88667 in QTimer::timeout (this=0x9ac5364) at .moc/release-shared/moc_qtimer.cpp:128
#24 0x03d539ae in QTimer::timerEvent (this=0x9ac5364, e=0xbfc448c0) at kernel/qtimer.cpp:261
#25 0x03d483bf in QObject::event (this=0x9ac5364, e=0xbfc448c0) at kernel/qobject.cpp:1075
#26 0x05e2df54 in QApplicationPrivate::notify_helper (this=0x99f8588, receiver=0x9ac5364, e=0xbfc448c0) at kernel/qapplication.cpp:4056
#27 0x05e3567c in QApplication::notify (this=0xbfc44c14, receiver=0x9ac5364, e=0xbfc448c0) at kernel/qapplication.cpp:3603
#28 0x010ebbfa in KApplication::notify (this=0xbfc44c14, receiver=0x9ac5364, event=0xbfc448c0) at ../../kdeui/kernel/kapplication.cpp:302
#29 0x03d386cb in QCoreApplication::notifyInternal (this=0xbfc44c14, receiver=0x9ac5364, event=0xbfc448c0) at kernel/qcoreapplication.cpp:610
#30 0x03d657ce in QCoreApplication::sendEvent (this=0x9a031bc) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#31 QTimerInfoList::activateTimers (this=0x9a031bc) at kernel/qeventdispatcher_unix.cpp:572
#32 0x03d630e0 in timerSourceDispatch (source=0x9a03188) at kernel/qeventdispatcher_glib.cpp:165
#33 0x0563de88 in g_main_dispatch (context=0x9a02a90) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:1960
#34 IA__g_main_context_dispatch (context=0x9a02a90) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2513
#35 0x05641730 in g_main_context_iterate (context=0x9a02a90, block=<value optimized out>, dispatch=1, self=0x9a0e930) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2591
#36 0x05641863 in IA__g_main_context_iteration (context=0x9a02a90, may_block=1) at /build/buildd/glib2.0-2.22.3/glib/gmain.c:2654
#37 0x03d6302c in QEventDispatcherGlib::processEvents (this=0x99d1ee8, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#38 0x05ecebe5 in QGuiEventDispatcherGlib::processEvents (this=0x99d1ee8, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#39 0x03d36c79 in QEventLoop::processEvents (this=0xbfc44b84, flags=) at kernel/qeventloop.cpp:149
#40 0x03d370ca in QEventLoop::exec (this=0xbfc44b84, flags=...) at kernel/qeventloop.cpp:201
#41 0x03d3953f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#42 0x05e2ddd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#43 0x08065b98 in main (argc=1, argv=0xbfc44fd4) at ../../ktorrent/main.cpp:171

This bug may be a duplicate of or related to bug 207596

Reported using DrKonqi
Comment 1 Joris Guisson 2010-02-03 08:32:42 UTC

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