Bug 242947

Summary: Ktorrent crashes while VLC plays
Product: [Applications] ktorrent Reporter: kleidokrators
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kleidokrators 2010-06-27 13:45:44 UTC
Application: ktorrent (3.3.4)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-23-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
When i play a video file with VLC, Ktorrent crashes. It happens every time i tried, sooner or later. When VLC is paused or not playing it doesn't crash.

The crash can be reproduced every time.

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

Thread 6 (Thread 0x7f9250964710 (LWP 11809)):
#0  0x00007f9259dfafe3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f925dd6168e in dht::RPCServerThread::run (this=0x116afd0) at ../../libbtcore/dht/rpcserver.cpp:107
#2  0x00007f925b77a775 in QThreadPrivate::start (arg=0x116afd0) at thread/qthread_unix.cpp:248
#3  0x00007f925b4ea9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f9259e026fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f924a337710 (LWP 11833)):
#0  net::DownloadThread::waitForSocketReady (this=0xfe1950) at ../../libbtcore/net/downloadthread.cpp:157
#1  0x00007f925dd07b66 in net::DownloadThread::update (this=0x7f925dfd1640) at ../../libbtcore/net/downloadthread.cpp:53
#2  0x00007f925dd086e9 in net::NetworkThread::run (this=0xfe1950) at ../../libbtcore/net/networkthread.cpp:48
#3  0x00007f925b77a775 in QThreadPrivate::start (arg=0xfe1950) at thread/qthread_unix.cpp:248
#4  0x00007f925b4ea9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f9259e026fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f924b339710 (LWP 11834)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f925b77b72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0xfe1f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xfe1f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f925dd0760c in net::UploadThread::update (this=0xfe1eb0) at ../../libbtcore/net/uploadthread.cpp:73
#4  0x00007f925dd086e9 in net::NetworkThread::run (this=0xfe1eb0) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007f925b77a775 in QThreadPrivate::start (arg=0xfe1eb0) at thread/qthread_unix.cpp:248
#6  0x00007f925b4ea9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f9259e026fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9249b36710 (LWP 11835)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f925b77b72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2033f50, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2033f50, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f925dd0b342 in net::ReverseResolverThread::run (this=0x2033f40) at ../../libbtcore/net/reverseresolver.cpp:123
#4  0x00007f925b77a775 in QThreadPrivate::start (arg=0x2033f40) at thread/qthread_unix.cpp:248
#5  0x00007f925b4ea9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f9259e026fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9236878710 (LWP 11848)):
#0  0x00007f925b4ed3f5 in __pthread_mutex_lock (mutex=0x21fe268) at pthread_mutex_lock.c:61
#1  0x00007f925648850e in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f92564888fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f925b898566 in QEventDispatcherGlib::processEvents (this=0x208a2d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f925b86d992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f925b86dd6c in QEventLoop::exec (this=0x7f9236877db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f925b777d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f925b84e178 in QInotifyFileSystemWatcherEngine::run (this=0x7f92440604a0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f925b77a775 in QThreadPrivate::start (arg=0x7f92440604a0) at thread/qthread_unix.cpp:248
#9  0x00007f925b4ea9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f9259e026fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f925e1d1760 (LWP 11807)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007f925981d0b6 in QCA::MemoryRegion::MemoryRegion(QByteArray const&) () from /usr/lib/libqca.so.2
#7  0x00007f92598334c5 in QCA::Hash::update(QByteArray const&) () from /usr/lib/libqca.so.2
#8  0x00007f925dcf37bb in bt::SHA1HashGen::update (this=0x1fd4c10, 
    data=0x7f9250052000 "da\241\255y\035\257\365\372\323b\243\326\362\023\r\025\302\264\024\215\352\331\346\310\273vjr\221\235\063\235\232<\373\064\216\214\201\214G\246\225\235\263\016=\350\336\367\343y\217O'\315\277\262\004\311\210\352\234\335y\255gx\\\004\350\063\"f/T\322J6\274\023\213\004\202\365J\231\317\252\272\"\345\372\342%7\026\\\350\261{\241\347\324\032X\350]dHV:.\311\277\361)l\263\263\021#\025F\253\270\r\202\367\332\320\333\333\037\017\f\005\267\066\336\212\020\201\a\363\361\245\022\222\274b\213\026|\370\031Ub\243\204(\316\027\355\003\362w\236\220\263\204\273:\270\234/\362\236\336\017B3\234\002\234\315l.\345\365\337\300\263\214\331B\300\205\357"..., len=16384) at ../../libbtcore/util/sha1hashgen.cpp:240
