[jdk17u-dev] RFR: 8242181: [Linux] Show source information when printing native stack traces in hs_err files [v3]

Ashutosh Mehra asmehra at openjdk.org
Fri Dec 8 15:25:20 UTC 2023


On Fri, 8 Dec 2023 15:08:35 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

>> Mostly a clean backport other than copyright year changes.
>> 
>> Tested with tier1 and tier2.
>
> Ashutosh Mehra has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Include runtime/globals.hpp to fix compile error when running with --disable-precompiled-headers
>   
>   Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>

hmm the new test `runtime/ErrorHandling/TestDwarf.java` added by this patch is failing on linux-x86


[dwarf] ##### Find filename and line number for offset 0x00086071 in library /lib32/libc.so.6 #####
[dwarf] Failed to load DWARF file for library /lib32/libc.so.6 or find DWARF sections directly inside it.
#
# Compiler replay data is saved as:
# /home/runner/work/jdk17u-dev/jdk17u-dev/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_runtime/scratch/0/replay_pid4875.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#

hs_err_file: hs_err_pid4875.log
STDERR:
java.lang.RuntimeException: Must find library in "C  [libc.so.6+0x86071]": expected true, was false
	at jdk.test.lib.Asserts.fail(Asserts.java:594)
	at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
	at TestDwarf.checkNoSourceLine(TestDwarf.java:181)
	at TestDwarf.runAndCheck(TestDwarf.java:153)
	at TestDwarf.test(TestDwarf.java:101)
	at TestDwarf.main(TestDwarf.java:91)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:[568](https://github.com/ashu-mehra/jdk17u-dev/actions/runs/7133685893/job/19427620333#step:9:569))
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:840)


This is same as https://bugs.openjdk.org/browse/JDK-8293201 which would also need to be backported.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2021#issuecomment-1847366407


More information about the jdk-updates-dev mailing list