RFR(XS): 8013364 SA-JDI exceptions caused by lack of permissions on OSX should be more verbose about issue cause

Staffan Larsen staffan.larsen at oracle.com
Mon Apr 29 07:40:55 PDT 2013


Hi,

This is an improvement to the error message the user receives when SA attach fails on OS X. The current message is:


attach: task_for_pid(13581) failed (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process


This is changed to:


ERROR: attach: task_for_pid(89) failed: '(os/kern) failure' (5)
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process. Could be caused by an incorrect pid or lack of privileges.


webrev: http://cr.openjdk.java.net/~sla/8013364/webrev.00/
bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8013364

Thanks,
/Staffan


More information about the hotspot-runtime-dev mailing list