Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java agent core dumps #61

Closed
zoranzaric-cpx opened this issue Aug 7, 2022 · 5 comments
Closed

Java agent core dumps #61

zoranzaric-cpx opened this issue Aug 7, 2022 · 5 comments

Comments

@zoranzaric-cpx
Copy link

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:

  • PYROSCOPE_SERVER_ADDRESS=http://pyroscope.monitoring:4040
  • PYROSCOPE_APPLICATION_NAME=rpdev.aax-gui
@zoranzaric-cpx
Copy link
Author

Version 0.10.1 fixed it. Thank you @korniltsev

@Rperry2174
Copy link

Great! Thanks @zoranzaric-cpx

@vanhtuan0409
Copy link

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

@korniltsev
Copy link
Collaborator

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

@vanhtuan0409
Copy link

@korniltsev sorry for my lack of information. I opened a new issue here #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants