Hi Paul,

On Tue, Oct 27, 2020 at 04:20:51PM -0400, Paul Smith wrote:
> On Tue, 2020-10-27 at 15:39 +0100, Mark Wielaard wrote:
> > The basic idea behind getting buildids into core files is that they
> > (the GNU ELF notes) are at the start of the file in the first page
> > that is dumped (together with the phdrs) in the core file so when
> > core file consumers can walk the program headers and find the buildid
> > note (almost immediately following those headers).
> 
> Something is missing; if I check the binary I see a build ID in it.  I
> can control whether the userspace coredumper or the kernel coredumper
> is used via an environment variable: the kernel-generated core contains
> a full set of build ID values including vdso.so, the binary, and all
> normal .so's.
> 
> But when using the userspace coredumper I get a completely valid
> coredump that GDB is happy with, for example, but there is only the
> vdso.so build ID present: I don't see any build IDs from the binary or
> shared libraries.
> 
> I guess another possibility is that they are there but eu-unstrip
> --core can't find them?

Do you have the generated core files somehwere so others can look at
them? How exactly are you testing the build-id notes are there?

Cheers,

Mark

Reply via email to