Bug 262378

Summary: Crashes when in background
Product: [Applications] ktorrent Reporter: Dario Kampkaspar <dariok>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dario Kampkaspar 2011-01-07 08:09:46 UTC
Application: ktorrent (4.0.5)
KDE Platform Version: 4.5.4 (KDE 4.5.4) "release 9"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.7-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

Then computer was running "on idle" in the background (alongside hplip, pidgin, kmail, klipper, kmix, krandtray and other standard kde tray programs), the last program closed before was mplayer.
This has happened before, always when I was not actively using the computer.

The crash can be reproduced some of the time.

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

Thread 5 (Thread 0x7f09aaf58710 (LWP 4585)):
#0  0x00007f09ba8c8e13 in select () from /lib64/libc.so.6
#1  0x00007f09be7283a7 in dht::RPCServerThread::run (this=0x8858d0) at /home/phlox/source/libktorrent-1.0.5-3/src/dht/rpcserver.cpp:107
#2  0x00007f09bc1dabf5 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x00007f09bbf4ca4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f09ba8cf82d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0994b69710 (LWP 4771)):
#0  0x00007f09bbf51709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f09bc1da9b5 in ?? () from /usr/lib64/libQtCore.so.4
#2  0x00007f09bc1dab20 in QThread::msleep(unsigned long) () from /usr/lib64/libQtCore.so.4
#3  0x00007f09be6d3868 in net::DownloadThread::update (this=0x6de300) at /home/phlox/source/libktorrent-1.0.5-3/src/net/downloadthread.cpp:91
#4  0x00007f09be6d38c9 in net::NetworkThread::run (this=0x6de300) at /home/phlox/source/libktorrent-1.0.5-3/src/net/networkthread.cpp:48
#5  0x00007f09bc1dabf5 in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007f09bbf4ca4f in start_thread () from /lib64/libpthread.so.0
#7  0x00007f09ba8cf82d in clone () from /lib64/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f098ffff710 (LWP 4772)):
#0  0x00007f09bbf51709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f09bc1da9b5 in ?? () from /usr/lib64/libQtCore.so.4
#2  0x00007f09bc1dab20 in QThread::msleep(unsigned long) () from /usr/lib64/libQtCore.so.4
#3  0x00007f09be6d30c8 in net::UploadThread::update (this=0x6de970) at /home/phlox/source/libktorrent-1.0.5-3/src/net/uploadthread.cpp:89
#4  0x00007f09be6d38c9 in net::NetworkThread::run (this=0x6de970) at /home/phlox/source/libktorrent-1.0.5-3/src/net/networkthread.cpp:48
#5  0x00007f09bc1dabf5 in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007f09bbf4ca4f in start_thread () from /lib64/libpthread.so.0
#7  0x00007f09ba8cf82d in clone () from /lib64/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f098f7fe710 (LWP 4773)):
#0  0x00007f09bbf5139c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f09bc1db2bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f09be6d6262 in net::ReverseResolverThread::run (this=0x7f09900463a0) at /home/phlox/source/libktorrent-1.0.5-3/src/net/reverseresolver.cpp:123
#3  0x00007f09bc1dabf5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007f09bbf4ca4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f09ba8cf82d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f09beba3760 (LWP 4558)):
[KCrash Handler]
#6  0x00007f09ba87e96b in memcpy () from /lib64/libc.so.6
#7  0x00007f09ba2f10a1 in QCA::MemoryRegion::Private::Private(QByteArray const&, bool) () from /usr/lib64/libqca.so.2
#8  0x00007f09ba2ef138 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib64/libqca.so.2
#9  0x00007f09ba305c80 in QCA::Hash::update(QByteArray const&) () from /usr/lib64/libqca.so.2
#10 0x00007f09be6bfa2b in bt::SHA1HashGen::update (this=0x7f099013e270, data=0x7f09bea0091c "\216\buM\357Z\244\005o>\336\210\342", len=16384)
    at /home/phlox/source/libktorrent-1.0.5-3/src/util/sha1hashgen.cpp:240
#11 0x00007f09be6f445b in bt::ChunkDownload::updateHash (this=0x7f099013e1b0) at /home/phlox/source/libktorrent-1.0.5-3/src/download/chunkdownload.cpp:555
#12 0x00007f09be6f5ea5 in bt::ChunkDownload::piece (this=0x7f099013e1b0, p=..., ok=<value optimized out>) at /home/phlox/source/libktorrent-1.0.5-3/src/download/chunkdownload.cpp:127
#13 0x00007f09be6fb057 in bt::Downloader::pieceReceived (this=0x1739820, p=...) at /home/phlox/source/libktorrent-1.0.5-3/src/download/downloader.cpp:134
#14 0x00007f09be6e559d in bt::Peer::packetReady (this=0x4d4ce50, packet=0x7f09a4312390 "\a", len=<value optimized out>) at /home/phlox/source/libktorrent-1.0.5-3/src/peer/peer.cpp:283
#15 0x00007f09be6ed618 in bt::PacketReader::update (this=0x48d0010) at /home/phlox/source/libktorrent-1.0.5-3/src/peer/packetreader.cpp:141
#16 0x00007f09be6e3715 in bt::Peer::update (this=0x4d4ce50) at /home/phlox/source/libktorrent-1.0.5-3/src/peer/peer.cpp:538
#17 0x00007f09be6e874d in bt::PeerManager::update (this=0xb3c840) at /home/phlox/source/libktorrent-1.0.5-3/src/peer/peermanager.cpp:144
#18 0x00007f09be714534 in bt::TorrentControl::update (this=0x16fd900) at /home/phlox/source/libktorrent-1.0.5-3/src/torrent/torrentcontrol.cpp:163
#19 0x000000000042bbf3 in kt::Core::update (this=0x7f09a40036f0) at /home/phlox/source/ktorrent-4.0.5/ktorrent/core.cpp:1025
#20 0x0000000000433011 in kt::Core::qt_metacall (this=0x7f09a40036f0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff0402d270) at /home/phlox/source/ktorrent-4.0.5/build/ktorrent/core.moc:169
#21 0x00007f09bc2d5a1f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#22 0x00007f09bc2d322e in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#23 0x00007f09bb4964d4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#24 0x00007f09bb49eaca in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#25 0x00000000004394a1 in kt::App::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at /home/phlox/source/ktorrent-4.0.5/ktorrent/app.cpp:97
#26 0x00007f09bc2c1e4c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#27 0x00007f09bc2ed0c9 in ?? () from /usr/lib64/libQtCore.so.4
#28 0x00007f09bc2e9ff8 in ?? () from /usr/lib64/libQtCore.so.4
#29 0x00007f09b5aa8a93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f09b5aa9270 in ?? () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f09b5aa9510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f09bc2ea67f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#33 0x00007f09bb53714e in ?? () from /usr/lib64/libQtGui.so.4
#34 0x00007f09bc2c1292 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#35 0x00007f09bc2c1495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#36 0x00007f09bc2c588b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#37 0x0000000000429376 in main (argc=3, argv=0x7fff0402ebd8) at /home/phlox/source/ktorrent-4.0.5/ktorrent/main.cpp:176

Possible duplicates by query: bug 247114.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-01-07 20:58:25 UTC

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