From: "mame (Yusuke Endoh)" Date: 2022-06-09T09:19:54+00:00 Subject: [ruby-core:108825] [Ruby master Bug#18081] addr2line.c: Wrong section for `DW_AT_ranges` Issue #18081 has been updated by mame (Yusuke Endoh). Status changed from Open to Feedback @xtkoba I'm not familiar with DWARF. Could you show a reference to justify your change, for example the section of the DWARF spec that explains the spec change? ---------------------------------------- Bug #18081: addr2line.c: Wrong section for `DW_AT_ranges` https://bugs.ruby-lang.org/issues/18081#change-97901 * Author: xtkoba (Tee KOBAYASHI) * Status: Feedback * 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: