Project

General

Profile

Actions

Bug #17823

closed

addr2line.c: Interpret `DW_RLE_start_length`

Added by xtkoba (Tee KOBAYASHI) over 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:103578]

Description

I noticed some of the symbol names were missing from C backtrace for an i686-linux binary built with GCC 10.3 + DWARF 5, and found that the form DW_RLE_start_length is used in it. This form was left uninterpreted in addr2line.c, because at the time of implementation the main purpose was to suppress segfaults (#17585).

The attached patch implements the interpretation of DW_RLE_start_length and DW_RLE_start_end. It also fixes some minor errors in the function ranges_include, mainly around the base address handling.

The patch also fixes the function read_dw_form_addr to use the correct address size (reader->address_size).

Note that the DW_RLE_*'s that require .debug_addr section are still left uninterpreted.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0