https://bugs.kde.org/show_bug.cgi?id=452758

            Bug ID: 452758
           Summary: Valgrind does not read properly DWARF5 as generated by
                    Clang14
           Product: valgrind
           Version: 3.19 GIT
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: l.lu...@kde.org
  Target Milestone: ---

Trying to use Valgrind with a binary compiled by Clang14 with DWARF5 enabled
results in Valgrind complaing about possibly corrupted debuginfo and aborting.

Attached are 3 patches that improve the situation. I'm not very familiar with
Valgrind internals or DWARF, but with these patches Valgrind is now able to run
Clang14-compiled programs without complaining and generally seems to work. The
one thing I've noticed that still does not work is backtraces with split-dwarf,
they report the binary name instead of source file location, I don't know if
the 3rd patch is incorrect in the assumption that rnglistx/loclistx may be
ignored, or if it's something else missing.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to