在为谷歌pubsub使用playtika测试容器时,我遇到了一个致命的异常



我在Jenkins上构建集成测试时遇到了一个致命的异常,尽管它在Mac OS上的本地Intellij上运行良好:

[DEBUG] # A fatal error has been detected by the Java Runtime Environment:
[DEBUG] #
[DEBUG] #  SIGSEGV (0xb) at pc=0x0000000000003fd6, pid=95, tid=0x00007f73d8feeb10
[DEBUG] #
[DEBUG] # JRE version: OpenJDK Runtime Environment (8.0_212-b04) (build 1.8.0_212-b04)
[DEBUG] # Java VM: OpenJDK 64-Bit Server VM (25.212-b04 mixed mode linux-amd64 compressed oops)
[DEBUG] # Derivative: IcedTea 3.12.0
[DEBUG] # Distribution: Custom build (Sat May  4 17:33:35 UTC 2019)
[DEBUG] # Problematic frame:
[DEBUG] # C  0x0000000000003fd6
[DEBUG] #
[DEBUG] # Core dump written. Default location: /home/jenkins/workspace/le-service_feature_DI-13019/core or core.95
[DEBUG] #
[DEBUG] # An error report file with more information is saved as:
[DEBUG] # /home/jenkins/workspace/le-service_feature_DI-13019/hs_err_pid95.log
[DEBUG] #
[DEBUG] # If you would like to submit a bug report, please include
[DEBUG] # instructions on how to reproduce the bug and visit:
[DEBUG] #   https://icedtea.classpath.org/bugzilla
[DEBUG] #

我在提供的路径中看不到Jenkins上的日志

容器创建并启动的那一刻,我有一个致命的异常

日志的另一部分

[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/jenkins/workspace/le-service_feature_DI-13019 && /usr/lib/jvm/java-1.8-openjdk/jre/bin/java -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.8/org.jacoco.agent-0.8.8-runtime.jar=destfile=/home/jenkins/workspace/le-service_feature_DI-13019/target/jacoco.exec,append=true -jar /home/jenkins/workspace/le-service_feature_DI-13019/target/surefire/surefirebooter602603825469423467.jar /home/jenkins/workspace/le-service_feature_DI-13019/target/surefire 2022-09-08T16-46-13_263-jvmRun1 surefire6688438040654119002tmp surefire_07067221753418690335tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 134

对于我的案例,Kevin Wittek指出的是问题所在。简单地说,我的本地JDK比Jenkins的JDK更新得更多,后者有一个低级错误。

我试着用树枝采用openjdk/openjdk8:高山修身(8u292-b10(而不是openjdk:8-jdk-alpine(java 8 8u111(,它已被弃用,并且有效。

相关内容

  • 没有找到相关文章

最新更新