Bug 274544 - ktorrent crash
Summary: ktorrent crash
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
: 265492 274401 274944 275950 278555 284683 286344 286460 287508 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-30 20:52 UTC by George R. Goffe
Modified: 2011-12-07 17:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
output of gdb --args /usr/bin/ktorrent --nofork with "gdb where" command (4.97 KB, application/octet-stream)
2011-05-30 20:52 UTC, George R. Goffe
Details
screenshot of this wiget. (34.13 KB, image/jpeg)
2011-06-15 10:24 UTC, George R. Goffe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description George R. Goffe 2011-05-30 20:52:53 UTC
Created attachment 60482 [details]
output of gdb --args /usr/bin/ktorrent --nofork with "gdb where" command

Version:           4.6 (using KDE 4.6.3) 
OS:                Linux

clipper bash-4.1 ~# gdb --args /usr/bin/ktorrent --nofork
GNU gdb (GDB) Fedora (7.2-51.fc14)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/ktorrent...Reading symbols from /usr/lib/debug/usr/bin/ktorrent.debug...done.
done.
(gdb) run
Starting program: /usr/bin/ktorrent --nofork
[Thread debugging using libthread_db enabled]
warning: "/usr/lib/debug/usr/lib/sse2/libgmp.so.3.5.0.debug": separate debug info file has no debug info
warning: "/usr/lib/debug/usr/lib/libQt3Support.so.4.7.2.debug": separate debug info file has no debug info
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
[New Thread 0xb5eb5b70 (LWP 3396)]
[Thread 0xb5eb5b70 (LWP 3396) exited]
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
[New Thread 0xb5eb5b70 (LWP 3448)]
[New Thread 0xaaa15b70 (LWP 3451)]
[New Thread 0xaa214b70 (LWP 3452)]
[New Thread 0xa98ffb70 (LWP 3453)]
[New Thread 0xa90feb70 (LWP 3454)]
[New Thread 0xa88fdb70 (LWP 3455)]
[Thread 0xa88fdb70 (LWP 3455) exited]
[Thread 0xa98ffb70 (LWP 3453) exited]
[Thread 0xa90feb70 (LWP 3454) exited]
[New Thread 0xa90feb70 (LWP 3458)]
[New Thread 0xa98ffb70 (LWP 3459)]
[New Thread 0xa88fdb70 (LWP 3460)]
[Thread 0xaaa15b70 (LWP 3451) exited]
[New Thread 0xaaa15b70 (LWP 3461)]
[Thread 0xaa214b70 (LWP 3452) exited]
[New Thread 0xaa214b70 (LWP 3462)]
[Thread 0xaaa15b70 (LWP 3461) exited]
[Thread 0xa98ffb70 (LWP 3459) exited]
[Thread 0xa90feb70 (LWP 3458) exited]
[New Thread 0xa90feb70 (LWP 3465)]
[New Thread 0xa98ffb70 (LWP 3466)]
[New Thread 0xaaa15b70 (LWP 3467)]
[Thread 0xaaa15b70 (LWP 3467) exited]
[Thread 0xa98ffb70 (LWP 3466) exited]
[Thread 0xa90feb70 (LWP 3465) exited]
[New Thread 0xaaa15b70 (LWP 3469)]
[New Thread 0xa98ffb70 (LWP 3470)]
[New Thread 0xa90feb70 (LWP 3471)]
[New Thread 0xa7cffb70 (LWP 3473)]
[Thread 0xa90feb70 (LWP 3471) exited]
[Thread 0xaaa15b70 (LWP 3469) exited]
[Thread 0xa88fdb70 (LWP 3460) exited]
[New Thread 0xaaa15b70 (LWP 3477)]
[New Thread 0xa88fdb70 (LWP 3478)]
[Thread 0xaa214b70 (LWP 3462) exited]
[Thread 0xa98ffb70 (LWP 3470) exited]
[Thread 0xaaa15b70 (LWP 3477) exited]
[New Thread 0xaaa15b70 (LWP 3479)]
[New Thread 0xa98ffb70 (LWP 3480)]
[New Thread 0xaa214b70 (LWP 3481)]
[Thread 0xa98ffb70 (LWP 3480) exited]
[Thread 0xaaa15b70 (LWP 3479) exited]
[Thread 0xaa214b70 (LWP 3481) exited]
[New Thread 0xaa214b70 (LWP 3482)]
[New Thread 0xaaa15b70 (LWP 3483)]
[New Thread 0xa98ffb70 (LWP 3484)]
[Thread 0xaaa15b70 (LWP 3483) exited]
[Thread 0xa7cffb70 (LWP 3473) exited]
[Thread 0xa88fdb70 (LWP 3478) exited]
[New Thread 0xa88fdb70 (LWP 3485)]
[New Thread 0xa7cffb70 (LWP 3486)]
[New Thread 0xaaa15b70 (LWP 3487)]
[Thread 0xaa214b70 (LWP 3482) exited]
[Thread 0xaaa15b70 (LWP 3487) exited]
[Thread 0xa98ffb70 (LWP 3484) exited]
[New Thread 0xaaa15b70 (LWP 3490)]
[New Thread 0xa98ffb70 (LWP 3491)]
[New Thread 0xaa214b70 (LWP 3492)]
[Thread 0xaa214b70 (LWP 3492) exited]
[Thread 0xa88fdb70 (LWP 3485) exited]
[Thread 0xaaa15b70 (LWP 3490) exited]
[New Thread 0xaaa15b70 (LWP 3493)]
[New Thread 0xa88fdb70 (LWP 3494)]
[New Thread 0xaa214b70 (LWP 3495)]
[Thread 0xa7cffb70 (LWP 3486) exited]
[New Thread 0xa7cffb70 (LWP 3498)]
[Thread 0xa7cffb70 (LWP 3498) exited]
[New Thread 0xa7cffb70 (LWP 3499)]
[New Thread 0xa90feb70 (LWP 3508)]
[New Thread 0xa70eeb70 (LWP 3509)]
[New Thread 0xa68edb70 (LWP 3510)]
[New Thread 0xa60ecb70 (LWP 3511)]
[New Thread 0xa58ebb70 (LWP 3512)]
[New Thread 0xa50eab70 (LWP 3514)]
[New Thread 0xa48e9b70 (LWP 3515)]
[New Thread 0xa40e8b70 (LWP 3516)]

Program received signal SIGSEGV, Segmentation fault.
0x023f8a18 in QNativeSocketEnginePrivate::nativeSelect (this=0x20, timeout=0, checkRead=false, checkWrite=true, selectForRead=0x0, selectForWrite=0x0)
    at socket/qnativesocketengine_unix.cpp:1052
1052        *selectForRead = FD_ISSET(socketDescriptor, &fdread);
(gdb) w
Ambiguous command "w": watch, wh, whatis, where, while, while-stepping, winheight, ws.
(gdb) where
#0  0x023f8a18 in QNativeSocketEnginePrivate::nativeSelect (this=0x20, timeout=0, checkRead=false, checkWrite=true, selectForRead=0x0, selectForWrite=0x0)
    at socket/qnativesocketengine_unix.cpp:1052
#1  0x00182002 in QMngHandler::canRead (device=Cannot access memory at address 0x38000008
) at ../../../gui/image/qmnghandler.cpp:401
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)


Reproducible: Always

Steps to Reproduce:
running ktorrent with multiple torrents active. over 300.

ktorrent just started failing.

running ktorrent with "gdb --args /usr/bin/ktorrent --nofork". shows failure. see included file.

Actual Results:  
crash

Expected Results:  
no crash

Fedora Core 14, fully up to date. 

