Bug 144416 - random crash with backtrace
Summary: random crash with backtrace
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
: 144603 144610 144622 144634 144656 144658 144704 144705 144716 144736 144737 144768 144776 144790 144808 144813 144824 144833 144906 144908 144926 144971 144991 145025 145048 145066 145069 145070 145071 145088 145098 145201 145208 145255 145260 145272 145273 145304 145509 145659 145675 145689 145694 145869 146137 146310 146558 146604 146645 146656 146772 147183 147242 148078 148099 148461 148500 149511 149551 150152 150292 150356 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-19 11:07 UTC by Marijn Schouten
Modified: 2009-02-06 01:29 UTC (History)
52 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
BackLog (4.18 KB, text/plain)
2008-11-10 02:16 UTC, JS
Details
A Fatal Error Occurred The application KTorrent (ktorrent) crashed and caused the signal 11 (SIGSEGV). (10.01 KB, text/plain)
2009-02-06 01:29 UTC, Jordan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marijn Schouten 2007-04-19 11:07:38 UTC
Version:           2.1.3 (using KDE KDE 3.5.6)
Installed from:    Gentoo Packages
Compiler:          gcc-4.1.2 
OS:                Linux

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47247877533808 (LWP 4612)]
[New Thread 1090525504 (LWP 5605)]
[New Thread 1082132800 (LWP 5604)]
[KCrash handler]
#5  dht::ParseRsp (dict=0xf14ae0, srv=0x92a830) at rpcmsg.cpp:163
#6  0x00002af8bcae20ab in dht::MakeRPCMsg (dict=0xf14ae0, srv=0x92a830)
    at rpcmsg.cpp:203
#7  0x00002af8bcae222c in dht::RPCServer::readPacket (this=0x92a830)
    at rpcserver.cpp:131
#8  0x00002af8bcae250d in dht::RPCServer::qt_invoke (this=0x92a830, _id=2, 
    _o=0x7fffee4d9a90) at rpcserver.moc:82
#9  0x00002af8be87055c in QObject::activate_signal (this=0x92a700, 
    clist=<value optimized out>, o=0x7fffee4d9a90) at kernel/qobject.cpp:2356
#10 0x00002af8be871203 in QObject::activate_signal (this=0x7fffee4d9890, 
    signal=<value optimized out>) at kernel/qobject.cpp:2325
#11 0x00002af8bdcb21af in KNetwork::KClientSocketBase::qt_invoke (
    this=0x92a700, _id=2, _o=0x7fffee4d9b80) at kclientsocketbase.moc:204
#12 0x00002af8bdcb224a in KNetwork::KDatagramSocket::qt_invoke (
    this=0x92a700, _id=2, _o=0x7fffee4d9b80) at kdatagramsocket.moc:87
#13 0x00002af8be87055c in QObject::activate_signal (this=0x895920, 
    clist=<value optimized out>, o=0x7fffee4d9b80) at kernel/qobject.cpp:2356
#14 0x00002af8be871135 in QObject::activate_signal (this=0x895920, 
    signal=<value optimized out>, param=<value optimized out>)
    at kernel/qobject.cpp:2449
#15 0x00002af8be88ac6b in QSocketNotifier::event (this=0x895920, 
    e=0x7fffee4d9e80) at kernel/qsocketnotifier.cpp:258
#16 0x00002af8be819fe5 in QApplication::internalNotify (
    this=<value optimized out>, receiver=0x895920, e=0x7fffee4d9e80)
    at kernel/qapplication.cpp:2635
#17 0x00002af8be81abe7 in QApplication::notify (this=0x7fffee4da0e0, 
    receiver=0x895920, e=0x7fffee4d9e80) at kernel/qapplication.cpp:2358
#18 0x00002af8bdc7abee in KApplication::notify (this=0x7fffee4da0e0, 
    receiver=0x895920, event=0x7fffee4d9e80) at kapplication.cpp:550
#19 0x00002af8be8101cb in QEventLoop::activateSocketNotifiers (this=0x5f0ff0)
    at kernel/qapplication.h:496
#20 0x00002af8be7d0ef3 in QEventLoop::processEvents (this=0x5f0ff0, 
    flags=<value optimized out>) at kernel/qeventloop_x11.cpp:383
