RFR: 8282607: runtime/ErrorHandling/MachCodeFramesInErrorFile.java failed with "RuntimeException: 0 < 2"
Doug Simon
dnsimon at openjdk.java.net
Wed May 11 10:45:28 UTC 2022
I've looked through the failures reported in https://bugs.openjdk.java.net/browse/JDK-8282607 and in all cases, the problem is that hs_err is truncated while printing the register to memory mapping and always while printing x14. Here are a few examples:
Register to memory mapping:
x0=0x000000000000000a is an unknown value
x1=0x000000000000000a is an unknown value
x2=0x0 is NULL
x3=0x000000000000000a is an unknown value
x4=0x000000013e009080 points into unknown readable memory: 0xabababababababab | ab ab ab ab ab ab ab ab
x5=0x0000000000000005 is an unknown value
x6=0x0 is NULL
x7=0x0 is NULL
x8=0x0 is NULL
x9=0x0000000000000001 is an unknown value
x10=0x2010000030300000 is an unknown value
x11=0x0000000000000002 is an unknown value
x12={method} {0x0000000800467b20} 'getLong' '(Ljava/lang/Object;J)J' in 'jdk/internal/misc/Unsafe'
x13=0x0000000080000000 is an unknown value
x14=
and:
Register to memory mapping:
x0=0x000000000000000a is an unknown value
x1=0x000000000000000a is an unknown value
x2=0x0 is NULL
x3=0x000000000000000a is an unknown value
x4=0x000000012002ebc0 is pointing into metadata
x5=0x0000000000000012 is an unknown value
x6=0x0 is NULL
x7=0x0000000136808210 is a thread
x8=0x0 is NULL
x9=0x0000000000000001 is an unknown value
x10=0x2010000030300000 is an unknown value
x11=0x0000010000000102 is an unknown value
x12={method} {0x00000008004b0ed0} 'getLong' '(Ljava/lang/Object;J)J' in 'jdk/internal/misc/Unsafe'
x13=0x0000000080000000 is an unknown value
x14=
To avoid the MachCodeFramesInErrorFile test failing as a result the truncation, the test has been modified to pass if the section preceding the code blob dumping is not seen.
-------------
Commit messages:
- workaround truncated hs-err log on macosx-aarch64 in MachCodeFramesInErrorFile
Changes: https://git.openjdk.java.net/jdk/pull/8650/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8650&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8282607
Stats: 10 lines in 1 file changed: 10 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/8650.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8650/head:pull/8650
PR: https://git.openjdk.java.net/jdk/pull/8650
More information about the hotspot-runtime-dev
mailing list