#9  0x00007f925dd26072 in bt::ChunkDownload::updateHash (this=0x1fd4b50) at ../../libbtcore/download/chunkdownload.cpp:579
#10 0x00007f925dd278f8 in bt::ChunkDownload::piece (this=0x1fd4b50, p=..., ok=<value optimized out>) at ../../libbtcore/download/chunkdownload.cpp:145
#11 0x00007f925dd2dd3e in bt::Downloader::pieceReceived (this=0x17d8a10, p=...) at ../../libbtcore/download/downloader.cpp:126
#12 0x00007f925dd15681 in bt::Peer::packetReady (this=0x2611650, packet=0x7f924415b180 "\a", len=<value optimized out>) at ../../libbtcore/peer/peer.cpp:268
#13 0x00007f925dd1ec78 in bt::PacketReader::update (this=0x2623aa0) at ../../libbtcore/peer/packetreader.cpp:141
#14 0x00007f925dd15045 in bt::Peer::update (this=0x2611650) at ../../libbtcore/peer/peer.cpp:462
#15 0x00007f925dd190d0 in bt::PeerManager::update (this=0x17d4200) at ../../libbtcore/peer/peermanager.cpp:119
#16 0x00007f925dd4725a in bt::TorrentControl::update (this=0x179bf80) at ../../libbtcore/torrent/torrentcontrol.cpp:150
#17 0x0000000000430d9b in kt::Core::update (this=0x10f8980) at ../../ktorrent/core.cpp:849
#18 0x0000000000436926 in kt::Core::qt_metacall (this=0x10f8980, _c=QMetaObject::InvokeMetaMethod, _id=45400200, _a=0x7fffff31a970) at ./core.moc:155
#19 0x00007f925b881e3f in QMetaObject::activate (sender=0x10f89a8, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x600) at kernel/qobject.cpp:3293
#20 0x00007f925b87ea63 in QObject::event (this=0x10f89a8, e=0x7fffff31b0c0) at kernel/qobject.cpp:1212
#21 0x00007f925aa0b22c in QApplicationPrivate::notify_helper (this=0x10167b0, receiver=0x10f89a8, e=0x7fffff31b0c0) at kernel/qapplication.cpp:4300
#22 0x00007f925aa116fb in QApplication::notify (this=0x7fffff31b3f0, receiver=0x10f89a8, e=0x7fffff31b0c0) at kernel/qapplication.cpp:4183
#23 0x00007f925ceb5526 in KApplication::notify (this=0x7fffff31b3f0, receiver=0x10f89a8, event=0x7fffff31b0c0) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00007f925b86f06c in QCoreApplication::notifyInternal (this=0x7fffff31b3f0, receiver=0x10f89a8, event=0x7fffff31b0c0) at kernel/qcoreapplication.cpp:704
#25 0x00007f925b89bd42 in QCoreApplication::sendEvent (this=0x101e230) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QTimerInfoList::activateTimers (this=0x101e230) at kernel/qeventdispatcher_unix.cpp:603
#27 0x00007f925b898848 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#28 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#29 0x00007f92564848c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#30 0x00007f9256488748 in ?? () from /lib/libglib-2.0.so.0
#31 0x00007f92564888fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#32 0x00007f925b898513 in QEventDispatcherGlib::processEvents (this=0xfdf980, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#33 0x00007f925aabb46e in QGuiEventDispatcherGlib::processEvents (this=0x2b4d088, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f925b86d992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#35 0x00007f925b86dd6c in QEventLoop::exec (this=0x7fffff31b360, flags=) at kernel/qeventloop.cpp:201
#36 0x00007f925b871aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#37 0x0000000000427294 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../ktorrent/main.cpp:172

Possible duplicates by query: bug 240923, bug 239065, bug 238377, bug 237235, bug 236130.

Reported using DrKonqi
Comment 1 Joris Guisson 2010-06-29 20:04:27 UTC

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