#21 0x00002af8be82e722 in QEventLoop::enterLoop (this=0x7fffee4d9890)
    at kernel/qeventloop.cpp:198
#22 0x00002af8be82e5d2 in QEventLoop::exec (this=0x7fffee4d9890)
    at kernel/qeventloop.cpp:145
#23 0x000000000042eaab in main (argc=<value optimized out>, 
    argv=0x7fffee4da418) at main.cpp:125
#24 0x00002af8c0d2d374 in __libc_start_main (main=0x42e7a0 <main>, argc=3, 
    ubp_av=0x7fffee4da418, init=<value optimized out>, 
    fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fffee4da408) at libc-start.c:238
#25 0x0000000000423459 in _start ()
Current language:  auto; currently c
Comment 1 Joris Guisson 2007-04-19 20:33:39 UTC
SVN commit 655895 by guisson:

Fixed crash in DHT, failed to check for empty QByteArray

BUG: 144416



 M  +6 -1      rpcmsg.cpp  


--- trunk/extragear/network/ktorrent/libktorrent/kademlia/rpcmsg.cpp #655894:655895
@@ -160,7 +160,12 @@
 		}
 			
 		
-		Uint8 mtid = (Uint8)dict->getValue(TID)->data().toByteArray().at(0);
+		QByteArray ba = dict->getValue(TID)->data().toByteArray();
+		// check for empty byte arrays should prevent 144416
+		if (ba.size() == 0)
+			return 0;
+		
+		Uint8 mtid = (Uint8)ba.at(0);
 		// find the call
 		const RPCCall* c = srv->findCall(mtid);
 		if (!c)
Comment 2 Joris Guisson 2007-04-24 14:57:20 UTC
*** Bug 144603 has been marked as a duplicate of this bug. ***
Comment 3 Tommi Tervo 2007-04-24 17:04:34 UTC
*** Bug 144610 has been marked as a duplicate of this bug. ***
Comment 4 Aaron D. Campbell 2007-04-24 17:11:32 UTC
So when exactly was this fixed?  Is there a specific version I need to upgrade to?
Comment 5 berg 2007-04-24 17:48:18 UTC
Are you sure that http://bugs.kde.org/show_bug.cgi?id=144603 and http://bugs.kde.org/show_bug.cgi?id=144610 is the same this bug??
in this bug, there is not reference to library /usr/lib/libqt-mt.so.3 who have many reference those bugs 
line 10,11 and from 16 to 28 

