JDK-8293422 : DWARF emitted by Clang cannot be parsed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-09-06
  • Updated: 2022-11-28
  • Resolved: 2022-11-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 b25Fixed
Related Reports
Relates :  
Description
Using a clean debug build with clang (14.0.6) toolchain, `make CONF=debug test TEST="gtest:os_linux.decoder_get_source_info_valid_vm"` fails with

```
assert(false) failed: No address descriptor found containing offset_in_library.
...
# Problematic frame:
# V  [libjvm.so+0xdc496f]  DwarfFile::DebugAranges::find_compilation_unit_offset(unsigned int, unsigned int*)+0x16f
```

gcc (11.2.0) toolchain works fine.


This can also be observed in VM crashes:
$ java -XX:CICrashAt=1 --version
Comments
Changeset: 8b8d8481 Author: Christian Hagedorn <chagedorn@openjdk.org> Date: 2022-11-21 12:58:45 +0000 URL: https://git.openjdk.org/jdk/commit/8b8d8481bc05eec70a1df832668322e5c17694d8
21-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10287 Date: 2022-09-15 11:59:08 +0000
15-09-2022