<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>261009</bug_id>
          
          <creation_ts>2010-12-22 22:31:39 +0000</creation_ts>
          <short_desc>ktorrent crashes when used</short_desc>
          <delta_ts>2010-12-23 00:13:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>ktorrent</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>247984</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>vidkid</reporter>
          <assigned_to name="Joris Guisson">joris.guisson</assigned_to>
          <cc>andresbajotierra</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1063074</commentid>
    <comment_count>0</comment_count>
    <who name="">vidkid</who>
    <bug_when>2010-12-22 22:31:39 +0000</bug_when>
    <thetext>Application: ktorrent (3.3.4)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.32-27-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
ktorrent crashes when in used, crashes randomly when downloading

The crash can be reproduced every time.

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

Thread 6 (Thread 0x7f08ecf2f700 (LWP 2463)):
#0  0x00007f08f5f7bff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f08f9ee668e in dht::RPCServerThread::run (this=0x1e7c780) at ../../libbtcore/dht/rpcserver.cpp:107
#2  0x00007f08f78fff95 in QThreadPrivate::start (arg=0x1e7c780) at thread/qthread_unix.cpp:248
#3  0x00007f08f766f9ca in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:300
#4  0x00007f08f5f8370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f08ed730700 (LWP 2476)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f08ed72faa0 in ?? ()
#2  0x00007ffffefff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x7f08d7001700 (LWP 2479)):
#0  net::DownloadThread::waitForSocketReady (this=0x1db9950) at ../../libbtcore/net/downloadthread.cpp:157
#1  0x00007f08f9e8cb66 in net::DownloadThread::update (this=0x7f08fa156640) at ../../libbtcore/net/downloadthread.cpp:53
#2  0x00007f08f9e8d6e9 in net::NetworkThread::run (this=0x1db9950) at ../../libbtcore/net/networkthread.cpp:48
#3  0x00007f08f78fff95 in QThreadPrivate::start (arg=0x1db9950) at thread/qthread_unix.cpp:248
#4  0x00007f08f766f9ca in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:300
#5  0x00007f08f5f8370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f08d6800700 (LWP 2480)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f08f7900fdb in QWaitConditionPrivate::wait (this=&lt;value optimized out&gt;, mutex=0x1db9f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, mutex=0x1db9f20, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f08f9e8c60c in net::UploadThread::update (this=0x1db9eb0) at ../../libbtcore/net/uploadthread.cpp:73
#4  0x00007f08f9e8d6e9 in net::NetworkThread::run (this=0x1db9eb0) at ../../libbtcore/net/networkthread.cpp:48
#5  0x00007f08f78fff95 in QThreadPrivate::start (arg=0x1db9eb0) at thread/qthread_unix.cpp:248
#6  0x00007f08f766f9ca in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:300
#7  0x00007f08f5f8370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f08d5fff700 (LWP 2481)):
#0  0x00007f08f5f754bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f08f5f10348 in _IO_new_file_underflow (fp=0x7f08e8069d40) at fileops.c:606
#2  0x00007f08f5f11eee in _IO_default_uflow (fp=0x4) at genops.c:440
#3  0x00007f08f5f0643e in _IO_getline_info (fp=0x7f08e8069d40, buf=0x7f08ef958000 &quot;RESOLVE-ADDRESS 46.40.102.58\n&quot;, n=255, delim=10, extract_delim=1, eof=0x0) at iogetline.c:74
#4  0x00007f08f5f05329 in _IO_fgets (buf=0x7f08d5ffe0d0 &quot;-15 Timeout reached\n&quot;, n=&lt;value optimized out&gt;, fp=0x7f08e8069d40) at iofgets.c:58
#5  0x00007f08d55fcfcb in ?? () from /lib/libnss_mdns4.so.2
#6  0x00007f08d55fd435 in _nss_mdns4_gethostbyaddr_r () from /lib/libnss_mdns4.so.2
#7  0x00007f08f5f9e258 in __gethostbyaddr_r (addr=0x26d54f4, len=4, type=&lt;value optimized out&gt;, resbuf=0x7f08d5ffeb50, buffer=&lt;value optimized out&gt;, buflen=&lt;value optimized out&gt;, 
    result=0x7f08d5ffeb80, h_errnop=0x7f08d5ffeb8c) at ../nss/getXXbyYY_r.c:253
#8  0x00007f08f5fa484b in *__GI_getnameinfo (sa=0x26d54f0, addrlen=&lt;value optimized out&gt;, host=0x7f08d5ffecb0 &quot;&quot;, hostlen=199, serv=0x7f08d5ffebe0 &quot;&quot;, servlen=199, flags=&lt;value optimized out&gt;)
    at getnameinfo.c:223
