On Tue, Jun 26, 2012 at 10:52:08PM +0400, Stepan Golosunov wrote:
> Package: valgrind
> Version: 1:3.7.0-6
> Severity: normal
> 
> When running
> 
> valgrind --log-file=valgrind.log --vgdb=full --vgdb-error=1 rtorrent
> 
> I found
> 
> ==27729== TO DEBUG THIS PROCESS USING GDB: start GDB like this
> ==27729==   /path/to/gdb rtorrent
> ==27729== and then give GDB the following command
> ==27729==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=27729
> ==27729== --pid is optional if only one valgrind process is running
> 
> in the valgrind.log. However, doing so resulted in
> 
> % gdb rtorrent          
> GNU gdb (GDB) 7.4.1-debian
> Copyright (C) 2012 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 "i486-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/bin/rtorrent...(no debugging symbols found)...done.
> (gdb) target remote | /usr/lib/valgrind/../../bin/vgdb --pid=27729
> Remote debugging using | /usr/lib/valgrind/../../bin/vgdb --pid=27729
> vgdb error: no FIFO found matching pid 27729
> Remote communication error.  Target disconnected.: Ресурс временно недоступен.
> 
> 
> Luckily I remebered that valgrind created some files in /tmp/ instead
> of $TMPDIR. So I was able to connect to valgrind using
> 
> % env --unset=TMPDIR gdb rtorrent 

TMPDIR and vgdb work fine here. Note that valgrind and gdb must have the same
TMPDIR to work properly, and of course, TMPDIR must be valid and writable.

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'

Attachment: signature.asc
Description: Digital signature

Reply via email to