JDK-8295646 : Ignore zero pairs in address descriptors read by dwarf parser
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: riscv
  • Submitted: 2022-10-19
  • Updated: 2022-11-15
  • Resolved: 2022-11-02
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 b22Fixed
Related Reports
Relates :  
Description
gtests os_linux.decoder_get_source_info* fail on RISC-V platform, for RISC-V's debuginfo has (0, 0) pairs in address descriptors, which will be misread as a terminating entry.

Some examples:

```
   ... readelf results ...

  Length:                   220
  Version:                  2
  Offset into .debug_info:  0x756b7
  Pointer Size:             8
  Segment Size:             0

    Address            Length
    00000000002d431e 0000000000001e5e
    00000000002d617c 00000000000005aa
    00000000002d6726 000000000000030e
    00000000002d6a34 00000000000000c8
    00000000002d6afc 0000000000000bfe
    00000000002d76fa 00000000000002e4
    00000000002d79de 0000000000000bfe
    00000000002d85dc 00000000000002e2
    0000000000000000 0000000000000000    <- here
    00000000002d88be 00000000000000c8
    00000000002d8986 000000000000030e
    0000000000265b3e 000000000000003a
    0000000000000000 0000000000000000
```
Comments
Changeset: 2634eff2 Author: Xiaolin Zheng <xlinzheng@openjdk.org> Committer: Christian Hagedorn <chagedorn@openjdk.org> Date: 2022-11-02 09:09:39 +0000 URL: https://git.openjdk.org/jdk/commit/2634eff24fde2760a72b607095412eef9955919e
02-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10758 Date: 2022-10-19 08:22:01 +0000
19-10-2022