grafana / pyroscope-java

pyroscope java integration
Apache License 2.0
72 stars 31 forks source link

Java agent core dumps #61

Closed zoranzaric-cpx closed 1 year ago

zoranzaric-cpx commented 1 year ago

When attaching the pyroscope Java agent v0.10.0 to an AdoptOpenJDK 11.0.10+9 via the -javaagent param the JVM core dumps:

java -javaagent:/vol1/opentelemetry-javaagent.jar -XX:InitialRAMPercentage=75 -XX:MinRAMPercentage=75 -XX:MaxRAMPercentage=75 -Djboss.bind.address.management=0.0.0.0 -javaagent:/vol1/pyroscope.jar -jar /aax3.jar
[otel.javaagent 2022-08-07 11:37:22:238 +0200] [main] INFO io.opentelemetry.javaagent.tooling.VersionLogger - opentelemetry-javaagent - version: 1.16.0
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f45b40683ec, pid=77, tid=78
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.10+9) (build 11.0.10+9)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.10+9, mixed mode, tiered, compressed oops, serial gc, linux-amd64)
# Problematic frame:
# C  [libasyncProfiler-linux-musl-x64-985c9164165111ceeb1f1ad439999652f717a057.so+0x203ec]  Symbols::parseLibraries(CodeCacheArray*, bool)+0xedc
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to //core.77)
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid77.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/AdoptOpenJDK/openjdk-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/vol1/entrypoint.sh: line 50:    77 Aborted                 (core dumped) java $JAVA_OPTS -jar "$1"

Environment variables:

zoranzaric-cpx commented 1 year ago

Version 0.10.1 fixed it. Thank you @korniltsev

Rperry2174 commented 1 year ago

Great! Thanks @zoranzaric-cpx

vanhtuan0409 commented 1 year ago

Hi, I still have the core dump if setting format to JFR. Is there any insight into this problem

korniltsev commented 1 year ago

@vanhtuan0409 Please open a separate issue, provide your agent configuration, jvm version & vendor, environment(docker image/os), musl/glibc ?, the core dump itself.

vanhtuan0409 commented 1 year ago

@korniltsev sorry for my lack of information. I opened a new issue here https://github.com/pyroscope-io/pyroscope-java/issues/74