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

Rickard Bäckman rickard.backman at oracle.com
Mon Apr 29 23:32:19 PDT 2013


Staffan,

this change looks good. (Not a Reviewer).

/R

On Apr 29, 2013, at 4:40 PM, Staffan Larsen wrote:

> 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