Bug 259814

Summary: Ktorrent crashed in the background while seeding
Product: [Applications] ktorrent Reporter: rele
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Another crash
Another crash
Another crash

Description rele 2010-12-14 08:41:25 UTC
Application: ktorrent (4.0.4)
KDE Platform Version: 4.5.4 (KDE 4.5.4) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.36-gentoo-r5 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
There was no downloading torrent involved, so it crashed while seeding overnight.

I saw this "ImportError: No module named libstdcxx.v6.printers" quite often in crashes of different applications, can I recompile something to fix the root cause?

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/4.5.1/libstdc++.so.6.0.14-gdb.py", line 59, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named libstdcxx.v6.printers
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f77ee13b7a0 (LWP 4584))]

Thread 4 (Thread 0x7f77de097710 (LWP 4586)):
#0  0x00007f77ea472d63 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f77edcc1713 in dht::RPCServerThread::run (this=0x252b430) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/dht/rpcserver.cpp:107
#2  0x00007f77ebdd3c95 in QThreadPrivate::start (arg=0x252b430) at thread/qthread_unix.cpp:248
#3  0x00007f77ebb44e3c in start_thread () from /lib/libpthread.so.0
#4  0x00007f77ea47ae4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f77c9b30710 (LWP 4655)):
#0  0x00007f77eac2a2a2 in std::_Rb_tree_insert_and_rebalance (__insert_left=<value optimized out>, __x=<value optimized out>, __p=<value optimized out>, __header=<value optimized out>)
    at /mnt/bigdata/ebuild/working/portage/sys-devel/gcc-4.5.1-r1/work/gcc-4.5.1/libstdc++-v3/src/tree.cc:269
#1  0x00007f77edc7167c in std::_Rb_tree<int, std::pair<int const, QSharedPointer<net::PollClient> >, std::_Select1st<std::pair<int const, QSharedPointer<net::PollClient> > >, std::less<int>, std::allocator<std::pair<int const, QSharedPointer<net::PollClient> > > >::_M_insert_ (this=0x2495288, __x=<value optimized out>, __p=<value optimized out>, __v=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4/bits/stl_tree.h:901
#2  0x00007f77edc71757 in std::_Rb_tree<int, std::pair<int const, QSharedPointer<net::PollClient> >, std::_Select1st<std::pair<int const, QSharedPointer<net::PollClient> > >, std::less<int>, std::allocator<std::pair<int const, QSharedPointer<net::PollClient> > > >::_M_insert_unique (this=0x2495288, __v=<value optimized out>)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4/bits/stl_tree.h:1196
#3  0x00007f77edc7186b in std::_Rb_tree<int, std::pair<int const, QSharedPointer<net::PollClient> >, std::_Select1st<std::pair<int const, QSharedPointer<net::PollClient> > >, std::less<int>, std::allocator<std::pair<int const, QSharedPointer<net::PollClient> > > >::_M_insert_unique_ (this=0x2495288, __position=<value optimized out>, __v=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4/bits/stl_tree.h:1268
#4  0x00007f77edc71161 in std::map<int, QSharedPointer<net::PollClient>, std::less<int>, std::allocator<std::pair<int const, QSharedPointer<net::PollClient> > > >::insert (this=0x2495260, pc=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4/bits/stl_map.h:541
#5  std::map<int, QSharedPointer<net::PollClient>, std::less<int>, std::allocator<std::pair<int const, QSharedPointer<net::PollClient> > > >::operator[] (this=0x2495260, pc=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4/bits/stl_map.h:451
#6  net::Poll::add (this=0x2495260, pc=...) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/poll.cpp:74
#7  0x00007f77edc6dd97 in net::DownloadThread::waitForSocketReady (this=0x2495250)
    at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/downloadthread.cpp:114
#8  0x00007f77edc6df16 in net::DownloadThread::update (this=0x2495250) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/downloadthread.cpp:48
#9  0x00007f77edc6e109 in net::NetworkThread::run (this=0x2495250) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/networkthread.cpp:48
#10 0x00007f77ebdd3c95 in QThreadPrivate::start (arg=0x2495250) at thread/qthread_unix.cpp:248
#11 0x00007f77ebb44e3c in start_thread () from /lib/libpthread.so.0
#12 0x00007f77ea47ae4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f77c932f710 (LWP 4656)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f77ebdd3a5a in thread_sleep (ti=0x7f77c932ed70) at thread/qthread_unix.cpp:398
#2  0x00007f77ebdd3bb0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007f77edc6d868 in net::UploadThread::update (this=0x24958c0) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/uploadthread.cpp:89
#4  0x00007f77edc6e109 in net::NetworkThread::run (this=0x24958c0) at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/net/networkthread.cpp:48
#5  0x00007f77ebdd3c95 in QThreadPrivate::start (arg=0x24958c0) at thread/qthread_unix.cpp:248
#6  0x00007f77ebb44e3c in start_thread () from /lib/libpthread.so.0
#7  0x00007f77ea47ae4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
The current source language is "auto; currently c++".

