[Bug 329221] Re: valgrind --db-attach /proc/$PID/fd permission problem
Alessandro Ghedini
ghedo at debian.org
Sat May 12 17:23:14 UTC 2012
> This is completely unrelated; ptrace is disabled after process startup for non-root users in Ubuntu nowadays.
> https://wiki.ubuntu.com/Security/Features#PTRACE%20scope
Closing as invalid.
** Changed in: valgrind (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to valgrind in Ubuntu.
https://bugs.launchpad.net/bugs/329221
Title:
valgrind --db-attach /proc/$PID/fd permission problem
Status in “valgrind” package in Ubuntu:
Invalid
Bug description:
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:
jason at 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
jason at 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/valgrind/+bug/329221/+subscriptions
More information about the foundations-bugs
mailing list