[Bug libdw/21602] New: dwfl_addrmodule reports bogus modules for unmapped areas
https://sourceware.org/bugzilla/show_bug.cgi?id=21602 Bug ID: 21602 Summary: dwfl_addrmodule reports bogus modules for unmapped areas Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libdw Assignee: unassigned at sourceware dot org Reporter: jan.kratochvil at redhat dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- LD_LIBRARY_PATH=./libdw/ ./src/addr2line -p $p 0x7f7d33043000 Actual: insert: 0x55be1a359000..0x55be1a561000 i=0 segndx=-1 need_start=1 need_end=1 insert: 0x7f7d2c0e7000..0x7f7d32c8 i=2 segndx=-1 need_start=1 need_end=1 insert: 0x7f7d33046000..0x7f7d3326d000 i=4 segndx=-1 need_start=1 need_end=1 insert: 0x7ffdcf1bc000..0x7ffdcf1be000 i=6 segndx=-1 need_start=1 need_end=1 0x7f7d33043000 -> /usr/lib64/libc-2.24.so ??:0 Expected: 0x7f7d33043000 -> null ??:0 reify_segments() seems to do something wrong. That lookup_addr array seems to be wrongly built. 55be1a359000-55be1a36 r-xp fd:00 13636393 /usr/bin/sleep 55be1a55f000-55be1a56 r--p 6000 fd:00 13636393 /usr/bin/sleep 55be1a56-55be1a561000 rw-p 7000 fd:00 13636393 /usr/bin/sleep 55be1be9b000-55be1bebc000 rw-p 00:00 0 [heap] 7f7d2c0e7000-7f7d32c8 r--p fd:00 13651402 /usr/lib/locale/locale-archive 7f7d32c8-7f7d32e3d000 r-xp fd:00 13632051 /usr/lib64/libc-2.24.so 7f7d32e3d000-7f7d3303c000 ---p 001bd000 fd:00 13632051 /usr/lib64/libc-2.24.so 7f7d3303c000-7f7d3304 r--p 001bc000 fd:00 13632051 /usr/lib64/libc-2.24.so 7f7d3304-7f7d33042000 rw-p 001c fd:00 13632051 /usr/lib64/libc-2.24.so 7f7d33042000-7f7d33046000 rw-p 00:00 0 ^^^ 0x7f7d33043000 belongs here with no mapped file 7f7d33046000-7f7d3306b000 r-xp fd:00 13632665 /usr/lib64/ld-2.24.so 7f7d3323d000-7f7d3323f000 rw-p 00:00 0 7f7d33269000-7f7d3326b000 rw-p 00:00 0 7f7d3326b000-7f7d3326c000 r--p 00025000 fd:00 13632665 /usr/lib64/ld-2.24.so 7f7d3326c000-7f7d3326d000 rw-p 00026000 fd:00 13632665 /usr/lib64/ld-2.24.so -- You are receiving this mail because: You are on the CC list for the bug.
[Bug libdw/21602] dwfl_addrmodule reports bogus modules for unmapped areas
https://sourceware.org/bugzilla/show_bug.cgi?id=21602 Jan Kratochvil changed: What|Removed |Added CC||jan.kratochvil at redhat dot com --- Comment #1 from Jan Kratochvil --- Created attachment 10149 --> https://sourceware.org/bugzilla/attachment.cgi?id=10149&action=edit shown debugging output patch -- You are receiving this mail because: You are on the CC list for the bug.
[Bug debuginfod/25548] also support canonicalized source-file name lookups in webapi
https://sourceware.org/bugzilla/show_bug.cgi?id=25548 --- Comment #1 from Jan Kratochvil --- // g++ -o x x.cpp -Wall $(llvm-config --cxxflags --libs) #include #include #include int main(int argc, char **argv) { while (*++argv) { llvm::SmallString<128> path(*argv); if (llvm::sys::path::remove_dots(path, true /*remove_dot_dot*/, llvm::sys::path::Style::posix)) puts(path.c_str()); } } -- You are receiving this mail because: You are on the CC list for the bug.