RFR: 8377395: serviceability/sa/TestJhsdbJstackMixedCore.java fails due to NPE because "because "this.cfa" is null"

Yasumasa Suenaga ysuenaga at openjdk.org
Wed Feb 25 11:18:53 UTC 2026


On Tue, 24 Feb 2026 16:06:24 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:

>> Thanks both!
>
> @YaSuenag 
> My fastdebug build has this issue on Amazon Linux 2:
> 
>  stderr: [java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.addOffsetTo(long)" because "this.cfa" is null
>         at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.amd64.LinuxAMD64CFrame.getNextRSP(LinuxAMD64CFrame.java:143)
>         at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.amd64.LinuxAMD64CFrame.sender(LinuxAMD64CFrame.java:189)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.PStack.run(PStack.java:195)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.PStack.run(PStack.java:65)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.PStack.run(PStack.java:60)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.run(JStack.java:67)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:278)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:241)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
>         at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.runWithArgs(JStack.java:90)
>         at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJSTACK(SALauncher.java:306)
>         at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:507)
> ]
>  exitValue = 0
> 
> java.lang.RuntimeException: 'Java_jdk_test_lib_apps_LingeredApp_crash' missing from stdout/stderr
>         at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:253)
>         at TestJhsdbJstackMixedCore.runJstackMixed(TestJhsdbJstackMixedCore.java:68)
>         at TestJhsdbJstackMixedCore.main(TestJhsdbJstackMixedCore.java:94)
>         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:1527)
> 
> 
> Git HEAD:
> 
> 49f14eb9fca (HEAD -> master, origin/master, origin/HEAD) 8378344: Refactor test/jdk/java/net/httpclient/*.java TestNG tests to JUnit
> e452d47867c 8378164: test/jdk/java/net/httpclient/http3/*.java: convert tests that use ITestContext to JUnit
> 0ed34913bac 8377944: LowMemoryTest2.java#id1 intermittent fails OOME: Metaspace

@eastig
Can you try #29779? 
If you see the failure with it, can you run the test with `LIBSAPROC_DEBUG=1` and share .jtr file?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29662#issuecomment-3955182751


More information about the serviceability-dev mailing list