#9  0x00007f08f9e900af in net::ReverseResolver::resolve (this=&lt;value optimized out&gt;, addr=...) at ../../libbtcore/net/reverseresolver.cpp:64
#10 0x00007f08f9e90150 in net::ReverseResolver::run (this=0x29aefe0) at ../../libbtcore/net/reverseresolver.cpp:73
#11 0x00007f08f9e90247 in net::ReverseResolverThread::run (this=0x25fc740) at ../../libbtcore/net/reverseresolver.cpp:118
#12 0x00007f08f78fff95 in QThreadPrivate::start (arg=0x25fc740) at thread/qthread_unix.cpp:248
#13 0x00007f08f766f9ca in start_thread (arg=&lt;value optimized out&gt;) at pthread_create.c:300
#14 0x00007f08f5f8370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f08fa359760 (LWP 2461)):
[KCrash Handler]
#5  memcpy () at ../sysdeps/x86_64/memcpy.S:267
#6  0x00007f08f599e0b6 in QCA::MemoryRegion::MemoryRegion(QByteArray const&amp;) () from /usr/lib/libqca.so.2
#7  0x00007f08f59b44c5 in QCA::Hash::update(QByteArray const&amp;) () from /usr/lib/libqca.so.2
#8  0x00007f08f9e787bb in bt::SHA1HashGen::update (this=0x29ade50, data=0x7f08d4f83bd6 &quot;\332D\303\341\221\307\322z\364U01w&quot;, len=16384) at ../../libbtcore/util/sha1hashgen.cpp:240
#9  0x00007f08f9eab072 in bt::ChunkDownload::updateHash (this=0x29add90) at ../../libbtcore/download/chunkdownload.cpp:579
#10 0x00007f08f9eac8f8 in bt::ChunkDownload::piece (this=0x29add90, p=..., ok=&lt;value optimized out&gt;) at ../../libbtcore/download/chunkdownload.cpp:145
#11 0x00007f08f9eb2d3e in bt::Downloader::pieceReceived (this=0x20ed730, p=...) at ../../libbtcore/download/downloader.cpp:126
#12 0x00007f08f9e9a681 in bt::Peer::packetReady (this=0x27adf80, packet=0x28ce270 &quot;\a&quot;, len=&lt;value optimized out&gt;) at ../../libbtcore/peer/peer.cpp:268
#13 0x00007f08f9ea3c78 in bt::PacketReader::update (this=0x288af80) at ../../libbtcore/peer/packetreader.cpp:141
#14 0x00007f08f9e9a045 in bt::Peer::update (this=0x27adf80) at ../../libbtcore/peer/peer.cpp:462
#15 0x00007f08f9e9e0d0 in bt::PeerManager::update (this=0x1e58850) at ../../libbtcore/peer/peermanager.cpp:119
#16 0x00007f08f9ecc25a in bt::TorrentControl::update (this=0x1e52db0) at ../../libbtcore/torrent/torrentcontrol.cpp:150
#17 0x0000000000430d9b in kt::Core::update (this=0x1e620c0) at ../../ktorrent/core.cpp:849
#18 0x0000000000436926 in kt::Core::qt_metacall (this=0x1e620c0, _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0x7ffffee1b870) at ./core.moc:155
#19 0x00007f08f7a03036 in QMetaObject::activate (sender=0x1e620e8, m=&lt;value optimized out&gt;, local_signal_index=&lt;value optimized out&gt;, argv=0x77a) at kernel/qobject.cpp:3295
#20 0x00007f08f79ff893 in QObject::event (this=0x1e620e8, e=0x7ffffee1bfc0) at kernel/qobject.cpp:1212
#21 0x00007f08f6b8cc0c in QApplicationPrivate::notify_helper (this=0x1df16f0, receiver=0x1e620e8, e=0x7ffffee1bfc0) at kernel/qapplication.cpp:4302
#22 0x00007f08f6b930eb in QApplication::notify (this=0x7ffffee1c2f0, receiver=0x1e620e8, e=0x7ffffee1bfc0) at kernel/qapplication.cpp:4185
#23 0x00007f08f9039a16 in KApplication::notify (this=0x7ffffee1c2f0, receiver=0x1e620e8, event=0x7ffffee1bfc0) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00007f08f79efd9c in QCoreApplication::notifyInternal (this=0x7ffffee1c2f0, receiver=0x1e620e8, event=0x7ffffee1bfc0) at kernel/qcoreapplication.cpp:726
#25 0x00007f08f7a1cba2 in QCoreApplication::sendEvent (this=0x1de8b40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QTimerInfoList::activateTimers (this=0x1de8b40) at kernel/qeventdispatcher_unix.cpp:603
#27 0x00007f08f7a196e8 in timerSourceDispatch (source=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:184
#28 idleTimerSourceDispatch (source=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:231
#29 0x00007f08f26048c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#30 0x00007f08f2608748 in ?? () from /lib/libglib-2.0.so.0
#31 0x00007f08f26088fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#32 0x00007f08f7a19406 in QEventDispatcherGlib::processEvents (this=0x1db7980, flags=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:414
#33 0x00007f08f6c3d18e in QGuiEventDispatcherGlib::processEvents (this=0x2b0b6b2, flags=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f08f79ee6c2 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, flags=) at kernel/qeventloop.cpp:149
#35 0x00007f08f79eea9c in QEventLoop::exec (this=0x7ffffee1c260, flags=) at kernel/qeventloop.cpp:201
#36 0x00007f08f79f373b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#37 0x0000000000427294 in main (argc=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at ../../ktorrent/main.cpp:172

Possible duplicates by query: bug 260359, bug 258765, bug 258248, bug 257314, bug 256822.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1063123</commentid>
    <comment_count>1</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2010-12-23 00:13:30 +0000</bug_when>
    <thetext>[Comment from a bug triager]
This is fixed in the latest application version.
Merging with bug 247984. Thanks

*** This bug has been marked as a duplicate of bug 247984 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>