#10 0xb6e3188b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
(...)
#28 0xb6dca609 in QApplication::exec () from /usr/lib/libqt-mt.so.3 
Comment 6 Joris Guisson 2007-04-24 18:17:38 UTC
Yes this the same bloody bug which has been reported about six times in the last 3 days.
Comment 7 Joris Guisson 2007-04-24 20:13:25 UTC
*** Bug 144622 has been marked as a duplicate of this bug. ***
Comment 8 Aaron D. Campbell 2007-04-24 20:30:07 UTC
I assume there are so many duplicates being posted because (Ku|Edu|U)buntu Feisty seems to suffer from it, and there are a bunch of new users out there now that it was released.
Still, it says that this is RESOLVED, but what version has the fix?
Comment 9 Joris Guisson 2007-04-25 11:13:58 UTC
*** Bug 144634 has been marked as a duplicate of this bug. ***
Comment 10 Joris Guisson 2007-04-25 11:15:36 UTC
Like I already mentioned in every dupe, the fix is in 2.1.4
Comment 11 Joris Guisson 2007-04-25 15:29:20 UTC
*** Bug 144656 has been marked as a duplicate of this bug. ***
Comment 12 Joris Guisson 2007-04-25 15:30:24 UTC
*** Bug 144658 has been marked as a duplicate of this bug. ***
Comment 13 Joris Guisson 2007-04-26 11:10:53 UTC
*** Bug 144705 has been marked as a duplicate of this bug. ***
Comment 14 Joris Guisson 2007-04-26 11:11:38 UTC
*** Bug 144704 has been marked as a duplicate of this bug. ***
Comment 15 Joris Guisson 2007-04-26 18:52:34 UTC
*** Bug 144716 has been marked as a duplicate of this bug. ***
Comment 16 Joris Guisson 2007-04-27 10:34:30 UTC
*** Bug 144737 has been marked as a duplicate of this bug. ***
Comment 17 Joris Guisson 2007-04-27 10:35:07 UTC
*** Bug 144736 has been marked as a duplicate of this bug. ***
Comment 18 Ivan Vasic 2007-04-27 23:30:45 UTC
*** Bug 144768 has been marked as a duplicate of this bug. ***
Comment 19 Tommi Tervo 2007-04-28 11:24:00 UTC
*** Bug 144776 has been marked as a duplicate of this bug. ***
Comment 20 Joris Guisson 2007-04-28 13:10:14 UTC
*** Bug 144790 has been marked as a duplicate of this bug. ***
Comment 21 Ivan Vasic 2007-04-29 14:17:06 UTC
*** Bug 144824 has been marked as a duplicate of this bug. ***
Comment 22 Ivan Vasic 2007-04-29 14:18:58 UTC
*** Bug 144813 has been marked as a duplicate of this bug. ***
Comment 23 Joris Guisson 2007-04-29 20:35:00 UTC
*** Bug 144833 has been marked as a duplicate of this bug. ***
Comment 24 Joris Guisson 2007-05-01 11:54:39 UTC
*** Bug 144808 has been marked as a duplicate of this bug. ***
Comment 25 Joris Guisson 2007-05-01 11:56:23 UTC
*** Bug 144908 has been marked as a duplicate of this bug. ***
Comment 26 Joris Guisson 2007-05-01 11:57:12 UTC
*** Bug 144906 has been marked as a duplicate of this bug. ***
Comment 27 Tommi Tervo 2007-05-01 19:53:31 UTC
*** Bug 144926 has been marked as a duplicate of this bug. ***
Comment 28 Tommi Tervo 2007-05-03 08:50:58 UTC
*** Bug 144971 has been marked as a duplicate of this bug. ***
Comment 29 Joris Guisson 2007-05-03 19:34:02 UTC
*** Bug 144991 has been marked as a duplicate of this bug. ***
Comment 30 Joris Guisson 2007-05-04 18:56:29 UTC
*** Bug 145025 has been marked as a duplicate of this bug. ***
Comment 31 Joris Guisson 2007-05-04 20:46:43 UTC
*** Bug 145048 has been marked as a duplicate of this bug. ***
Comment 32 Joris Guisson 2007-05-05 11:54:21 UTC
*** Bug 145066 has been marked as a duplicate of this bug. ***
Comment 33 Joris Guisson 2007-05-05 18:32:49 UTC
*** Bug 145069 has been marked as a duplicate of this bug. ***
Comment 34 Joris Guisson 2007-05-05 18:33:40 UTC
*** Bug 145070 has been marked as a duplicate of this bug. ***
Comment 35 Joris Guisson 2007-05-05 18:35:07 UTC
*** Bug 145071 has been marked as a duplicate of this bug. ***
Comment 36 Ivan Vasic 2007-05-05 21:25:56 UTC
*** Bug 145088 has been marked as a duplicate of this bug. ***
Comment 37 Ivan Vasic 2007-05-06 10:09:05 UTC
*** Bug 145098 has been marked as a duplicate of this bug. ***
Comment 38 Tommi Tervo 2007-05-08 21:13:40 UTC
*** Bug 145201 has been marked as a duplicate of this bug. ***
Comment 39 Tommi Tervo 2007-05-09 09:30:13 UTC
*** Bug 145208 has been marked as a duplicate of this bug. ***
Comment 40 Joris Guisson 2007-05-10 08:48:52 UTC
*** Bug 145255 has been marked as a duplicate of this bug. ***
Comment 41 Joris Guisson 2007-05-10 12:58:16 UTC
*** Bug 145260 has been marked as a duplicate of this bug. ***
Comment 42 Joris Guisson 2007-05-11 12:01:58 UTC
*** Bug 145304 has been marked as a duplicate of this bug. ***
Comment 43 Joris Guisson 2007-05-11 12:06:29 UTC
*** Bug 145273 has been marked as a duplicate of this bug. ***
Comment 44 Joris Guisson 2007-05-11 12:06:56 UTC
*** Bug 145272 has been marked as a duplicate of this bug. ***
Comment 45 Adrian Hesketh 2007-05-11 14:58:23 UTC
By the way, I've found that disabling DHT has stopped the application from crashing.
Comment 46 Cláudio F. Gil 2007-05-11 15:25:05 UTC
Same here.
Comment 47 Bram Schoenmakers 2007-05-16 22:56:05 UTC
*** Bug 145509 has been marked as a duplicate of this bug. ***
Comment 48 Bram Schoenmakers 2007-05-19 01:57:26 UTC
*** Bug 145659 has been marked as a duplicate of this bug. ***
Comment 49 Joris Guisson 2007-05-19 15:51:37 UTC
*** Bug 145675 has been marked as a duplicate of this bug. ***
Comment 50 Bram Schoenmakers 2007-05-20 01:08:18 UTC
*** Bug 145689 has been marked as a duplicate of this bug. ***
Comment 51 Bram Schoenmakers 2007-05-20 10:09:31 UTC
*** Bug 145694 has been marked as a duplicate of this bug. ***
Comment 52 Joris Guisson 2007-05-23 20:29:17 UTC
*** Bug 145869 has been marked as a duplicate of this bug. ***
Comment 53 Khalim3 2007-05-23 21:50:14 UTC
2 things:

