IV88646: JVM CRASHES WHEN TRYING TO PRINT A STACK TRACE
Closed as program error.
Error Message: A SIGSEGV or GPF is raised in libj9vm26.so when a Java program tries to print the stack trace stored in a Throwable object . Stack Trace: Native stack: getOriginalROMMethod iterateStackTrace getStackTrace java_lang_J9VMInternals_getStackTrace Java stack: java/lang/J9VMInternals.getStackTrace java/lang/Throwable.getInternalStackTrace java/lang/Throwable.printStackTrace java/lang/Throwable.printStackTrace .
-Xnoclassgc This option prevents class unloading. Note that this option may increase the memory footprint of the application
When trying to print the stack trace stored in a Throwable object, it is possible for the class of one of the methods in the stack trace to get unloaded. If that method was JIT compiled and the unloading happens during a narrow timing window, then the metadata structure describing said method will get altered which could lead to a NULL dereference.
The JVM has been updated to prevent altering of the metadata structure while it is still in use during the printing of a stack trace . This APAR will be fixed in the following Java Releases: 6 R1 SR8 FP40 (22.214.171.124) 7 R1 SR3 FP60 (126.96.36.199) 7 SR10 (188.8.131.52) 8 SR3 FP12 (184.108.40.206) . Contact your IBM Product's Service Team for these Service Refreshes and Fix Packs. For those running stand-alone, information about the available Service Refreshes and Fix Packs can be found at: https://www.ibm.com/developerworks/java/jdk/
Reported component name
J9 COMMON CODE
Reported component ID
NoSpecatt / Xsystem
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
J9 COMMON CODE
Fixed component ID
Applicable component levels