Bug 268333

Summary: Ktorrent crashes every time he download
Product: [Applications] ktorrent Reporter: statement
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description statement 2011-03-13 01:31:31 UTC
Application: ktorrent (4.0.5)
KDE Platform Version: 4.6.1 (4.6.1)
Qt Version: 4.7.2
Operating System: Linux 2.6.35.11-83.fc14.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
nothing, he crash when he load, and this in max two seconds - in standby mode nothing happen...

The crash can be reproduced every time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7ff3d52c9840 (LWP 2797))]

Thread 5 (Thread 0x7ff3ca149700 (LWP 2799)):
#0  0x00000034274d9093 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ff3da6da795 in dht::RPCServerThread::run (this=0x2024220) at /usr/src/debug/libktorrent-1.0.5-3/src/dht/rpcserver.cpp:107
#2  0x0000003dd4a73e95 in QThreadPrivate::start (arg=0x2024220) at thread/qthread_unix.cpp:320
#3  0x0000003427c06ccb in start_thread (arg=0x7ff3ca149700) at pthread_create.c:301
#4  0x00000034274e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7ff3af5f6700 (LWP 2864)):
#0  net::DownloadThread::waitForSocketReady (this=0x1f1df40) at /usr/src/debug/libktorrent-1.0.5-3/src/net/downloadthread.cpp:121
#1  0x00007ff3da682896 in net::DownloadThread::update (this=0x1f1df40) at /usr/src/debug/libktorrent-1.0.5-3/src/net/downloadthread.cpp:48
#2  0x00007ff3da682a99 in net::NetworkThread::run (this=0x1f1df40) at /usr/src/debug/libktorrent-1.0.5-3/src/net/networkthread.cpp:48
#3  0x0000003dd4a73e95 in QThreadPrivate::start (arg=0x1f1df40) at thread/qthread_unix.cpp:320
#4  0x0000003427c06ccb in start_thread (arg=0x7ff3af5f6700) at pthread_create.c:301
#5  0x00000034274e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7ff3aedf5700 (LWP 2865)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x0000003dd4a73c35 in thread_sleep (ti=0x7ff3aedf4cd0) at thread/qthread_unix.cpp:470
#2  0x0000003dd4a73da0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:496
#3  0x00007ff3da682288 in net::UploadThread::update (this=0x1f1e920) at /usr/src/debug/libktorrent-1.0.5-3/src/net/uploadthread.cpp:89
#4  0x00007ff3da682a99 in net::NetworkThread::run (this=0x1f1e920) at /usr/src/debug/libktorrent-1.0.5-3/src/net/networkthread.cpp:48
#5  0x0000003dd4a73e95 in QThreadPrivate::start (arg=0x1f1e920) at thread/qthread_unix.cpp:320
#6  0x0000003427c06ccb in start_thread (arg=0x7ff3aedf5700) at pthread_create.c:301
#7  0x00000034274e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7ff3ae5f4700 (LWP 2866)):
#0  0x00000034274d7283 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x000000342a80b5cb in send_dg (statp=0x7ff3ae5f4db8, buf=0x7ff3ae5f2900 "u\276\001", buflen=43, buf2=0x0, buflen2=0, ans=0x7ff3ae5f2ad0 "\262\261\201\200", anssiz=1024, ansp=0x7ff3ae5f3360, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:1058
#2  __libc_res_nsend (statp=0x7ff3ae5f4db8, buf=0x7ff3ae5f2900 "u\276\001", buflen=43, buf2=0x0, buflen2=0, ans=0x7ff3ae5f2ad0 "\262\261\201\200", anssiz=1024, ansp=0x7ff3ae5f3360, ansp2=0x0, nansp2=0x0, resplen2=0x0) at res_send.c:556
#3  0x000000342a8091b1 in __libc_res_nquery (statp=0x7ff3ae5f4db8, name=0x7ff3ae5f2f50 "153.16.39.92.in-addr.arpa", class=1, type=12, answer=0x7ff3ae5f2ad0 "\262\261\201\200", anslen=1024, answerp=0x7ff3ae5f3360, answerp2=0x0, nanswerp2=0x0, resplen2=0x0) at res_query.c:225
#4  0x00007ff3af5f9c00 in _nss_dns_gethostbyaddr2_r (addr=0x3751344, len=<value optimized out>, af=<value optimized out>, result=0x7ff3ae5f3a90, buffer=0x7ff3ae5f3460 "\177", buflen=1024, errnop=0x7ff3ae5f4660, h_errnop=0x7ff3ae5f3ae0, ttlp=0x0) at nss_dns/dns-host.c:471
#5  0x00000034274faab8 in __gethostbyaddr_r (addr=<value optimized out>, len=4, type=2, resbuf=0x7ff3ae5f3a90, buffer=0x7ff3ae5f3460 "\177", buflen=1024, result=0x7ff3ae5f3ad0, h_errnop=0x7ff3ae5f3ae0) at ../nss/getXXbyYY_r.c:256
#6  0x0000003427504cfb in getnameinfo (sa=0x3751340, addrlen=<value optimized out>, host=0x7ff3ae5f3c10 "", hostlen=199, serv=0x7ff3ae5f3b40 "", servlen=199, flags=8) at getnameinfo.c:223
#7  0x00007ff3da68503f in net::ReverseResolver::resolve (this=<value optimized out>, addr=...) at /usr/src/debug/libktorrent-1.0.5-3/src/net/reverseresolver.cpp:64
#8  0x00007ff3da6850e0 in net::ReverseResolver::run (this=0x20a1a00) at /usr/src/debug/libktorrent-1.0.5-3/src/net/reverseresolver.cpp:73
#9  0x00007ff3da685467 in net::ReverseResolverThread::run (this=0x35b16d0) at /usr/src/debug/libktorrent-1.0.5-3/src/net/reverseresolver.cpp:118
#10 0x0000003dd4a73e95 in QThreadPrivate::start (arg=0x35b16d0) at thread/qthread_unix.cpp:320
#11 0x0000003427c06ccb in start_thread (arg=0x7ff3ae5f4700) at pthread_create.c:301
#12 0x00000034274e0c2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7ff3d52c9840 (LWP 2797)):
[KCrash Handler]
#6  __memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:119
#7  0x00007ff3d8239d56 in Private (this=0x7fffced5a590, from=...) at /usr/include/bits/string3.h:52
#8  QCA::MemoryRegion::MemoryRegion (this=0x7fffced5a590, from=...) at qca_tools.cpp:445
#9  0x00007ff3d8251375 in QCA::Hash::update (this=0x2ddf940, a=...) at qca_basic.cpp:215
#10 0x00007ff3da66e1cb in bt::SHA1HashGen::update (this=0x2ddf7d0, data=0x7ff3cc2684d9 "\317<\r\213\201\340?\221M\301-\206\362t\252W\244\227\377o$\223\207\202\310\060\a\252\360\067\004\036E(\272\204j\266\253\222\221\263[K\002\232 K\263j<\357\r\035\n`xE\352/\214X\263\301\207\360KT\256e\303\341\rX\221\243\267\021[\316\260\361\372\330\063ur\217\311\201O\257\360@\321.[\231!\231Z\275\"\276\370\357\352\225LU\vm\323\233\033\250\242\071\327\357\177\255J\323\223\325,\264\355E\036%\017\300\340\360\275\217^\244\377\064\202\024\\\026\237\003a\aY\017\231\357\260r\315\362\205M@d,\321\264$\310\067\376\242\206\005M\027\002\230J\326\255S\360\371_\333\320\"\317\363\372\336\214\366\336\022\036\027\216\223*M"..., len=16384) at /usr/src/debug/libktorrent-1.0.5-3/src/util/sha1hashgen.cpp:240
#11 0x00007ff3da6a4a43 in bt::ChunkDownload::updateHash (this=0x2ddf710) at /usr/src/debug/libktorrent-1.0.5-3/src/download/chunkdownload.cpp:555
#12 0x00007ff3da6a673b in bt::ChunkDownload::piece (this=0x2ddf710, p=..., ok=<value optimized out>) at /usr/src/debug/libktorrent-1.0.5-3/src/download/chunkdownload.cpp:127
#13 0x00007ff3da6aac07 in bt::Downloader::pieceReceived (this=0x268bd30, p=...) at /usr/src/debug/libktorrent-1.0.5-3/src/download/downloader.cpp:134
#14 0x00007ff3da694d4d in bt::Peer::packetReady (this=0x3876cd0, packet=0x7ff39400fdd0 "\a", len=<value optimized out>) at /usr/src/debug/libktorrent-1.0.5-3/src/peer/peer.cpp:283
#15 0x00007ff3da69d3e8 in bt::PacketReader::update (this=0x3743040) at /usr/src/debug/libktorrent-1.0.5-3/src/peer/packetreader.cpp:141
#16 0x00007ff3da692ec5 in bt::Peer::update (this=0x3876cd0) at /usr/src/debug/libktorrent-1.0.5-3/src/peer/peer.cpp:538
#17 0x00007ff3da69793d in bt::PeerManager::update (this=0x2667430) at /usr/src/debug/libktorrent-1.0.5-3/src/peer/peermanager.cpp:144
#18 0x00007ff3da6c5744 in bt::TorrentControl::update (this=0x2659330) at /usr/src/debug/libktorrent-1.0.5-3/src/torrent/torrentcontrol.cpp:163
#19 0x0000000000429883 in kt::Core::update (this=0x206f920) at /usr/src/debug/ktorrent-4.0.5/ktorrent/core.cpp:1025
#20 0x0000000000430331 in kt::Core::qt_metacall (this=0x206f920, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fffced5abb0) at /usr/src/debug/ktorrent-4.0.5/x86_64-redhat-linux-gnu/ktorrent/core.moc:169
#21 0x0000003dd4b71acf in QMetaObject::activate (sender=0x206f948, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#22 0x0000003dd4b712f9 in QObject::event (this=0x206f948, e=<value optimized out>) at kernel/qobject.cpp:1181
#23 0x00007ff3d8694cd4 in QApplicationPrivate::notify_helper (this=0x1f71af0, receiver=0x206f948, e=0x7fffced5b2d0) at kernel/qapplication.cpp:4462
#24 0x00007ff3d869988a in QApplication::notify (this=<value optimized out>, receiver=0x206f948, e=0x7fffced5b2d0) at kernel/qapplication.cpp:4341
#25 0x00000000004371f1 in kt::App::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at /usr/src/debug/ktorrent-4.0.5/ktorrent/app.cpp:97
#26 0x0000003dd4b5d19c in QCoreApplication::notifyInternal (this=0x7fffced5b600, receiver=0x206f948, event=0x7fffced5b2d0) at kernel/qcoreapplication.cpp:731
#27 0x0000003dd4b8aeae in sendEvent (this=0x1f72b50) at kernel/qcoreapplication.h:215
#28 QTimerInfoList::activateTimers (this=0x1f72b50) at kernel/qeventdispatcher_unix.cpp:604
#29 0x0000003dd4b87c78 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#30 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#31 0x0000003429041e33 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#32 0x0000003429042610 in ?? () from /lib64/libglib-2.0.so.0
#33 0x00000034290428ad in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#34 0x0000003dd4b8834f in QEventDispatcherGlib::processEvents (this=0x1f1b4c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007ff3d873a35e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#36 0x0000003dd4b5c532 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x0000003dd4b5c77c in QEventLoop::exec (this=0x7fffced5b560, flags=...) at kernel/qeventloop.cpp:201
#38 0x0000003dd4b60c3b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#39 0x0000000000426e66 in main (argc=5, argv=0x7fffced5c3b8) at /usr/src/debug/ktorrent-4.0.5/ktorrent/main.cpp:176

Possible duplicates by query: bug 256345, bug 255263, bug 251303.

Reported using DrKonqi
Comment 1 Joris Guisson 2011-03-13 11:13:09 UTC

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