1) For me, it still crashes randomly when not using DHT

2) When i try to stop or start multiple torrents at once, there is a 50% Chance that it will crash
Comment 54 Joris Guisson 2007-05-24 19:41:22 UTC
Then that is another bug, open a new bug and post backtrace, and don't forget to mention the version of ktorrent you are using
Comment 55 Khalim3 2007-05-24 21:44:37 UTC
UPDATE: FIXED! The error is with the Ubuntu that is the EXE version (https://wiki.ubuntu.com/install.exe/Prototype). I installed from the CD that i recieved from Ubuntu (7.04) and uninstalled the exe one. and the problem is no more!
Comment 56 Bram Schoenmakers 2007-05-30 08:29:51 UTC
*** Bug 146137 has been marked as a duplicate of this bug. ***
Comment 57 Bram Schoenmakers 2007-05-31 23:30:12 UTC
*** Bug 146148 has been marked as a duplicate of this bug. ***
Comment 58 Joris Guisson 2007-06-03 10:30:05 UTC
*** Bug 146310 has been marked as a duplicate of this bug. ***
Comment 59 Joris Guisson 2007-06-09 12:07:44 UTC
*** Bug 146558 has been marked as a duplicate of this bug. ***
Comment 60 Bram Schoenmakers 2007-06-10 00:43:18 UTC
*** Bug 146604 has been marked as a duplicate of this bug. ***
Comment 61 Bram Schoenmakers 2007-06-10 23:54:56 UTC
*** Bug 146645 has been marked as a duplicate of this bug. ***
Comment 62 Joris Guisson 2007-06-11 08:10:02 UTC
*** Bug 146656 has been marked as a duplicate of this bug. ***
Comment 63 Joris Guisson 2007-06-14 12:05:37 UTC
*** Bug 146772 has been marked as a duplicate of this bug. ***
Comment 64 Kristian Lund 2007-06-19 10:58:43 UTC
Uhm - I'm one of the newbies running feisty and I get this problem too. I am using KTorrent 2.1 (KDE 3.5.6) and I don' seem to have an upgrade function in Adept or anywhere.
Did I report this the right place and why is this being bug "resolved", what is the fix, if any?

Regards,
   Kristian Lund
Comment 65 Joris Guisson 2007-06-19 11:22:13 UTC
Upgrade to 2.1.4 or later, there are feisty packages available on the ktorrent.org
Comment 66 Marijn Schouten 2007-06-19 11:23:55 UTC
Newbies should report bugs exclusively with their distro... it would've prevented the million duplicates...
The fix is to upgrade. Ask for help in #ubuntu...
Comment 67 zebidiah 2007-06-19 11:45:17 UTC
> ------- Additional Comments From lundse gmail com  2007-06-19 10:58
> ------- Uhm - I'm one of the newbies running feisty and I get this
> problem too. I am using KTorrent 2.1 (KDE 3.5.6) and I don' seem to
> have an upgrade function in Adept or anywhere. Did I report this the
> right place and why is this being bug "resolved", what is the fix, if
> any?
>
> Regards,
>    Kristian Lund


Switch off DHT: Settings > Configure KTorrent > General and uncheck the 
box "Use DHT to get additional peers"

		Zebidiah
Comment 68 Joris Guisson 2007-06-25 09:08:16 UTC
*** Bug 147183 has been marked as a duplicate of this bug. ***
Comment 69 Tommi Tervo 2007-06-26 14:12:35 UTC
*** Bug 147242 has been marked as a duplicate of this bug. ***
Comment 70 Joris Guisson 2007-07-21 12:03:55 UTC
*** Bug 148078 has been marked as a duplicate of this bug. ***
Comment 71 Joris Guisson 2007-07-22 11:34:54 UTC
*** Bug 148099 has been marked as a duplicate of this bug. ***
Comment 72 PhobosK 2007-07-24 22:01:11 UTC
Should be reopened...!
Please see the report for bug 148176...
Comment 73 Joris Guisson 2007-07-25 11:34:05 UTC
No it shouldn't
Comment 74 slotlover 2007-07-28 04:18:13 UTC
i really could care less about the contents of the bug! KTORRENTS IS STILL CRASHING !!! RANDOMLLY !!! I COULD POST A FOREST WORTH OF EMAILS AND IT DONT/WONT MAKEA DIFFERENCE .

ITS NOT WORKING RIGHT!! HELLO A CRASH IS A CRASH !! 

ILL PUT IT IN ENGLISH FOR YOU..... UNTILL THE UPGRADE TO FEISTY FAWN

IT NEVER FREAKING CRASHED !! EVER!! SO JUST FIX THE FLIPPING THING ALLREADY

SHEESH WHAT PART OF THAT IS TOO HARD FOR YOU GUYS TO UNDERSTAND !!

I KNOW IM NOT THE ONLY ONE POSTING THAT KTORRENTS CRASH'S.....

THANK YOU FOR ALL OF THE ATTENTION TO FIXING THIS PODS





Comment 75 Aaron D. Campbell 2007-07-28 05:47:43 UTC
It has been mentioned a few times that "the fix is in 2.1.4" ...If you have at least 2.1.4, this bug is FIXED.  Thus the status of "RESOLVED" and the resolution as "FIXED"
Comment 76 Joris Guisson 2007-07-28 11:49:25 UTC
Mister MY CAPSLOCK KEY IS STUCK, what version are you running ?
Comment 77 Joris Guisson 2007-08-03 11:12:41 UTC
*** Bug 148461 has been marked as a duplicate of this bug. ***
Comment 78 Joris Guisson 2007-08-04 12:18:54 UTC
*** Bug 148500 has been marked as a duplicate of this bug. ***
Comment 79 Joris Guisson 2007-09-03 12:21:44 UTC
*** Bug 149511 has been marked as a duplicate of this bug. ***
Comment 80 Joris Guisson 2007-09-05 08:07:00 UTC
*** Bug 149551 has been marked as a duplicate of this bug. ***
Comment 81 Tommi Tervo 2007-09-24 16:17:12 UTC
*** Bug 150152 has been marked as a duplicate of this bug. ***
Comment 82 Tommi Tervo 2007-09-28 13:19:57 UTC
*** Bug 150292 has been marked as a duplicate of this bug. ***
Comment 83 Joris Guisson 2007-10-01 08:18:18 UTC
*** Bug 150356 has been marked as a duplicate of this bug. ***
Comment 84 Daniel L McGrew 2008-10-17 03:37:39 UTC
KTorrent crashed and caused the signal 11 (SIGSEGV)

This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Comment 85 JS 2008-11-10 02:16:31 UTC
Created attachment 28446 [details]
BackLog
Comment 86 JS 2008-11-10 14:52:08 UTC
I'm experiencing the same problem.

Running fedora 9, KDE 4.1.2 and kTorrent 3.1.4
The backlog is attached in previous message.
Comment 87 Joris Guisson 2008-11-10 16:32:01 UTC
First of all, this bug has long been fixed, second your problem has nothing to do with this, and third your problem has already been fixed. The fix will be part of 3.1.5.
Comment 88 JS 2008-11-10 21:21:11 UTC
<Tnx for the prompt reply.

I'll wait for 3.1.5 and stick to Deluge in the mean time.
Comment 89 Jordan 2009-02-06 01:29:16 UTC
Created attachment 31010 [details]
A Fatal Error Occurred
The application KTorrent (ktorrent) crashed and caused the signal 11 (SIGSEGV).