#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000010d58d2c3, pid=50118, tid=0x0000000000002703
#
# JRE version: Java(TM) SE Runtime Environment (8.0_112-b16) (build 1.8.0_112-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b16 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x18d2c3] void oop_store<unsigned int>(unsigned int*, oopDesc*)+0x93
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/jz/code/stackparam/hs_err_pid50118.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Abort trap: 6
Thanks for writing this agent, its a great intro to JVMTI for would be tinkerers (like me!)
I've tried out the agent in the Scala compiler. I've experienced a race condition of some sort.
Invocation:
(or,
brew install scala; scalac -J-agentpath:... test.scala
)Success:
Hang
Sample: https://gist.github.com/df539bec027279148d0ca0e7ba3d5bea Spindump: https://gist.github.com/79c6a311c70a4d66613c08e1a1d560aa
Excerpt from GC thread:
Linking invokedynamic callsites which (sadly) use exceptions as control flow, likely very early in startup.
Crash
hs_err_pid50118.log