Bug 303828 - KTorrent crashed when I selected files to download in existing partially downloaded torrent
Summary: KTorrent crashed when I selected files to download in existing partially down...
Status: RESOLVED DUPLICATE of bug 299536
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-19 22:43 UTC by Andrey
Modified: 2012-07-19 23:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2012-07-19 22:43:30 UTC
Application: ktorrent (4.2)
KDE Platform Version: 4.8.3 (4.8.3) (Compiled from sources)
Qt Version: 4.8.2
Operating System: Linux 3.2.12-gentoo i686
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
1. Start KTorrent
2. Click on unselected files in the existsing torrent (summary ~10 Gb)
3. Start downloading at 70-90 Mbit/s
4. Wait ~20 minutes
5. ...
6. Crash!

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

Thread 8 (Thread 0xb4c0ab70 (LWP 18055)):
#0  0xb771d424 in __kernel_vsyscall ()
#1  0x4b156aa3 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x4b0ebfc5 in _L_lock_11785 () from /lib/libc.so.6
#3  0x4b0ea898 in __GI___libc_free (mem=0xec502f8) at malloc.c:3736
#4  0x4b3bae0f in operator delete (ptr=0xec502f8) at /var/tmp/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libstdc++-v3/libsupc++/del_op.cc:48
#5  0x43881d94 in deallocate (__p=0xec502f8, this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/ext/new_allocator.h:100
#6  _M_put_node (__p=0xec502f8, this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/bits/stl_list.h:356
#7  _M_erase (__position=..., this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/bits/stl_list.h:1600
#8  pop_front (this=0xace439c) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/bits/stl_list.h:1011
#9  bt::BufferPool::get (this=0x8ea4ff0, min_size=1500) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/util/bufferpool.cpp:57
#10 0x43892960 in net::ServerSocket::readyToRead (this=0x8f12c18) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/serversocket.cpp:135
#11 0xb4c09cb8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 7 (Thread 0xb5438b70 (LWP 18056)):
#0  0xb771d424 in __kernel_vsyscall ()
#1  0x4b2a39ac in pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb31aec04 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/qt4/libQtWebKit.so.4
#3  0xb31aecff in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/qt4/libQtWebKit.so.4
#4  0x4b29fd4f in start_thread (arg=0xb5438b70) at pthread_create.c:301
#5  0x4b14916e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 6 (Thread 0xb20adb70 (LWP 18057)):
#0  0x4b57dd84 in g_main_context_query (context=0xabdf120, max_priority=2147483647, timeout=0xb20ad1cc, fds=0xabdf1b0, n_fds=1) at gmain.c:2827
#1  0x4b57e8bc in g_main_context_iterate (context=0xabdf120, block=1, dispatch=1, self=) at gmain.c:3071
#2  0x4b57ee9a in g_main_context_iteration (context=0xabdf120, may_block=1) at gmain.c:3152
#3  0xb744ad3f in QEventDispatcherGlib::processEvents (this=0xabdf770, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0xb74181cc in QEventLoop::processEvents (this=0xb20ad308, flags=...) at kernel/qeventloop.cpp:149
#5  0xb74184c1 in QEventLoop::exec (this=0xb20ad308, flags=...) at kernel/qeventloop.cpp:204
#6  0xb730830c in QThread::exec (this=0xabdeba8) at thread/qthread.cpp:501
#7  0xb730845b in QThread::run (this=0xabdeba8) at thread/qthread.cpp:568
#8  0xb730b660 in QThreadPrivate::start (arg=0xabdeba8) at thread/qthread_unix.cpp:307
#9  0x4b29fd4f in start_thread (arg=0xb20adb70) at pthread_create.c:301
#10 0x4b14916e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 5 (Thread 0xae206b70 (LWP 18069)):
#0  0xb771d424 in __kernel_vsyscall ()
#1  0x4b145ab7 in syscall () at ../sysdeps/unix/sysv/linux/i386/syscall.S:30
#2  0xb7309f57 in _q_futex (timeout=0x0, val=2, op=0, addr=0x8da46b8, addr2=<optimized out>, val2=<optimized out>) at thread/qmutex_unix.cpp:99
#3  QMutexPrivate::wait (this=0x8da46b8, timeout=-1) at thread/qmutex_unix.cpp:113
#4  0xb7305f18 in QMutex::lock (this=0x8da46a0) at thread/qmutex.cpp:164
#5  0x4388c21e in net::SocketMonitor::lock (this=0x811da60) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/socketmonitor.cpp:108
#6  0x4388de34 in update (this=0x8da46e0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/downloadthread.cpp:51
#7  net::DownloadThread::update (this=0x8da46e0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/downloadthread.cpp:46
#8  0x4388e0a8 in net::NetworkThread::run (this=0x8da46e0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/networkthread.cpp:48
#9  0xb730b660 in QThreadPrivate::start (arg=0x8da46e0) at thread/qthread_unix.cpp:307
#10 0x4b29fd4f in start_thread (arg=0xae206b70) at pthread_create.c:301
#11 0x4b14916e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0xada05b70 (LWP 18070)):
[KCrash Handler]
#7  0xb771d424 in __kernel_vsyscall ()
#8  0x4b0a6e7f in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x4b0a8656 in __GI_abort () at abort.c:93
#10 0x4b0e028a in __libc_message (do_abort=2, fmt=0x4b1b2d3c "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:198
#11 0x4b0e6ab0 in malloc_printerr (action=<optimized out>, str=<optimized out>, ptr=0xbe7bdc0) at malloc.c:6283
#12 0x4b0e7746 in _int_free (av=0x4b1ee3e0, p=0xbe7bdb8) at malloc.c:4795
#13 0x4b0ea89f in __GI___libc_free (mem=0xbe7bdc0) at malloc.c:3738
#14 0x4b3bae0f in operator delete (ptr=0xbe7bdc0) at /var/tmp/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libstdc++-v3/libsupc++/del_op.cc:48
#15 0x4388964f in deallocate (__p=0xbe7bdc0, this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/ext/new_allocator.h:100
#16 _M_put_node (__p=0xbe7bdc0, this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/bits/stl_list.h:356
#17 _M_erase (__position=..., this=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/bits/stl_list.h:1600
#18 pop_front (this=0xbe7bdc0) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/bits/stl_list.h:1011
#19 net::PacketSocket::write (this=0xbe7bd98, max=0, now=1342735209061) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/packetsocket.cpp:123
#20 0x4388f183 in net::SocketGroup::processUnlimited (this=0x8da4ba0, up=true, now=1342735209061) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/socketgroup.cpp:51
#21 0x4388f606 in net::SocketGroup::process (this=0x8da4ba0, up=true, now=1342735209061, global_allowance=@0xada0528c) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/socketgroup.cpp:192
#22 0x4388f70f in net::SocketGroup::upload (this=0x8da4ba0, global_allowance=@0xada0528c, now=1342735209061) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/socketgroup.cpp:115
#23 0x4388d123 in net::UploadThread::doGroup (this=0x8da49d0, g=0x8da4ba0, allowance=@0xada0528c, now=1342735209061) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/uploadthread.cpp:106
#24 0x4388e3b1 in net::NetworkThread::doGroups (this=0x8da49d0, num_ready=21, now=1342735209061, limit=0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/networkthread.cpp:155
#25 0x4388d7f2 in update (this=0x8da49d0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/uploadthread.cpp:81
#26 net::UploadThread::update (this=0x8da49d0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/uploadthread.cpp:43
#27 0x4388e0a8 in net::NetworkThread::run (this=0x8da49d0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/networkthread.cpp:48
#28 0xb730b660 in QThreadPrivate::start (arg=0x8da49d0) at thread/qthread_unix.cpp:307
#29 0x4b29fd4f in start_thread (arg=0xada05b70) at pthread_create.c:301
#30 0x4b14916e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xad204b70 (LWP 18071)):
#0  0xb771d424 in __kernel_vsyscall ()
#1  0x4b2a39ac in pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0xb730bbc8 in wait (time=4294967295, this=0xb2db3f8) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0xb3d52dc, mutex=0xb3d52d8, time=4294967295) at thread/qwaitcondition_unix.cpp:158
#4  0x43891117 in net::ReverseResolverThread::run (this=0xb3d52d0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/reverseresolver.cpp:124
#5  0xb730b660 in QThreadPrivate::start (arg=0xb3d52d0) at thread/qthread_unix.cpp:307
#6  0x4b29fd4f in start_thread (arg=0xad204b70) at pthread_create.c:301
#7  0x4b14916e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xb0b44b70 (LWP 18911)):
#0  0xb771d424 in __kernel_vsyscall ()
#1  0x4b156aa3 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x4b0ebfc5 in _L_lock_11785 () from /lib/libc.so.6
#3  0x4b0ea898 in __GI___libc_free (mem=0xb31c4a8) at malloc.c:3736
#4  0x4b584e5b in standard_free (mem=0xb31c4a8) at gmem.c:101
#5  0x4b585026 in g_free (mem=0xb31c4a8) at gmem.c:263
#6  0x4b57a241 in g_source_unref_internal (source=0xb31c4a8, context=0xba433c0, have_lock=0) at gmain.c:1702
#7  0xb744b0f5 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0xb00f6c0, __in_chrg=<optimized out>) at kernel/qeventdispatcher_glib.cpp:375
#8  0xb744b242 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0xb00f6c0, __in_chrg=<optimized out>) at kernel/qeventdispatcher_glib.cpp:403
#9  0xb730a649 in QThreadPrivate::finish (arg=0x8f88850) at thread/qthread_unix.cpp:339
#10 0xb730b668 in ~__pthread_cleanup_class (this=<synthetic pointer>, __in_chrg=<optimized out>) at /usr/include/pthread.h:545
#11 QThreadPrivate::start (arg=0x8f88850) at thread/qthread_unix.cpp:309
#12 0x4b29fd4f in start_thread (arg=0xb0b44b70) at pthread_create.c:301
#13 0x4b14916e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb624e930 (LWP 18053)):
#0  0xb771d424 in __kernel_vsyscall ()
#1  0x4b156aa3 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x4b0ebfc5 in _L_lock_11785 () from /lib/libc.so.6
#3  0x4b0ea898 in __GI___libc_free (mem=0xb9ce008) at malloc.c:3736
#4  0x4b3bae0f in operator delete (ptr=0xb9ce008) at /var/tmp/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libstdc++-v3/libsupc++/del_op.cc:48
#5  0xb765ece6 in cleanup (pointer=0xb9ce008) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#6  ~QScopedPointer (this=0xbfb50a28, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#7  QHostAddress::~QHostAddress (this=0xbfb50a28, __in_chrg=<optimized out>) at kernel/qhostaddress.cpp:563
#8  0x43887b09 in net::Address::~Address (this=0xbfb50a24, __in_chrg=<optimized out>) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/net/address.cpp:80
#9  0x438adc8a in ~pair (this=<optimized out>, __in_chrg=<optimized out>) at /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include/g++-v4/bits/stl_pair.h:88
#10 bt::UTPex::visit (this=0xbcc77a0, p=0xbbe1c28) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/peer/utpex.cpp:85
#11 0x438a6aec in bt::PeerManager::visit (this=0x9973ab0, visitor=...) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/peer/peermanager.cpp:580
#12 0x438ae07f in bt::UTPex::update (this=0xbcc77a0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/peer/utpex.cpp:115
#13 0x438a1b20 in bt::Peer::update (this=0xac179aa0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/peer/peer.cpp:550
#14 0x438a7cfc in bt::PeerManager::Private::update (this=0x9b87678) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/peer/peermanager.cpp:685
#15 0x438a7e0e in bt::PeerManager::update (this=0x9973ab0) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/peer/peermanager.cpp:137
#16 0x438ddfb2 in bt::TorrentControl::update (this=0x9b87760) at /var/tmp/portage/net-libs/libktorrent-1.2.0/work/libktorrent-1.2.0/src/torrent/torrentcontrol.cpp:162
#17 0x0806e51e in kt::Core::update (this=0x8e91570) at /var/tmp/portage/net-p2p/ktorrent-4.2.0/work/ktorrent-4.2.0/ktorrent/core.cpp:1046
#18 0x080758cc in kt::Core::qt_static_metacall (_o=0x8e91570, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfb50d0c) at /var/tmp/portage/net-p2p/ktorrent-4.2.0/work/ktorrent-4.2.0_build/ktorrent/core.moc:141
#19 0xb7431736 in QMetaObject::activate (sender=0x8e91584, m=0xb757c4b8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3547
#20 0xb7481705 in QTimer::timeout (this=0x8e91584) at .moc/release-shared/moc_qtimer.cpp:148
#21 0xb7438746 in QTimer::timerEvent (this=0x8e91584, e=0xbfb51200) at kernel/qtimer.cpp:280
#22 0xb742f5d4 in QObject::event (this=0x8e91584, e=0xbfb51200) at kernel/qobject.cpp:1157
#23 0xb695ee2c in QApplicationPrivate::notify_helper (this=0x8de7b70, receiver=0x8e91584, e=0xbfb51200) at kernel/qapplication.cpp:4551
#24 0xb696383f in QApplication::notify (this=0xbfb51200, receiver=0x8e91584, e=0xbfb51200) at kernel/qapplication.cpp:3933
#25 0x0807c35e in kt::App::notify (this=0xbfb51850, receiver=0x8e91584, event=0xbfb51200) at /var/tmp/portage/net-p2p/ktorrent-4.2.0/work/ktorrent-4.2.0/ktorrent/app.cpp:99
#26 0xb74196cd in QCoreApplication::notifyInternal (this=0xbfb51850, receiver=0x8e91584, event=0xbfb51200) at kernel/qcoreapplication.cpp:915
#27 0xb744d428 in sendEvent (event=0xbfb51200, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#28 QTimerInfoList::activateTimers (this=0x8ddf874) at kernel/qeventdispatcher_unix.cpp:611
#29 0xb744a638 in timerSourceDispatch (source=0x8ddf840) at kernel/qeventdispatcher_glib.cpp:186
#30 timerSourceDispatch (source=0x8ddf840) at kernel/qeventdispatcher_glib.cpp:180
#31 0xb744a672 in idleTimerSourceDispatch (source=0x8de70e0) at kernel/qeventdispatcher_glib.cpp:233
#32 0x4b57e454 in g_main_dispatch (context=0x8ddd5e0) at gmain.c:2441
#33 g_main_context_dispatch (context=0x8ddd5e0) at gmain.c:3011
#34 0x4b57ec98 in g_main_context_iterate (context=0x8ddd5e0, block=1264115616, dispatch=1, self=) at gmain.c:3089
#35 0x4b57ee9a in g_main_context_iteration (context=0x8ddd5e0, may_block=1) at gmain.c:3152
#36 0xb744ad21 in QEventDispatcherGlib::processEvents (this=0x8d9f8b8, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#37 0xb6a0d75a in QGuiEventDispatcherGlib::processEvents (this=0x8d9f8b8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0xb74181cc in QEventLoop::processEvents (this=0xbfb51498, flags=...) at kernel/qeventloop.cpp:149
#39 0xb74184c1 in QEventLoop::exec (this=0xbfb51498, flags=...) at kernel/qeventloop.cpp:204
#40 0xb741d73a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#41 0xb695cdc4 in QApplication::exec () at kernel/qapplication.cpp:3812
#42 0x0806a458 in main (argc=5, argv=0xbfb51924) at /var/tmp/portage/net-p2p/ktorrent-4.2.0/work/ktorrent-4.2.0/ktorrent/main.cpp:177

Possible duplicates by query: bug 302750, bug 302581, bug 302042, bug 301155, bug 300614.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-07-19 23:23:23 UTC

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