drkonqi invoked but finds the stack trace not useful. Attempts at adding debug info fail to produce useful results.
Comment 1 Joris Guisson 2011-05-31 20:04:21 UTC
Use the bt command of gdb to get a full backtrace, also what version is this ?
Comment 2 George R. Goffe 2011-06-01 06:37:47 UTC
Joris,

First, your questions.

ktorrent --version reports:

Qt: 4.7.2
KDE Development Platform: 4.6.3 (4.6.3)
KTorrent: 4.1.1

rpm -qa | grep ktorrent
kde-plasma-ktorrent-4.1.1-1.fc14.i686
ktorrent-libs-4.1.1-1.fc14.i686
ktorrent-debuginfo-4.1.1-1.fc14.i686
libktorrent-1.1.1-1.fc14.i686
ktorrent-4.1.1-1.fc14.i686
libktorrent-debuginfo-1.1.1-1.fc14.i686

I was watching the log in ~/.kde/share/apps/ktorrent and noticed a message about an ipv6 ip address and the word "accepted". I turned off everything I could in the system that relates to ipv6, i.e., /etc/services. I also switched to a 10/100 network from a 10/100/1000 network because I share this network with a friend. I'm wondering if the network uncovered a timing problem?

I'll try to switch back to the 10/100/1000 network tomorrow and will report the results at that time.

So far, I have had no problems.

If you have beta code you'd like to test, I'll be more than happy to test it for you.

Thanks,

George...
Comment 3 Joris Guisson 2011-06-01 20:53:05 UTC
IPv6 should be nothing to worry about, ktorrent will work fine over it.
Comment 4 George R. Goffe 2011-06-03 03:21:55 UTC
Joris,

Hmmmm...

I enabled the 10/100/1000 network last night and ran ktorrent all night without any problems. 

I'm perplexed...

Maybe I should re-enable ipv6? What do you think?

George...
Comment 5 George R. Goffe 2011-06-03 05:07:01 UTC
Joris,

So much for my theory.

Tonight I started ktorrent without changing anything... Here's what I'm getting. Sigh...

George...

gdb --args /usr/bin/ktorrent --nofork
GNU gdb (GDB) Fedora (7.2-51.fc14)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/ktorrent...Reading symbols from /usr/lib/debug/usr/bin/ktorrent.debug...done.
done.
(gdb) run
Starting program: /usr/bin/ktorrent --nofork
[Thread debugging using libthread_db enabled]
warning: "/usr/lib/debug/usr/lib/sse2/libgmp.so.3.5.0.debug": separate debug info file has no debug info
warning: "/usr/lib/debug/usr/lib/libQt3Support.so.4.7.2.debug": separate debug info file has no debug info
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work 
[New Thread 0xb5eb5b70 (LWP 7315)]
[Thread 0xb5eb5b70 (LWP 7315) exited]
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
[New Thread 0xb5eb5b70 (LWP 7376)]
[New Thread 0x9e558b70 (LWP 7381)]
[New Thread 0x9dd57b70 (LWP 7382)]
[New Thread 0x9d556b70 (LWP 7383)]
[New Thread 0x9cbffb70 (LWP 7384)]
[New Thread 0x9c1ffb70 (LWP 7385)]
[Thread 0x9cbffb70 (LWP 7384) exited]
[Thread 0x9c1ffb70 (LWP 7385) exited]
[New Thread 0x9c1ffb70 (LWP 7391)]
[New Thread 0x9cbffb70 (LWP 7392)]
[Thread 0x9cbffb70 (LWP 7392) exited]
[Thread 0x9e558b70 (LWP 7381) exited]
[New Thread 0x9e558b70 (LWP 7397)]
[New Thread 0x9cbffb70 (LWP 7398)]
[Thread 0x9dd57b70 (LWP 7382) exited]
[Thread 0x9d556b70 (LWP 7383) exited]
[Thread 0x9e558b70 (LWP 7397) exited]
[New Thread 0x9e558b70 (LWP 7401)]
[New Thread 0x9d556b70 (LWP 7402)]
[New Thread 0x9dd57b70 (LWP 7403)]
[Thread 0x9e558b70 (LWP 7401) exited]
[New Thread 0x9e558b70 (LWP 7406)]
[Thread 0x9c1ffb70 (LWP 7391) exited]
[New Thread 0x9b9feb70 (LWP 7407)]
[Thread 0x9e558b70 (LWP 7406) exited]
[Thread 0x9dd57b70 (LWP 7403) exited]
[Thread 0x9d556b70 (LWP 7402) exited]
[New Thread 0x9e558b70 (LWP 7409)]
[New Thread 0x9d556b70 (LWP 7410)]
[New Thread 0x9dd57b70 (LWP 7411)]
[Thread 0x9e558b70 (LWP 7409) exited]
[Thread 0x9dd57b70 (LWP 7411) exited]
[Thread 0x9cbffb70 (LWP 7398) exited]
[New Thread 0x9dd57b70 (LWP 7413)]
[New Thread 0x9cbffb70 (LWP 7414)]
[New Thread 0x9e558b70 (LWP 7415)]
[Thread 0x9b9feb70 (LWP 7407) exited]
[Thread 0x9cbffb70 (LWP 7414) exited]
[Thread 0x9dd57b70 (LWP 7413) exited]
[New Thread 0x9dd57b70 (LWP 7416)]
[New Thread 0x9cbffb70 (LWP 7417)]
[New Thread 0x9b9feb70 (LWP 7418)]
[Thread 0x9dd57b70 (LWP 7416) exited]
[Thread 0x9cbffb70 (LWP 7417) exited]
[Thread 0x9e558b70 (LWP 7415) exited]
[Thread 0x9d556b70 (LWP 7410) exited]
[Thread 0x9b9feb70 (LWP 7418) exited]
[New Thread 0x9b9feb70 (LWP 7423)]
[New Thread 0x9d556b70 (LWP 7424)]
[New Thread 0x9e558b70 (LWP 7425)]
[New Thread 0x9cbffb70 (LWP 7426)]
[New Thread 0x9dd57b70 (LWP 7427)]
[Thread 0x9b9feb70 (LWP 7423) exited]
[New Thread 0x9b9feb70 (LWP 7428)]
[New Thread 0x9b1fdb70 (LWP 7450)]
[New Thread 0x9a9fcb70 (LWP 7451)]
[New Thread 0x9a1fbb70 (LWP 7452)]
[New Thread 0x999fab70 (LWP 7453)]
[New Thread 0x991f9b70 (LWP 7454)]
[New Thread 0x989f8b70 (LWP 7456)]
[New Thread 0x981f7b70 (LWP 7457)]
[New Thread 0x979f6b70 (LWP 7458)]

Program received signal SIGSEGV, Segmentation fault.
0x023f8a18 in QNativeSocketEnginePrivate::nativeSelect (this=0x0, timeout=109051904, checkRead=false, checkWrite=false, selectForRead=0x0, selectForWrite=0x0)
    at socket/qnativesocketengine_unix.cpp:1052
1052        *selectForRead = FD_ISSET(socketDescriptor, &fdread);
(gdb) bt
#0  0x023f8a18 in QNativeSocketEnginePrivate::nativeSelect (this=0x0, timeout=109051904, checkRead=false, checkWrite=false, selectForRead=0x0, selectForWrite=0x0)
    at socket/qnativesocketengine_unix.cpp:1052
#1  0x00000000 in ?? ()
(gdb) bt
#0  0x023f8a18 in QNativeSocketEnginePrivate::nativeSelect (this=0x0, timeout=109051904, checkRead=false, checkWrite=false, selectForRead=0x0, selectForWrite=0x0)                              
    at socket/qnativesocketengine_unix.cpp:1052                                                                                                                                                 
