|
From: Florian K. <br...@ac...> - 2011-10-08 16:52:44
|
On 10/08/2011 12:03 PM, Philippe Waroquiers wrote: >> Log: >> On systems where /proc/sys/kernel/yama/ptrace_scope exists we need to >> check its value to avoid testcase failure. > > What are the failure symptoms that are observed ? --- mcinvokeRU.stderrB.exp 2011-06-28 19:44:22.000000000 -0400 +++ mcinvokeRU.stderrB.out 2011-10-08 12:42:27.736839000 -0400 @@ -1,7 +1,25 @@ +syscall failed: Operation not permitted +attach main pid PTRACE_ATTACH pid 2456 -1 +error attach main pid 2456 +Note: your kernel restricts ptrace invoker using /proc/sys/kernel/yama/ptrace_scope +vgdb will only be able to attach to a Valgrind process +blocked in a system call *after* an initial successful attach sending command v.wait 0 to pid .... sending command v.wait 0 to pid .... sending command v.wait 0 to pid .... -sending command v.wait 0 to pid .... +syscall failed: Operation not permitted +attach main pid PTRACE_ATTACH pid 2456 -1 +error attach main pid 2456 +Note: your kernel restricts ptrace invoker using /proc/sys/kernel/yama/ptrace_scope +vgdb will only be able to attach to a Valgrind process +blocked in a system call *after* an initial successful attach +sending command v.wait 0 to pid .... +syscall failed: Operation not permitted +attach main pid PTRACE_ATTACH pid 2456 -1 +error attach main pid 2456 +Note: your kernel restricts ptrace invoker using /proc/sys/kernel/yama/ptrace_scope +vgdb will only be able to attach to a Valgrind process +blocked in a system call *after* an initial successful attach sending command v.wait 0 to pid .... sending command v.wait 0 to pid .... sending command v.wait 0 to pid .... > A working ptrace invoker is however needed in case a process is blocked > in a system call (see e.g. mcinvokeWS.vgtest). > I had seen the comment in the vgtest file but failed to locate vgdb.ptraceinvoker in my tree. And grepping the tree didn't reveal where it was created... So I wasn't sure what it was doing. I'm happy to use the same prereq as mcinvokeWS if that is the right thing to do. Let me know. Florian |