The following test failed on my Ubuntu 16.04 server with JDK17 bits:
serviceability/sa/ClhsdbFindPC.java#id1
Here's a snippet from the log file:
----------System.err:(32/2016)----------
stdout: [ + findpc 0x00002b28f0f2a284
Address 0x00002b28f0f2a284: /work/shared/mirrors/src_clones/jdk/jdk_baseline.git/build/linux-x86_64-normal-server-fastdebug/images/jdk/lib/server/libjvm.so + 0xff50284
];
stderr: [ + findpc 0x00002b28f0f2a284
Address 0x00002b28f0f2a284: /work/shared/mirrors/src_clones/jdk/jdk_baseline.git/build/linux-x86_64-normal-server-fastdebug/images/jdk/lib/server/libjvm.so + 0xff50284
]
exitValue = -1
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'In code in NMethod for LingeredAppWithTrivialMain.main' missing from stdout/stderr
at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:242)
at ClhsdbFindPC.main(ClhsdbFindPC.java:264)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.RuntimeException: 'In code in NMethod for LingeredAppWithTrivialMain.main' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:325)
at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:163)
at ClhsdbLauncher.runOnCore(ClhsdbLauncher.java:222)
at ClhsdbFindPC.runTest(ClhsdbFindPC.java:254)
at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:167)
... 7 more
JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'In code in NMethod for LingeredAppWithTrivialMain.main' missing from stdout/stderr
I checked the JDK17 CI for today and this is what the output should
look like:
hsdb> hsdb> + verbose true
hsdb> + findpc 0x00007f5f2dee5184
Address 0x00007f5f2dee5184: In code in NMethod for LingeredAppWithTrivialMain.main([Ljava/lang/String;)V content: [0x00007f5f2dee5140, 0x00007f5f2dee5268), code: [0x00007f5f2dee5140, 0x00007f5f2dee5268), data: [0x00007f5f2dee5268, 0x00007f5f2dee52f0), oops: [0x00007f5f2dee5268, 0x00007f5f2dee5270), frame size: 64
hsdb> + quit
serviceability/sa/ClhsdbFindPC.java#id1
Here's a snippet from the log file:
----------System.err:(32/2016)----------
stdout: [ + findpc 0x00002b28f0f2a284
Address 0x00002b28f0f2a284: /work/shared/mirrors/src_clones/jdk/jdk_baseline.git/build/linux-x86_64-normal-server-fastdebug/images/jdk/lib/server/libjvm.so + 0xff50284
];
stderr: [ + findpc 0x00002b28f0f2a284
Address 0x00002b28f0f2a284: /work/shared/mirrors/src_clones/jdk/jdk_baseline.git/build/linux-x86_64-normal-server-fastdebug/images/jdk/lib/server/libjvm.so + 0xff50284
]
exitValue = -1
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'In code in NMethod for LingeredAppWithTrivialMain.main' missing from stdout/stderr
at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:242)
at ClhsdbFindPC.main(ClhsdbFindPC.java:264)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.RuntimeException: 'In code in NMethod for LingeredAppWithTrivialMain.main' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:325)
at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:163)
at ClhsdbLauncher.runOnCore(ClhsdbLauncher.java:222)
at ClhsdbFindPC.runTest(ClhsdbFindPC.java:254)
at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:167)
... 7 more
JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'In code in NMethod for LingeredAppWithTrivialMain.main' missing from stdout/stderr
I checked the JDK17 CI for today and this is what the output should
look like:
hsdb> hsdb> + verbose true
hsdb> + findpc 0x00007f5f2dee5184
Address 0x00007f5f2dee5184: In code in NMethod for LingeredAppWithTrivialMain.main([Ljava/lang/String;)V content: [0x00007f5f2dee5140, 0x00007f5f2dee5268), code: [0x00007f5f2dee5140, 0x00007f5f2dee5268), data: [0x00007f5f2dee5268, 0x00007f5f2dee52f0), oops: [0x00007f5f2dee5268, 0x00007f5f2dee5270), frame size: 64
hsdb> + quit
- duplicates
-
JDK-8261702 ClhsdbFindPC can fail due to PointerFinder incorrectly thinking an address is in a .so
- Resolved
- relates to
-
JDK-8247514 Improve clhsdb 'findpc' ability to determine what an address points to by improving PointerFinder and PointerLocation classes
- Resolved