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

JVM crash with SIGSEGV during build on CI #21989

Closed
findepi opened this issue May 16, 2024 · 9 comments · Fixed by #21999
Closed

JVM crash with SIGSEGV during build on CI #21989

findepi opened this issue May 16, 2024 · 9 comments · Fixed by #21999

Comments

@findepi
Copy link
Member

findepi commented May 16, 2024

https://github.com/trinodb/trino/actions/runs/9093739349/job/24993326165?pr=21979

Maven home: /home/runner/.m2/wrapper/dists/apache-maven-3.9.6/a53741d1
Java version: 22.0.1, vendor: Eclipse Adoptium, runtime: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/22.0.1-8/x64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.5.0-1018-azure", arch: "amd64", family: "unix"
protoc-jar: executing: [/tmp/protoc7167436648078899449.exe, --version]
libprotoc [25](https://github.com/trinodb/trino/actions/runs/9093739349/job/24993326165?pr=21979#step:4:26).3
protoc-jar: executing: [/tmp/protoc7167436648078899449.exe, -I/home/runner/work/trino/trino/plugin/trino-kafka/src/test/resources/protobuf-sources, --java_out=/home/runner/work/trino/trino/plugin/trino-kafka/target/generated-test-sources, /home/runner/work/trino/trino/plugin/trino-kafka/src/test/resources/protobuf-sources/unsupported_recursive.proto]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe8461ad55c, pid=87389, tid=87513
#
# JRE version: OpenJDK Runtime Environment Temurin-22.0.1+8 (22.0.1+8) (build 22.0.1+8)
# Java VM: OpenJDK 64-Bit Server VM Temurin-22.0.1+8 (22.0.1+8, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x7ad55c]  void OopOopIterateDispatch<G1CMOopClosure>::Table::oop_oop_iterate<InstanceKlass, narrowOop>(G1CMOopClosure*, oopDesc*, Klass*)+0x1bc
#
# 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 /home/runner/work/trino/trino/core.87389)
#
# An error report file with more information is saved as:
# /home/runner/work/trino/trino/hs_err_pid87389.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
#
/home/runner/work/_temp/152014b6-3ffc-46f2-b979-b52c4b7e4772.sh: line 2: 87389 Aborted                 (core dumped) $MAVEN clean install ${MAVEN_FAST_INSTALL} ${MAVEN_GIB} -pl '!:trino-docs,!:trino-server,!:trino-server-rpm'
Error: Process completed with exit code 1[34](https://github.com/trinodb/trino/actions/runs/9093739349/job/24993326165?pr=21979#step:4:35).
@findepi
Copy link
Member Author

findepi commented May 16, 2024

cc @wendigo

@findepi
Copy link
Member Author

findepi commented May 16, 2024

https://github.com/trinodb/trino/actions/runs/9108705557/job/25040045645?pr=21913

protoc-jar: executing: [/tmp/protoc421573661301017302.exe, -I/home/runner/work/trino/trino/plugin/trino-kafka/src/test/resources/protobuf-sources, --java_out=/home/runner/work/trino/trino/plugin/trino-kafka/target/generated-test-sources, /home/runner/work/trino/trino/plugin/trino-kafka/src/test/resources/protobuf-sources/unsupported_recursive.proto]
Error:  Unable to lookup MojosExecutionStrategy: java.lang.ClassCastException: class Ljdk.internal.vm.FillerArray; cannot be cast to class org.eclipse.sisu.inject.MildElements$Indexable (Ljdk.internal.vm.FillerArray; is in module java.base of loader 'bootstrap'; org.eclipse.sisu.inject.MildElements$Indexable is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @1b28cdfa)
Error:        role: org.apache.maven.plugin.MojosExecutionStrategy
Error:    roleHint:
Error:  java.lang.IllegalStateException: Unable to lookup MojosExecutionStrategy: java.lang.ClassCastException: class Ljdk.internal.vm.FillerArray; cannot be cast to class org.eclipse.sisu.inject.MildElements$Indexable (Ljdk.internal.vm.FillerArray; is in module java.base of loader 'bootstrap'; org.eclipse.sisu.inject.MildElements$Indexable is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @1b28cdfa)
Error:        role: org.apache.maven.plugin.MojosExecutionStrategy
Error:    roleHint:
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f18717dd109, pid=87758, tid=87878
#
# JRE version: OpenJDK Runtime Environment Temurin-22.0.1+8 (22.0.1+8) (build 22.0.1+8)
# Java VM: OpenJDK 64-Bit Server VM Temurin-22.0.1+8 (22.0.1+8, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xddd109]  SharedRuntime::generate_class_cast_message(Klass*, Klass*, Symbol*)+0x59
#
# 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 /home/runner/work/trino/trino/core.87758)
#
# An error report file with more information is saved as:
# /home/runner/work/trino/trino/hs_err_pid87758.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
#
/home/runner/work/_temp/aff433cd-e2ad-4f81-87ea-3d[29](https://github.com/trinodb/trino/actions/runs/9108705557/job/25040045645?pr=21913#step:4:30)376ced05.sh: line 2: 87758 Aborted                 (core dumped) $MAVEN clean install ${MAVEN_FAST_INSTALL} ${MAVEN_GIB} -pl '!:trino-docs,!:trino-server,!:trino-server-rpm'
Error: Process completed with exit code 134.

@wendigo
Copy link
Contributor

wendigo commented May 16, 2024

Seems related: adoptium/adoptium-support#344

@findepi
Copy link
Member Author

findepi commented May 16, 2024

@wendigo
Copy link
Contributor

wendigo commented May 16, 2024

Credit goes to @cstamas as we've discussed that over Slack

@cstamas
Copy link
Member

cstamas commented May 16, 2024

Was recorded as this eclipse-sisu/sisu-project#130
But this is "just FTR issue", hopefully fixed in Java 22.0.2

@wendigo
Copy link
Contributor

wendigo commented May 16, 2024

@wendigo
Copy link
Contributor

wendigo commented May 16, 2024

#21999

@wendigo
Copy link
Contributor

wendigo commented May 17, 2024

Workaround applied

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

Successfully merging a pull request may close this issue.

3 participants