#1  0x00000000 in ?? ()                                                                                                                                                                         
(gdb) where                                                                                                                                                                                     
#0  0x023f8a18 in QNativeSocketEnginePrivate::nativeSelect (this=0x0, timeout=109051904, checkRead=false, checkWrite=false, selectForRead=0x0, selectForWrite=0x0)                              
    at socket/qnativesocketengine_unix.cpp:1052                                                                                                                                                 
#1  0x00000000 in ?? ()                                                                                                                                                                         
(gdb)
Comment 6 George R. Goffe 2011-06-03 07:13:17 UTC
Joris,

I also get a bunch of these messages. A google search says that it's deprecated.

George...

Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QHttp: empty path requested is invalid -- using '/'
Warning: QHttp: empty path requested is invalid -- using '/'
Comment 7 Joris Guisson 2011-06-05 10:49:46 UTC
*** Bug 274401 has been marked as a duplicate of this bug. ***
Comment 8 Joris Guisson 2011-06-05 10:51:17 UTC
*** Bug 274944 has been marked as a duplicate of this bug. ***
Comment 9 Joris Guisson 2011-06-05 10:57:51 UTC
The fact that QHttp is deprecated, is irrelevant.

All of these crashes seem to be related to Qt's socket handling code.

How many torrents are you running ? And are there torrents with a lot of files in them ?


(In reply to comment #6)
> Joris,
> 
> I also get a bunch of these messages. A google search says that it's
> deprecated.
> 
> George...
> 
> Warning: QHttp: empty path requested is invalid -- using '/'
> Warning: QHttp: empty path requested is invalid -- using '/'
> Warning: QHttp: empty path requested is invalid -- using '/'
> Warning: QHttp: empty path requested is invalid -- using '/'
> Warning: QHttp: empty path requested is invalid -- using '/'
> Warning: QHttp: empty path requested is invalid -- using '/'
> Warning: QHttp: empty path requested is invalid -- using '/'
> Warning: QHttp: empty path requested is invalid -- using '/'
Comment 10 George R. Goffe 2011-06-11 09:39:01 UTC
Joris,

Over 200 torrents at times...

Some torrents have possibly 100 files...

Does this help.

George...
Comment 11 Joris Guisson 2011-06-11 12:00:24 UTC
Could be that you are hitting the limit on the number of open files. 

Would it be possible to run ktorrent under valgrind ?

valgrind --tool=memcheck --log-file=vg.log --num-callers=50 /usr/bin/ktorrent --nofork

When it crashes post the vg.log file here.
Comment 12 George R. Goffe 2011-06-12 07:05:56 UTC
Joris,

I'll do this in the next day or so...

I'm also starting to see torrents that say they're complete but when I run "check" on them, there are missing parts. Make a new bug for this?

George...
Comment 13 George R. Goffe 2011-06-12 21:23:20 UTC
Joris,

valgrind --version
valgrind-3.5.0

valgrind --tool=memcheck --log-file=vg.log --num-callers=50 /usr/bin/ktorrent --nofork
Segmentation fault (core dumped)

This GDB called out a debug info which "my" yum could not find.

gdb /usr/bin/ktorrent  vg.log.core.13094
GNU gdb (GDB) Fedora (7.2-51.fc14)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/ktorrent...Reading symbols from /usr/lib/debug/usr/bin/ktorrent.debug...done.
done.
[New Thread 13094]
Reading symbols from /usr/lib/valgrind/vgpreload_core-x86-linux.so...done.
Loaded symbols for /usr/lib/valgrind/vgpreload_core-x86-linux.so
Reading symbols from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so...done.
Loaded symbols for /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so
Reading symbols from /usr/lib/libktorrent.so.3.0.1...Reading symbols from /usr/lib/debug/usr/lib/libktorrent.so.3.0.1.debug...done.
done.
Loaded symbols for /usr/lib/libktorrent.so.3.0.1
Reading symbols from /usr/lib/libktcore.so.12.0.1...Reading symbols from /usr/lib/debug/usr/lib/libktcore.so.12.0.1.debug...done.
done.
Loaded symbols for /usr/lib/libktcore.so.12.0.1
Reading symbols from /usr/lib/libsolid.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libsolid.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libsolid.so.4.6.0
Reading symbols from /usr/lib/libkparts.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkparts.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkparts.so.4.6.0
Reading symbols from /usr/lib/libknotifyconfig.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libknotifyconfig.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libknotifyconfig.so.4.6.0
Reading symbols from /usr/lib/libkio.so.5.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkio.so.5.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkio.so.5.6.0
Reading symbols from /usr/lib/libnepomukutils.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libnepomukutils.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libnepomukutils.so.4.6.0
Reading symbols from /usr/lib/libQtNetwork.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQtNetwork.so.4.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libQtNetwork.so.4.7.2
Reading symbols from /usr/lib/libQtXml.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQtXml.so.4.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libQtXml.so.4.7.2
Reading symbols from /usr/lib/libnepomuk.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libnepomuk.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libnepomuk.so.4.6.0
Reading symbols from /usr/lib/libkdeui.so.5.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkdeui.so.5.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkdeui.so.5.6.0
Reading symbols from /usr/lib/libQtSvg.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQtSvg.so.4.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libQtSvg.so.4.7.2
Reading symbols from /usr/lib/libsoprano.so.4.3.0...Reading symbols from /usr/lib/debug/usr/lib/libsoprano.so.4.3.0.debug...done.
done.
Loaded symbols for /usr/lib/libsoprano.so.4.3.0
Reading symbols from /usr/lib/libkdecore.so.5.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkdecore.so.5.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkdecore.so.5.6.0
Reading symbols from /usr/lib/libQtCore.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQtCore.so.4.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libQtCore.so.4.7.2
Reading symbols from /lib/libpthread-2.13.so...Reading symbols from /usr/lib/debug/lib/libpthread-2.13.so.debug...done.
[Thread debugging using libthread_db enabled]
done.
Loaded symbols for /lib/libpthread-2.13.so
Reading symbols from /usr/lib/libQtDBus.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQtDBus.so.4.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libQtDBus.so.4.7.2
Reading symbols from /usr/lib/libQtGui.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQtGui.so.4.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libQtGui.so.4.7.2
Reading symbols from /usr/lib/libstdc++.so.6.0.14...Reading symbols from /usr/lib/debug/usr/lib/libstdc++.so.6.0.14.debug...done.
done.
Loaded symbols for /usr/lib/libstdc++.so.6.0.14
Reading symbols from /lib/libm-2.13.so...Reading symbols from /usr/lib/debug/lib/libm-2.13.so.debug...done.
done.
Loaded symbols for /lib/libm-2.13.so
Reading symbols from /lib/libgcc_s-4.5.1-20100924.so.1...Reading symbols from /usr/lib/debug/lib/libgcc_s-4.5.1-20100924.so.1.debug...done.
done.
Loaded symbols for /lib/libgcc_s-4.5.1-20100924.so.1
Reading symbols from /lib/libc-2.13.so...Reading symbols from /usr/lib/debug/lib/libc-2.13.so.debug...done.
done.
Loaded symbols for /lib/libc-2.13.so
Reading symbols from /usr/lib/sse2/libgmp.so.3.5.0...Reading symbols from /usr/lib/debug/usr/lib/sse2/libgmp.so.3.5.0.debug...
warning: "/usr/lib/debug/usr/lib/sse2/libgmp.so.3.5.0.debug": separate debug info file has no debug info
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/sse2/libgmp.so.3.5.0
Reading symbols from /lib/libgcrypt.so.11.5.3...Reading symbols from /usr/lib/debug/lib/libgcrypt.so.11.5.3.debug...done.
done.
Loaded symbols for /lib/libgcrypt.so.11.5.3
Reading symbols from /usr/lib/libqca.so.2.0.2...Reading symbols from /usr/lib/debug/usr/lib/libqca.so.2.0.2.debug...done.
done.
Loaded symbols for /usr/lib/libqca.so.2.0.2
Reading symbols from /usr/lib/libQt3Support.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQt3Support.so.4.7.2.debug...
warning: "/usr/lib/debug/usr/lib/libQt3Support.so.4.7.2.debug": separate debug info file has no debug info
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libQt3Support.so.4.7.2
Reading symbols from /usr/lib/libkutils.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkutils.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkutils.so.4.6.0
Reading symbols from /usr/lib/libkemoticons.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkemoticons.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkemoticons.so.4.6.0
Reading symbols from /usr/lib/libkidletime.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkidletime.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkidletime.so.4.6.0
Reading symbols from /usr/lib/libkcmutils.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkcmutils.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkcmutils.so.4.6.0
Reading symbols from /usr/lib/libkprintutils.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libkprintutils.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libkprintutils.so.4.6.0
Reading symbols from /lib/libudev.so.0.9.1...Reading symbols from /usr/lib/debug/lib/libudev.so.0.9.1.debug...done.
done.
Loaded symbols for /lib/libudev.so.0.9.1
Reading symbols from /usr/lib/libphonon.so.4.5.0...Reading symbols from /usr/lib/debug/usr/lib/libphonon.so.4.5.0.debug...done.
done.
Loaded symbols for /usr/lib/libphonon.so.4.5.0
Reading symbols from /usr/lib/libnepomukquery.so.4.6.0...Reading symbols from /usr/lib/debug/usr/lib/libnepomukquery.so.4.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libnepomukquery.so.4.6.0
Reading symbols from /lib/libz.so.1.2.5...Reading symbols from /usr/lib/debug/lib/libz.so.1.2.5.debug...done.
done.
Loaded symbols for /lib/libz.so.1.2.5
Reading symbols from /usr/lib/libstreamanalyzer.so.0.7.2...Reading symbols from /usr/lib/debug/usr/lib/libstreamanalyzer.so.0.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libstreamanalyzer.so.0.7.2
Reading symbols from /usr/lib/libstreams.so.0.7.2...Reading symbols from /usr/lib/debug/usr/lib/libstreams.so.0.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libstreams.so.0.7.2
Reading symbols from /usr/lib/libSM.so.6.0.0...Reading symbols from /usr/lib/debug/usr/lib/libSM.so.6.0.0.debug...done.
done.
Loaded symbols for /usr/lib/libSM.so.6.0.0
Reading symbols from /usr/lib/libICE.so.6.3.0...Reading symbols from /usr/lib/debug/usr/lib/libICE.so.6.3.0.debug...done.
done.
Loaded symbols for /usr/lib/libICE.so.6.3.0
Reading symbols from /usr/lib/libX11.so.6.3.0...Reading symbols from /usr/lib/debug/usr/lib/libX11.so.6.3.0.debug...done.
done.
Loaded symbols for /usr/lib/libX11.so.6.3.0
Reading symbols from /usr/lib/libXext.so.6.4.0...Reading symbols from /usr/lib/debug/usr/lib/libXext.so.6.4.0.debug...done.
done.
Loaded symbols for /usr/lib/libXext.so.6.4.0
Reading symbols from /usr/lib/libXft.so.2.1.13...Reading symbols from /usr/lib/debug/usr/lib/libXft.so.2.1.13.debug...done.
done.
Loaded symbols for /usr/lib/libXft.so.2.1.13
Reading symbols from /usr/lib/libXau.so.6.0.0...Reading symbols from /usr/lib/debug/usr/lib/libXau.so.6.0.0.debug...done.
done.
Loaded symbols for /usr/lib/libXau.so.6.0.0
Reading symbols from /usr/lib/libXpm.so.4.11.0...Reading symbols from /usr/lib/debug/usr/lib/libXpm.so.4.11.0.debug...done.
done.
Loaded symbols for /usr/lib/libXpm.so.4.11.0
Reading symbols from /lib/libacl.so.1.1.0...Reading symbols from /usr/lib/debug/lib/libacl.so.1.1.0.debug...done.
done.
Loaded symbols for /lib/libacl.so.1.1.0
Reading symbols from /lib/libattr.so.1.1.0...Reading symbols from /usr/lib/debug/lib/libattr.so.1.1.0.debug...done.
done.
Loaded symbols for /lib/libattr.so.1.1.0
Reading symbols from /usr/lib/libXrender.so.1.3.0...Reading symbols from /usr/lib/debug/usr/lib/libXrender.so.1.3.0.debug...done.
done.
Loaded symbols for /usr/lib/libXrender.so.1.3.0
Reading symbols from /usr/lib/libssl.so.1.0.0d...Reading symbols from /usr/lib/debug/usr/lib/libssl.so.1.0.0d.debug...done.
done.
Loaded symbols for /usr/lib/libssl.so.1.0.0d
Reading symbols from /lib/libcrypto.so.1.0.0d...Reading symbols from /usr/lib/debug/lib/libcrypto.so.1.0.0d.debug...done.
done.
Loaded symbols for /lib/libcrypto.so.1.0.0d
Reading symbols from /usr/lib/libsopranoclient.so.1.2.0...Reading symbols from /usr/lib/debug/usr/lib/libsopranoclient.so.1.2.0.debug...done.
done.
Loaded symbols for /usr/lib/libsopranoclient.so.1.2.0
Reading symbols from /usr/lib/libattica.so.0.2.0...Reading symbols from /usr/lib/debug/usr/lib/libattica.so.0.2.0.debug...done.
done.
Loaded symbols for /usr/lib/libattica.so.0.2.0
Reading symbols from /usr/lib/libdbusmenu-qt.so.2.3.3...Reading symbols from /usr/lib/debug/usr/lib/libdbusmenu-qt.so.2.3.3.debug...done.
done.
Loaded symbols for /usr/lib/libdbusmenu-qt.so.2.3.3
Reading symbols from /usr/lib/libXtst.so.6.1.0...Reading symbols from /usr/lib/debug/usr/lib/libXtst.so.6.1.0.debug...done.
done.
Loaded symbols for /usr/lib/libXtst.so.6.1.0
Reading symbols from /usr/lib/libXcursor.so.1.0.2...Reading symbols from /usr/lib/debug/usr/lib/libXcursor.so.1.0.2.debug...done.
done.
Loaded symbols for /usr/lib/libXcursor.so.1.0.2
Reading symbols from /usr/lib/libXfixes.so.3.1.0...Reading symbols from /usr/lib/debug/usr/lib/libXfixes.so.3.1.0.debug...done.
done.
Loaded symbols for /usr/lib/libXfixes.so.3.1.0
Reading symbols from /lib/libbz2.so.1.0.6...Reading symbols from /usr/lib/debug/lib/libbz2.so.1.0.6.debug...done.
done.
Loaded symbols for /lib/libbz2.so.1.0.6
Reading symbols from /usr/lib/liblzma.so.0.0.0...Reading symbols from /usr/lib/debug/usr/lib/liblzma.so.0.0.0.debug...done.
done.
Loaded symbols for /usr/lib/liblzma.so.0.0.0
Reading symbols from /lib/libresolv-2.13.so...Reading symbols from /usr/lib/debug/lib/libresolv-2.13.so.debug...done.
done.
Loaded symbols for /lib/libresolv-2.13.so
Reading symbols from /usr/lib/libfam.so.0.0.0...Reading symbols from /usr/lib/debug/usr/lib/libfam.so.0.0.0.debug...done.
done.
Loaded symbols for /usr/lib/libfam.so.0.0.0
Reading symbols from /lib/libdl-2.13.so...Reading symbols from /usr/lib/debug/lib/libdl-2.13.so.debug...done.
done.
Loaded symbols for /lib/libdl-2.13.so
Reading symbols from /lib/libgthread-2.0.so.0.2600.0...Reading symbols from /usr/lib/debug/lib/libgthread-2.0.so.0.2600.0.debug...done.
done.
Loaded symbols for /lib/libgthread-2.0.so.0.2600.0
Reading symbols from /lib/librt-2.13.so...Reading symbols from /usr/lib/debug/lib/librt-2.13.so.debug...done.
done.
Loaded symbols for /lib/librt-2.13.so
Reading symbols from /lib/libglib-2.0.so.0.2600.0...Reading symbols from /usr/lib/debug/lib/libglib-2.0.so.0.2600.0.debug...done.
done.
Loaded symbols for /lib/libglib-2.0.so.0.2600.0
Reading symbols from /lib/ld-2.13.so...Reading symbols from /usr/lib/debug/lib/ld-2.13.so.debug...done.
done.
Loaded symbols for /lib/ld-2.13.so
Reading symbols from /lib/libdbus-1.so.3.5.2...Reading symbols from /usr/lib/debug/lib/libdbus-1.so.3.5.2.debug...done.
done.
Loaded symbols for /lib/libdbus-1.so.3.5.2
Reading symbols from /usr/lib/libpng12.so.0.44.0...Reading symbols from /usr/lib/debug/usr/lib/libpng12.so.0.44.0.debug...done.
done.
Loaded symbols for /usr/lib/libpng12.so.0.44.0
Reading symbols from /usr/lib/libfreetype.so.6.6.0...Reading symbols from /usr/lib/debug/usr/lib/libfreetype.so.6.6.0.debug...done.
done.
Loaded symbols for /usr/lib/libfreetype.so.6.6.0
Reading symbols from /lib/libgobject-2.0.so.0.2600.0...Reading symbols from /usr/lib/debug/lib/libgobject-2.0.so.0.2600.0.debug...done.
done.
Loaded symbols for /lib/libgobject-2.0.so.0.2600.0
Reading symbols from /usr/lib/libXi.so.6.1.0...Reading symbols from /usr/lib/debug/usr/lib/libXi.so.6.1.0.debug...done.
done.
Loaded symbols for /usr/lib/libXi.so.6.1.0
Reading symbols from /usr/lib/libXrandr.so.2.2.0...Reading symbols from /usr/lib/debug/usr/lib/libXrandr.so.2.2.0.debug...done.
done.
Loaded symbols for /usr/lib/libXrandr.so.2.2.0
Reading symbols from /usr/lib/libXinerama.so.1.0.0...Reading symbols from /usr/lib/debug/usr/lib/libXinerama.so.1.0.0.debug...done.
done.
Loaded symbols for /usr/lib/libXinerama.so.1.0.0
Reading symbols from /usr/lib/libfontconfig.so.1.4.4...Reading symbols from /usr/lib/debug/usr/lib/libfontconfig.so.1.4.4.debug...done.
done.
Loaded symbols for /usr/lib/libfontconfig.so.1.4.4
Reading symbols from /lib/libgpg-error.so.0.7.0...Reading symbols from /usr/lib/debug/lib/libgpg-error.so.0.7.0.debug...done.
done.
Loaded symbols for /lib/libgpg-error.so.0.7.0
Reading symbols from /usr/lib/libQtSql.so.4.7.2...Reading symbols from /usr/lib/debug/usr/lib/libQtSql.so.4.7.2.debug...done.
done.
Loaded symbols for /usr/lib/libQtSql.so.4.7.2
Reading symbols from /usr/lib/libXss.so.1.0.0...Reading symbols from /usr/lib/debug/usr/lib/libXss.so.1.0.0.debug...done.
done.
Loaded symbols for /usr/lib/libXss.so.1.0.0
Reading symbols from /usr/lib/libpulse.so.0.12.2...Reading symbols from /usr/lib/debug/usr/lib/libpulse.so.0.12.2.debug...done.
done.
Loaded symbols for /usr/lib/libpulse.so.0.12.2
Reading symbols from /usr/lib/libpulse-mainloop-glib.so.0.0.4...Reading symbols from /usr/lib/debug/usr/lib/libpulse-mainloop-glib.so.0.0.4.debug...done.
done.
Loaded symbols for /usr/lib/libpulse-mainloop-glib.so.0.0.4
Reading symbols from /usr/lib/libxml2.so.2.7.7...Reading symbols from /usr/lib/debug/usr/lib/libxml2.so.2.7.7.debug...done.
done.
Loaded symbols for /usr/lib/libxml2.so.2.7.7
Reading symbols from /lib/libuuid.so.1.3.0...Reading symbols from /usr/lib/debug/lib/libuuid.so.1.3.0.debug...done.
done.
Loaded symbols for /lib/libuuid.so.1.3.0
Reading symbols from /usr/lib/libxcb.so.1.1.0...Reading symbols from /usr/lib/debug/usr/lib/libxcb.so.1.1.0.debug...done.
done.
Loaded symbols for /usr/lib/libxcb.so.1.1.0
Reading symbols from /lib/libgssapi_krb5.so.2.2...Reading symbols from /usr/lib/debug/lib/libgssapi_krb5.so.2.2.debug...done.
done.
Loaded symbols for /lib/libgssapi_krb5.so.2.2
Reading symbols from /lib/libkrb5.so.3.3...Reading symbols from /usr/lib/debug/lib/libkrb5.so.3.3.debug...done.
done.
Loaded symbols for /lib/libkrb5.so.3.3
Reading symbols from /lib/libcom_err.so.2.1...Reading symbols from /usr/lib/debug/lib/libcom_err.so.2.1.debug...done.
done.
Loaded symbols for /lib/libcom_err.so.2.1
Reading symbols from /lib/libk5crypto.so.3.1...Reading symbols from /usr/lib/debug/lib/libk5crypto.so.3.1.debug...done.
done.
Loaded symbols for /lib/libk5crypto.so.3.1
Reading symbols from /lib/libexpat.so.1.5.2...Reading symbols from /usr/lib/debug/lib/libexpat.so.1.5.2.debug...done.
done.
Loaded symbols for /lib/libexpat.so.1.5.2
Reading symbols from /usr/lib/libpulsecommon-0.9.21.so...Reading symbols from /usr/lib/debug/usr/lib/libpulsecommon-0.9.21.so.debug...done.
done.
Loaded symbols for /usr/lib/libpulsecommon-0.9.21.so
Reading symbols from /lib/libwrap.so.0.7.6...Reading symbols from /usr/lib/debug/lib/libwrap.so.0.7.6.debug...done.
done.
Loaded symbols for /lib/libwrap.so.0.7.6
Reading symbols from /usr/lib/libsndfile.so.1.0.23...Reading symbols from /usr/lib/debug/usr/lib/libsndfile.so.1.0.23.debug...done.
done.
Loaded symbols for /usr/lib/libsndfile.so.1.0.23
Reading symbols from /usr/lib/libasyncns.so.0.3.1...Reading symbols from /usr/lib/debug/usr/lib/libasyncns.so.0.3.1.debug...done.
done.
Loaded symbols for /usr/lib/libasyncns.so.0.3.1
Reading symbols from /lib/libkrb5support.so.0.1...Reading symbols from /usr/lib/debug/lib/libkrb5support.so.0.1.debug...done.
done.
Loaded symbols for /lib/libkrb5support.so.0.1
Reading symbols from /lib/libkeyutils-1.2.so...Reading symbols from /usr/lib/debug/lib/libkeyutils-1.2.so.debug...done.
done.
Loaded symbols for /lib/libkeyutils-1.2.so
Reading symbols from /lib/libnsl-2.13.so...Reading symbols from /usr/lib/debug/lib/libnsl-2.13.so.debug...done.
done.
Loaded symbols for /lib/libnsl-2.13.so
Reading symbols from /usr/lib/libFLAC.so.8.2.0...Reading symbols from /usr/lib/debug/usr/lib/libFLAC.so.8.2.0.debug...done.
done.
Loaded symbols for /usr/lib/libFLAC.so.8.2.0
Reading symbols from /usr/lib/libvorbisenc.so.2.0.7...Reading symbols from /usr/lib/debug/usr/lib/libvorbisenc.so.2.0.7.debug...done.
done.
Loaded symbols for /usr/lib/libvorbisenc.so.2.0.7
Reading symbols from /usr/lib/libvorbis.so.0.4.4...Reading symbols from /usr/lib/debug/usr/lib/libvorbis.so.0.4.4.debug...done.
done.
Loaded symbols for /usr/lib/libvorbis.so.0.4.4
Reading symbols from /usr/lib/libogg.so.0.7.0...Reading symbols from /usr/lib/debug/usr/lib/libogg.so.0.7.0.debug...done.
done.
Loaded symbols for /usr/lib/libogg.so.0.7.0
Reading symbols from /lib/libselinux.so.1...Reading symbols from /usr/lib/debug/lib/libselinux.so.1.debug...done.
done.
Loaded symbols for /lib/libselinux.so.1
Core was generated by `'.
Program terminated with signal 11, Segmentation fault.
#0  0x00c75cf7 in __umoddi3@got.plt () from /usr/lib/libstdc++.so.6.0.14
Missing separate debuginfos, use: debuginfo-install valgrind-3.5.0-20.fc14.i686
(gdb) bt
#0  0x00c75cf7 in __umoddi3@got.plt () from /usr/lib/libstdc++.so.6.0.14
#1  0x00ba1b24 in ?? () from /usr/lib/libstdc++.so.6.0.14
#2  0x00be57c9 in numpunct (this=0xc77f3c, __refs=2) at /usr/src/debug/gcc-4.5.1-20100924/obj-i686-redhat-linux/i686-redhat-linux/libstdc++-v3/include/bits/locale_facets.h:1675
#3  std::locale::_Impl::_Impl (this=0xc77f3c, __refs=2) at ../../../../libstdc++-v3/src/locale_init.cc:432
#4  0x00be5fae in std::locale::_S_initialize_once () at ../../../../libstdc++-v3/src/locale_init.cc:267
#5  0x006ba9ae in pthread_once () at ../nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S:122
#6  0x00be6005 in __gthread_once () at /usr/src/debug/gcc-4.5.1-20100924/obj-i686-redhat-linux/i686-redhat-linux/libstdc++-v3/include/i686-redhat-linux/bits/gthr-default.h:716
#7  std::locale::_S_initialize () at ../../../../libstdc++-v3/src/locale_init.cc:276
#8  0x00be60a9 in std::locale::locale (this=0xc76b5c) at ../../../../libstdc++-v3/src/locale_init.cc:210
#9  0x00be2f98 in basic_streambuf (this=0x3f895b8) at /usr/src/debug/gcc-4.5.1-20100924/obj-i686-redhat-linux/i686-redhat-linux/libstdc++-v3/include/streambuf:444
#10 stdio_sync_filebuf (this=0x3f895b8) at /usr/src/debug/gcc-4.5.1-20100924/obj-i686-redhat-linux/i686-redhat-linux/libstdc++-v3/include/ext/stdio_sync_filebuf.h:76
#11 std::ios_base::Init::Init (this=0x3f895b8) at ../../../../libstdc++-v3/src/ios_init.cc:85
#12 0x03f7c936 in __static_initialization_and_destruction_0 () at /usr/include/c++/4.5.1/iostream:73
#13 global constructors keyed to tarinputstream.cpp(void) () at /usr/src/debug/strigi-0.7.2/src/streams/tarinputstream.cpp:186
#14 0x03f7ebed in __do_global_ctors_aux () from /usr/lib/libstreams.so.0.7.2
#15 0x03f5cfd0 in _init () from /usr/lib/libstreams.so.0.7.2
---Type <return> to continue, or q <return> to quit---
#16 0x005058fc in call_init (l=<value optimized out>, argc=2, argv=0xbe83e914, env=0xbe83e920) at dl-init.c:68
#17 0x00505a19 in _dl_init (main_map=<value optimized out>, argc=2, argv=0xbe83e914, env=0xbe83e920) at dl-init.c:132
#18 0x004f78af in _dl_start_user () from /lib/ld-2.13.so
Comment 14 Joris Guisson 2011-06-14 21:25:50 UTC
And there was nothing in the vg.log file ?
Comment 15 George R. Goffe 2011-06-15 10:20:56 UTC
Joris,

Just the startup messages up to the "parent pid" line...

I downloaded the svn version of valgrind (3.7.0) from their web site and built it.

It does NOT crash. I've been running the command you gave me. There are a bunch of popups that appear saying that "this is a duplicate, contents of torrents are merged"... The going is very slow. When I leave it running over night and try to continue in the morning, the process appears to be running but the popups do not respond. 

Here's the contents of the current vg.log file so far... Do you want me to continue with this?


cat vg.log
==3699== Memcheck, a memory error detector
==3699== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==3699== Using Valgrind-3.7.0.SVN and LibVEX; rerun with -h for copyright info
==3699== Command: /usr/bin/ktorrent --nofork
==3699== Parent PID: 3671
==3699== 
==3699== Syscall param write(buf) points to uninitialised byte(s)
==3699==    at 0x5E343B: ??? (syscall-template.S:82)
==3699==    by 0x58496E: new_do_write (fileops.c:522)
==3699==    by 0x58624D: _IO_do_write@@GLIBC_2.1 (fileops.c:495)
==3699==    by 0x58579F: _IO_file_close_it@@GLIBC_2.1 (fileops.c:169)
==3699==    by 0x5796DF: fclose@@GLIBC_2.1 (iofclose.c:62)
==3699==    by 0x5F5C1B9: bt::File::close() (file.cpp:62)
==3699==    by 0x5F5C2ED: bt::File::~File() (file.cpp:41)
==3699==    by 0x5FFB0D2: bt::ChunkManager::Private::writeIndexFileEntry(bt::Chunk*) (chunkmanager.cpp:950)
==3699==    by 0x5FFB3BA: bt::ChunkManager::chunkDownloaded(unsigned int) (chunkmanager.cpp:228)
==3699==    by 0x5FA40D4: bt::Downloader::finished(bt::ChunkDownload*) (downloader.cpp:452)
==3699==    by 0x5FA463D: bt::Downloader::pieceReceived(bt::Piece const&) (downloader.cpp:146)
==3699==    by 0x5F89C92: bt::PeerManager::pieceReceived(bt::Piece const&) (peermanager.cpp:537)
==3699==    by 0x5F88AFB: bt::Peer::packetReady(unsigned char const*, unsigned int) (peer.cpp:276)
==3699==    by 0x5F92988: bt::PacketReader::update() (packetreader.cpp:141)
==3699==    by 0x5F86913: bt::Peer::update() (peer.cpp:531)
==3699==    by 0x5F8C2FB: bt::PeerManager::Private::update() (peermanager.cpp:729)
==3699==    by 0x5F8C470: bt::PeerManager::update() (peermanager.cpp:138)
==3699==    by 0x5FC3F8D: bt::TorrentControl::update() (torrentcontrol.cpp:164)
==3699==    by 0x806BEF3: kt::Core::update() (core.cpp:1052)
==3699==    by 0x8072CE0: kt::Core::qt_metacall(QMetaObject::Call, int, void**) (core.moc:164)
==3699==    by 0x218A79A: QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) (qmetaobject.cpp:237)
==3699==    by 0x2199CC6: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3278)
==3699==    by 0x21E8457: QTimer::timeout() (moc_qtimer.cpp:134)
==3699==    by 0x21A091D: QTimer::timerEvent(QTimerEvent*) (qtimer.cpp:271)
==3699==    by 0x2199623: QObject::event(QEvent*) (qobject.cpp:1181)
==3699==    by 0x44A754B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4462)
==3699==    by 0x44AC251: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:3862)
==3699==    by 0x80799A7: kt::App::notify(QObject*, QEvent*) (app.cpp:99)
==3699==    by 0x2183F62: QCoreApplication::notifyInternal(QObject*, QEvent*) (qcoreapplication.cpp:731)
==3699==    by 0x21B4950: QTimerInfoList::activateTimers() (qcoreapplication.h:215)
==3699==    by 0x21B1544: timerSourceDispatch(_GSource*, int (*)(void*), void*) (qeventdispatcher_glib.cpp:184)
==3699==    by 0x79A191: g_main_context_dispatch (gmain.c:2149)
==3699==    by 0x79A977: g_main_context_iterate.clone.5 (gmain.c:2780)
==3699==    by 0x79AC34: g_main_context_iteration (gmain.c:2843)
==3699==    by 0x21B1CAC: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qeventdispatcher_glib.cpp:422)
==3699==    by 0x455B1C5: QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qguieventdispatcher_glib.cpp:207)
==3699==    by 0x21830F9: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qeventloop.cpp:149)
==3699==    by 0x21833A9: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (qeventloop.cpp:201)
==3699==    by 0x49D53A3: QDialog::exec() (qdialog.cpp:552)
==3699==    by 0x427F4043: KMessageBox::createKMessageBox(KDialog*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) (kmessagebox.cpp:337)
==3699==    by 0x427F4829: KMessageBox::createKMessageBox(KDialog*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) (kmessagebox.cpp:152)
==3699==    by 0x427F7705: KMessageBox::informationListWId(unsigned long, QString const&, QStringList const&, QString const&, QString const&, QFlags<KMessageBox::Option>) (kmessagebox.cpp:998)
==3699==    by 0x427F7876: KMessageBox::informationList(QWidget*, QString const&, QStringList const&, QString const&, QString const&, QFlags<KMessageBox::Option>) (kmessagebox.cpp:969)
==3699==    by 0x427F78D8: KMessageBox::information(QWidget*, QString const&, QString const&, QString const&, QFlags<KMessageBox::Option>) (kmessagebox.cpp:956)
==3699==    by 0x80750B8: kt::GUI::infoMsg(QString const&) (gui.cpp:251)
==3699==    by 0x806FF1E: kt::Core::loadFromFile(QString const&, QString const&, QString const&, bool) (core.cpp:431)
==3699==    by 0x8070A61: kt::Core::load(KUrl const&, QString const&) (core.cpp:496)
==3699==    by 0x6AAF230: kt::ScanFolder::loadDelayed() (scanfolder.cpp:171)
==3699==    by 0x6AAF475: kt::ScanFolder::onNewItems(KFileItemList const&) (scanfolder.cpp:150)
==3699==    by 0x6AAFDB0: kt::ScanFolder::qt_metacall(QMetaObject::Call, int, void**) (scanfolder.moc:78)
==3699==  Address 0x577041c is not stack'd, malloc'd or (recently) free'd
==3699== 
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Syscall param write(buf) points to uninitialised byte(s)
==3699==    at 0x5E343B: ??? (syscall-template.S:82)
==3699==    by 0x58496E: new_do_write (fileops.c:522)
==3699==    by 0x58624D: _IO_do_write@@GLIBC_2.1 (fileops.c:495)
==3699==    by 0x586589: _IO_file_overflow@@GLIBC_2.1 (fileops.c:873)
==3699==    by 0x584AB4: _IO_file_xsputn@@GLIBC_2.1 (fileops.c:1350)
==3699==    by 0x57ABDA: fwrite (iofwrite.c:45)
==3699==    by 0x5F5C3E0: bt::File::write(void const*, unsigned int) (file.cpp:78)
==3699==    by 0x5FFDBBD: bt::ChunkManager::Private::saveIndexFile() (chunkmanager.cpp:942)
==3699==    by 0x5FFDF8C: bt::ChunkManager::dataChecked(bt::BitSet const&) (chunkmanager.cpp:648)
==3699==    by 0x5FC26E4: bt::TorrentControl::afterDataCheck(bt::DataCheckerJob*, bt::BitSet const&) (torrentcontrol.cpp:1433)
==3699==    by 0x6010AFF: bt::DataCheckerJob::threadFinished() (datacheckerjob.cpp:105)
==3699==    by 0x5F55C3F: bt::DataCheckerJob::qt_metacall(QMetaObject::Call, int, void**) (moc_datacheckerjob.cpp:81)
==3699==    by 0x218A79A: QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) (qmetaobject.cpp:237)
==3699==    by 0x2195136: QMetaCallEvent::placeMetaCall(QObject*) (qobject.cpp:535)
==3699==    by 0x21997CE: QObject::event(QEvent*) (qobject.cpp:1217)
==3699==    by 0x44A754B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4462)
==3699==    by 0x44AC251: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:3862)
==3699==    by 0x80799A7: kt::App::notify(QObject*, QEvent*) (app.cpp:99)
==3699==    by 0x2183F62: QCoreApplication::notifyInternal(QObject*, QEvent*) (qcoreapplication.cpp:731)
==3699==    by 0x2187CB4: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (qcoreapplication.h:215)
==3699==    by 0x2187E8D: QCoreApplication::sendPostedEvents(QObject*, int) (qcoreapplication.cpp:1265)
==3699==    by 0x21B1B34: postEventSourceDispatch(_GSource*, int (*)(void*), void*) (qcoreapplication.h:220)
==3699==    by 0x79A191: g_main_context_dispatch (gmain.c:2149)
==3699==    by 0x79A977: g_main_context_iterate.clone.5 (gmain.c:2780)
==3699==    by 0x79AC34: g_main_context_iteration (gmain.c:2843)
==3699==    by 0x21B1CAC: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qeventdispatcher_glib.cpp:422)
==3699==    by 0x455B1C5: QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qguieventdispatcher_glib.cpp:207)
==3699==    by 0x21830F9: QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (qeventloop.cpp:149)
==3699==    by 0x21833A9: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (qeventloop.cpp:201)
==3699==    by 0x49D53A3: QDialog::exec() (qdialog.cpp:552)
==3699==    by 0x427F4043: KMessageBox::createKMessageBox(KDialog*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) (kmessagebox.cpp:337)
==3699==    by 0x427F4829: KMessageBox::createKMessageBox(KDialog*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) (kmessagebox.cpp:152)
==3699==    by 0x427F7705: KMessageBox::informationListWId(unsigned long, QString const&, QStringList const&, QString const&, QString const&, QFlags<KMessageBox::Option>) (kmessagebox.cpp:998)
==3699==    by 0x427F7876: KMessageBox::informationList(QWidget*, QString const&, QStringList const&, QString const&, QString const&, QFlags<KMessageBox::Option>) (kmessagebox.cpp:969)
==3699==    by 0x427F78D8: KMessageBox::information(QWidget*, QString const&, QString const&, QString const&, QFlags<KMessageBox::Option>) (kmessagebox.cpp:956)
==3699==    by 0x80750B8: kt::GUI::infoMsg(QString const&) (gui.cpp:251)
==3699==    by 0x806FF1E: kt::Core::loadFromFile(QString const&, QString const&, QString const&, bool) (core.cpp:431)
==3699==    by 0x8070A61: kt::Core::load(KUrl const&, QString const&) (core.cpp:496)
==3699==    by 0x6AAF230: kt::ScanFolder::loadDelayed() (scanfolder.cpp:171)
==3699==    by 0x6AAFD41: kt::ScanFolder::qt_metacall(QMetaObject::Call, int, void**) (scanfolder.moc:81)
==3699==    by 0x218A79A: QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) (qmetaobject.cpp:237)
==3699==    by 0x2199CC6: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3278)
==3699==    by 0x21A0A07: QSingleShotTimer::timeout() (qtimer.moc:82)
==3699==    by 0x21A0ABC: QSingleShotTimer::timerEvent(QTimerEvent*) (qtimer.cpp:308)
==3699==    by 0x2199623: QObject::event(QEvent*) (qobject.cpp:1181)
==3699==    by 0x44A754B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4462)
==3699==    by 0x44AC251: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:3862)
==3699==    by 0x80799A7: kt::App::notify(QObject*, QEvent*) (app.cpp:99)
==3699==    by 0x2183F62: QCoreApplication::notifyInternal(QObject*, QEvent*) (qcoreapplication.cpp:731)
==3699==    by 0x21B4950: QTimerInfoList::activateTimers() (qcoreapplication.h:215)
==3699==  Address 0x585d004 is not stack'd, malloc'd or (recently) free'd
==3699== 
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
==3699== Warning: invalid file descriptor -1 in syscall close()
Comment 16 George R. Goffe 2011-06-15 10:24:22 UTC
Created attachment 61009 [details]
screenshot of this wiget.

Joris,

I'm also getting a little popup. I'm enclosing a screen shot of it. It appears in the middle of various things like browser sessions and mplayer. It seems to come and go randomly. Any thoughts about this?

George...
Comment 17 Joris Guisson 2011-06-15 19:40:07 UTC
I would need the valgrind output until it crashes, the interesting parts will be right before the crash.

valgrind is slow, those popups are just standard KDE job stuff going on.
Comment 18 Joris Guisson 2011-06-17 19:31:50 UTC
*** Bug 265492 has been marked as a duplicate of this bug. ***
Comment 19 Joris Guisson 2011-06-23 18:17:32 UTC
*** Bug 275950 has been marked as a duplicate of this bug. ***
Comment 20 Joris Guisson 2011-09-18 09:21:52 UTC
*** Bug 278555 has been marked as a duplicate of this bug. ***
Comment 21 Joris Guisson 2011-10-03 16:51:18 UTC
Git commit 89d3a2e2db30152e6fa77c7a84bfc76a8a9914a3 by Joris Guisson.
Committed on 03/10/2011 at 18:50.
Pushed by guisson into branch 'master'.

Prevent file descriptor exhaustion from happening, fixes several crashes

BUG: 251120
BUG: 282873
BUG: 274544

M  +1    -0    ChangeLog
M  +2    -0    src/diskio/cachefile.cpp
M  +27   -9    src/download/httpconnection.cpp
M  +4    -0    src/interfaces/serverinterface.cpp
M  +32   -18   src/peer/peerconnector.cpp
M  +38   -0    src/util/functions.cpp
M  +6    -0    src/util/functions.h

http://commits.kde.org/libktorrent/89d3a2e2db30152e6fa77c7a84bfc76a8a9914a3
Comment 22 Joris Guisson 2011-10-25 16:23:09 UTC
*** Bug 284683 has been marked as a duplicate of this bug. ***
Comment 23 Joris Guisson 2011-11-13 17:17:49 UTC
*** Bug 286460 has been marked as a duplicate of this bug. ***
Comment 24 Joris Guisson 2011-11-13 17:18:48 UTC
*** Bug 286344 has been marked as a duplicate of this bug. ***
Comment 25 Myriam Schweingruber 2011-11-28 14:09:21 UTC
*** Bug 287508 has been marked as a duplicate of this bug. ***
Comment 26 Marius Manea 2011-12-02 00:04:23 UTC
Please excuse my 'noob' question, but how do I get latest version of libktorrent and/or ktorrent so I can compile it on my machine?
My ktorrent is crashing at startup with "segfault", I'd like to try latest version of libktorrent and ktorrent before submitting a bug request.

I am running Gentoo Linux with kernel 3.1.1, KDE 4.6.5 and ktorrent/libktorrent 4.1.2 (upgraded from 4.1.1 with no success in fixing the crash)

In the Gentoo portage latest version is ktorrent/libktorrent 4.1.2

thanks a lot,
-Marius
Comment 27 George R. Goffe 2011-12-02 00:13:01 UTC
Marius,

We're all noobs at one time or another.

I am NOT part of the support team but can answer your question so I will.

http://ktorrent.org/?q=downloads is a good start. http://www.kde.org/applications/internet/ktorrent/development could help too.

George...
Comment 28 Marius Manea 2011-12-02 00:24:45 UTC
Thanks a lot for your quick comment, George!

After I did some research, I found out that Gentoo has some additional overlays which carry these type of 'development' versions of the packages.
One of these overlays is 'kde' which includes ktorrent/libktorrent packages.
I'll give that a try first and if it doesn't work out for me, I'll try your suggestions as well.

best regards,
-Marius
Comment 29 Marius Manea 2011-12-02 01:21:06 UTC
I installed layman, then I installed 'kde' overlay, then I installed:

net-libs/libktorrent-9999
net-p2p/ktorrent-9999

Before installing this version, I ran this command:
strings /usr/bin/ktorrent | grep 4.1
_ZN22QStyleOptionViewItemV4C1ERK20QStyleOptionViewItem
_ZN12KApplication14x11EventFilterEP7_XEvent
4.1.2
/var/tmp/portage/net-p2p/ktorrent-4.1.2/work/ktorrent-4.1.2_build/libktcore/settings.h

.. so it was version 4.1.2

after I installed version 9999, I ran same command but doesn't show up with a version, then I ran:

strings /usr/bin/ktorrent | grep 4.2
4.2dev

.. so it is based on version 4.2... which I don't know if it includes fix for this problem.

Anyone has any idea how to verify if this version includes the fix for this problem?

there must be one (or more) specific line of code I can check in a C file that would tell me if the fix is included in this version, but I don't know what to check :)

or better, should I try to compile manually the source code for ktorrent 4.1.3? If I do that, I should probably compile libktorrent as well, right?
Comment 30 Marius Manea 2011-12-02 01:42:16 UTC
Nevermind.
I installed latest version of libktorrent and ktorrent as described in this post:
http://ktorrent.org/wiki/index.php/FAQ#How_do_I_get_the_latest_code_.3F

and I still have the same problem.
So I guess that my problem wasn't solved/reported yet.

I will open a new bug report for it.

regards,
-Marius
Comment 31 Joris Guisson 2011-12-07 17:30:01 UTC
*** Bug 288028 has been marked as a duplicate of this bug. ***