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

            Bug ID: 485134
           Summary: vgcore files unusable in gdb / does not load debug
                    symbols
    Classification: Developer tools
           Product: valgrind
           Version: 3.16.1
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: bernha...@mailbox.org
  Target Milestone: ---

Created attachment 168219
  --> https://bugs.kde.org/attachment.cgi?id=168219&action=edit
add_auxiliary_vector_to_vgcore_files.patch

It seems gcc defaults now quite some time to create pie executables.
And gdb seems to rely for core files of such executables to contain an auxv
section.

This was found in this Debian bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993018
There are more details about reproducing it.

I investigated back then and came up with an patch which makes valgrind write
the auxv section into the core file.
Unfortuantely forgot about it and now trying to upstream this.
Would such a patch be acceptable? If yes, how should I proceed?

Patch is attached and it seems still to apply to current valgrind 3.20.0 in
Debian Trixie/testing.

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

Reply via email to