JDK-8013466 : SA crashes when attaching to a process on OS X
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: hs25,7u91,7u101,7u111
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2013-04-29
  • Updated: 2016-03-23
  • Resolved: 2013-04-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u101Fixed 8Fixed hs25Fixed
Description
Since JDK-8003348 was checked in SA will crash when attaching to a process. There is a missing NULL-check of the return value from get_proc_handle().

Stack: [0x000000015f54b000,0x000000015f64b000],  sp=0x000000015f64a4f0,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libsaproc.dylib+0x73a6]  Java_sun_jvm_hotspot_debugger_bsd_BsdDebuggerLocal_lookupByName0+0x36
j  sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.lookupByName0(Ljava/lang/String;Ljava/lang/String;)J+0
j  sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.findABIVersion()V+48
j  sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.access$400(Lsun/jvm/hotspot/debugger/bsd/BsdDebuggerLocal;)V+1
j  sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$1AttachTask.doit(Lsun/jvm/hotspot/debugger/bsd/BsdDebuggerLocal;)V+24
j  sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$BsdDebuggerLocalWorkerThread.run()V+30
Comments
UR SQE is interested in the fix to go to CPU. Unfortunatelly we faced with some Aurora issues and can't check nightly. But we ready to take the risk. URSQE OK to take it to CPU16_02.
08-02-2016

Critical Request Template - Justification : Critical for Mac OS X testing, see previous comment - Risk Analysis : Low. Only affects attaching with a debugger (which is currently broken without this fix) - Webrev : See change - Testing (done/to-be-done) : Run currently failing tests - Back ports (done/to-be-done) : Done - Fix For Release : JDK 7 CPU
08-02-2016