From: "xtkoba (Tee KOBAYASHI)" Date: 2021-08-17T14:10:00+00:00 Subject: [ruby-core:104954] [Ruby master Bug#18081] addr2line.c: Wrong section for `DW_AT_ranges` Issue #18081 has been reported by xtkoba (Tee KOBAYASHI). ---------------------------------------- Bug #18081: addr2line.c: Wrong section for `DW_AT_ranges` https://bugs.ruby-lang.org/issues/18081 * Author: xtkoba (Tee KOBAYASHI) * Status: Open * Priority: Normal * ruby -v: ruby 3.1.0dev (2021-08-16T00:07:09Z master 4cc44bd819) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- When both `.debug_rnglists` and `.debug_ranges` sections exist, `DW_AT_ranges` can refer to a wrong section, potentially causing a segmentation fault. `DW_AT_ranges` should refer to `.debug_rnglists` for DWARF version 5, and `.debug_ranges` for DWARF version 4 and earlier. A patch is attached to fix this. Note that this patch will not be cleanly applied before patches posted in #17823 and #17052. ---Files-------------------------------- ruby-addr2line-section-for-DW_AT_ranges.patch (1.73 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: