Please review this patch to add a better error message to SA when it fails to attach to a process on linux. Currently the error says "Can't attach to the process”. After this change the message will look something like: "Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 28417: Operation not permitted”
webrev: http://cr.openjdk.java.net/~sla/JDK-8145099/webrev.01/ <http://cr.openjdk.java.net/~sla/JDK-8145099/webrev.01/> bug: https://bugs.openjdk.java.net/browse/JDK-8145099 <https://bugs.openjdk.java.net/browse/JDK-8145099> Thanks, /Staffan