[ 
https://issues.apache.org/jira/browse/KUDU-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16540433#comment-16540433
 ] 

Todd Lipcon commented on KUDU-2495:
-----------------------------------

Alternatively we could have pstack_watcher use prctl(PR_SET_TRACER) with the 
child's pid before the child execs gdb. That way this would work with the 
default settings on newer Ubuntu for devs as well.

> dist-test slave environment can no longer ptrace
> ------------------------------------------------
>
>                 Key: KUDU-2495
>                 URL: https://issues.apache.org/jira/browse/KUDU-2495
>             Project: Kudu
>          Issue Type: Bug
>          Components: test
>    Affects Versions: n/a
>            Reporter: Adar Dembo
>            Assignee: Todd Lipcon
>            Priority: Major
>
> Noticed this while debugging an unrelated failure. I'm guessing it's due to 
> the VM upgrade in the dist-test environment? We should probably configure 
> /proc/sys/kernel/yama/ptrace_scope in the host OS so that we can restore this 
> functionality.
> {noformat}
> I0710 23:27:16.445466 18604 external_mini_cluster-itest-base.cc:86] 
> Attempting to dump stacks of TS 0 with UUID 3576d2baa86141439f2e837433589a9b 
> and pid 22014
> ************************ BEGIN STACKS **************************
> Could not attach to process. If your uid matches the uid of the target
> process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
> again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
> ptrace: Operation not permitted.
> /tmp/dist-test-taskXw_ur6/build/debug/test-work/tablet_copy_client_session-itest/22014:
>  No such file or directory.
> No threads.
> ************************* END STACKS ***************************
> I0710 23:27:16.608888 18604 external_mini_cluster-itest-base.cc:86] 
> Attempting to dump stacks of TS 1 with UUID 6ec7d1737cd1460ab9dd752e64eac912 
> and pid 22413
> ************************ BEGIN STACKS **************************
> Could not attach to process. If your uid matches the uid of the target
> process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
> again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
> ptrace: Operation not permitted.
> /tmp/dist-test-taskXw_ur6/build/debug/test-work/tablet_copy_client_session-itest/22413:
>  No such file or directory.
> No threads.
> ************************* END STACKS ***************************{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to