Public bug reported:

Binary package hint: valgrind

Something has broken valgrind --db-attach=yes
I get the following output:

==31556== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- Y
==31556== starting debugger with cmd: /usr/bin/gdb -nw /proc/32002/fd/1014 32002
GNU gdb 6.8-debian
Copyright (C) 2008 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"...
NEdit display disabled.  Use 'nedit' to enable.
Attaching to program: /proc/32002/fd/1014, process 32002
Cannot access memory at address 0x6d287465
/proc/32002/fd/1014: Permission denied.

32002 seems to be a child process forked by valgrind to run the
debugger:

ja...@feegle$ ps -ef | fgrep 31556
jason    31556 31506  3 15:03 pts/2    00:00:15 /usr/bin/valgrind.bin 
--db-attach=yes ./testcxx block19.cub
jason    32002 31556  0 15:10 pts/2    00:00:00 [memcheck] <defunct>
jason    32003 31556  0 15:10 pts/2    00:00:00 /bin/sh -c /usr/bin/gdb -nw 
/proc/32002/fd/1014 32002

ja...@feegle$ ls -ld /proc/32002 /proc/32002/fd
dr-xr-xr-x 7 jason jason 0 2009-02-13 15:10 /proc/32002
dr-x------ 2 root  root  0 2009-02-13 15:10 /proc/32002/fd

** Affects: valgrind (Ubuntu)
     Importance: Undecided
         Status: New

-- 
valgrind --db-attach /proc/$PID/fd permission problem
https://bugs.launchpad.net/bugs/329221
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to