Thread 1 (Thread 0x7f77ee13b7a0 (LWP 4584)):
[KCrash Handler]
#6  0x00007f77eac2a5db in std::_Rb_tree_rebalance_for_erase (__z=0x5507d00, __header=...) at /mnt/bigdata/ebuild/working/portage/sys-devel/gcc-4.5.1-r1/work/gcc-4.5.1/libstdc++-v3/src/tree.cc:329
#7  0x00007f77edcc10c3 in std::_Rb_tree<unsigned char, std::pair<unsigned char const, dht::RPCCall*>, std::_Select1st<std::pair<unsigned char const, dht::RPCCall*> >, std::less<unsigned char>, std::allocator<std::pair<unsigned char const, dht::RPCCall*> > >::erase (this=0x252a870, mtid=84 'T') at /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4/bits/stl_tree.h:1400
#8  std::map<unsigned char, dht::RPCCall*, std::less<unsigned char>, std::allocator<std::pair<unsigned char const, dht::RPCCall*> > >::erase (this=0x252a870, mtid=84 'T')
    at /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4/bits/stl_map.h:588
#9  bt::PtrMap<unsigned char, dht::RPCCall>::erase (this=0x252a870, mtid=84 'T') at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/util/ptrmap.h:175
#10 dht::RPCServer::timedOut (this=0x252a870, mtid=84 'T') at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4/src/dht/rpcserver.cpp:300
#11 0x00007f77edcc53e4 in dht::RPCCall::qt_metacall (this=0x5144540, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff8b322a80)
    at /mnt/bigdata/ebuild/working/portage/net-libs/libktorrent-1.0.4/work/libktorrent-1.0.4_build/src/rpccall.moc:143
#12 0x00007f77ebecbb07 in QMetaObject::activate (sender=0x5144558, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#13 0x00007f77ebec9136 in QObject::event (this=0x5144558, e=0x7fff8b3231b0) at kernel/qobject.cpp:1204
#14 0x00007f77eb08587c in QApplicationPrivate::notify_helper (this=0x24c5fc0, receiver=0x5144558, e=0x7fff8b3231b0) at kernel/qapplication.cpp:4302
#15 0x00007f77eb08981a in QApplication::notify (this=<value optimized out>, receiver=0x5144558, e=0x7fff8b3231b0) at kernel/qapplication.cpp:4185
#16 0x0000000000439851 in kt::App::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>)
    at /mnt/bigdata/ebuild/working/portage/net-p2p/ktorrent-4.0.4/work/ktorrent-4.0.4/ktorrent/app.cpp:97
#17 0x00007f77ebeb7a0b in QCoreApplication::notifyInternal (this=0x7fff8b3234d0, receiver=0x5144558, event=0x7fff8b3231b0) at kernel/qcoreapplication.cpp:726
#18 0x00007f77ebee2ca2 in QCoreApplication::sendEvent (this=0x24c2300) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#19 QTimerInfoList::activateTimers (this=0x24c2300) at kernel/qeventdispatcher_unix.cpp:603
#20 0x00007f77ebedff78 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#21 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#22 0x00007f77e63241da in g_main_dispatch (context=0x24c1520) at gmain.c:1960
#23 IA__g_main_context_dispatch (context=0x24c1520) at gmain.c:2513
#24 0x00007f77e63249b8 in g_main_context_iterate (context=0x24c1520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#25 0x00007f77e6324c1f in IA__g_main_context_iteration (context=0x24c1520, may_block=1) at gmain.c:2654
#26 0x00007f77ebee05da in QEventDispatcherGlib::processEvents (this=0x24c9ef0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#27 0x00007f77eb125406 in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007f77ebeb6db2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007f77ebeb7014 in QEventLoop::exec (this=0x7fff8b323430, flags=...) at kernel/qeventloop.cpp:201
#30 0x00007f77ebebb45b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#31 0x00000000004293e2 in main (argc=5, argv=0x7fff8b324288) at /mnt/bigdata/ebuild/working/portage/net-p2p/ktorrent-4.0.4/work/ktorrent-4.0.4/ktorrent/main.cpp:176
The current source language is "auto; currently asm".

Reported using DrKonqi
Comment 1 Alexey Shildyakov 2010-12-19 15:50:30 UTC
Created attachment 55073 [details]
Another crash
Comment 2 Alexey Shildyakov 2010-12-19 15:50:48 UTC
Created attachment 55074 [details]
Another crash
Comment 3 Alexey Shildyakov 2010-12-19 15:51:05 UTC
Created attachment 55075 [details]
Another crash
Comment 4 Alexey Shildyakov 2010-12-19 15:54:21 UTC
Sorry. I submit attachments above for another bug 260712
Comment 5 Joris Guisson 2011-02-15 19:23:51 UTC
Is this still reproducible ?
Comment 6 rele 2011-02-16 12:15:24 UTC
It doesn't crash anymore as fas as I can remember.

Application: ktorrent (4.0.5)
KDE Platform Version: 4.5.5 (KDE 4.5.5) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.37-gentoo x86_64
Distribution (Platform): Gentoo Packages
Comment 7 Joris Guisson 2011-02-16 18:25:56 UTC
Seeing that I have never managed to reproduce this, I'm closing it for now, we can always reopen it, if it happens again.