New test serviceability/sa/TestJhsdbJstackMixedCore.java from JDK-8374482 fails on Linux Alpine

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 27
    • Component/s: hotspot
    • None
    • x86_64
    • linux_alpine

      The test misses this output, maybe we do not get this on Alpine for some good reason (and should avoid testing for this on Linux Alpine) ?

      java.lang.RuntimeException: '<signal handler called>' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
      at TestJhsdbJstackMixedCore.runJstackMixed(TestJhsdbJstackMixedCore.java:62)
      at TestJhsdbJstackMixedCore.main(TestJhsdbJstackMixedCore.java:74)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
      at java.base/java.lang.Thread.run(Thread.java:1516)

      The hserr seems to show the crash that is caused intentionally by the test :


      # SIGSEGV (0xb) at pc=0x00007fdf16097130, pid=5136, tid=5156
      #
      # JRE version: OpenJDK Runtime Environment (27.0) (build 27-internal-adhoc.jenkinsi.jdk)
      # Java VM: OpenJDK 64-Bit Server VM (27-internal-adhoc.jenkinsi.jdk, mixed mode, sharing, tiered, compressed oops, compact obj headers, g1 gc, linux-amd64)
      # Problematic frame:
      # C [libLingeredApp.so+0x1130] Java_jdk_test_lib_apps_LingeredApp_crash+0x0

      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libLingeredApp.so+0x1130] Java_jdk_test_lib_apps_LingeredApp_crash+0x0 (libLingeredApp.c:42)
      j jdk.test.lib.apps.LingeredApp.main([Ljava/lang/String;)V+133
      v ~StubRoutines::call_stub_stub (stub gen) 0x00007fdf234015a2
      V [libjvm.so+0xaa66c0] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x2b0
      V [libjvm.so+0xb7d7e3] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) [clone .constprop.1]+0x373
      V [libjvm.so+0xb800ef] jni_CallStaticVoidMethod+0x15f
      C [libjli.so+0x3b5a] invokeStaticMainWithArgs+0x4a
      C [libjli.so+0x4c00] JavaMain+0xed0
      C [libjli.so+0x8139] ThreadJavaMain+0x9
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j jdk.test.lib.apps.LingeredApp.crash()I+0
      j jdk.test.lib.apps.LingeredApp.main([Ljava/lang/String;)V+133
      v ~StubRoutines::call_stub_stub (stub gen) 0x00007fdf234015a2

            Assignee:
            Yasumasa Suenaga
            Reporter:
            Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: