[PATCH] libdwfl: Rewrite reading of ar_size in elf_begin_rand

2022-07-28 Thread Mark Wielaard
With GCC 12.1.1, glibc 2.3a, -fsanitize=undefined and -D_FORTIFY_SOURCE=3 we get the following error message: In file included from /usr/include/ar.h:22, from ../libelf/libelfP.h:33, from core-file.c:31: In function ‘pread’, inlined from ‘pread_retry’ at ../li

Re: [PATCH] libdwfl: Rewrite reading of ar_size in elf_begin_rand

2022-07-28 Thread Mark Wielaard
On Thu, 2022-07-28 at 15:48 +0200, Mark Wielaard wrote: > With GCC 12.1.1, glibc 2.3a, -fsanitize=undefined and > -D_FORTIFY_SOURCE=3 we get the following error message: Sorry for the typo, it is glibc 2.35. Basically an up to date Fedora 36 system (replicated on x86_64, ppc64le and s390x).

buildbot users try branch builders for elfutils

2022-07-28 Thread Mark Wielaard
Hi, I setup git users try branches for elfutils. If you have commit access to elfutils.git you can now push to a users//try-xxx branch and the buildbot will do builds and sent you (the commit author) email about the results. The builds are also visible at: https://builder.sourceware.org/buildbot/#

Re: debuginfod Credential Helper RFC

2022-07-28 Thread Mark Wielaard
Hi Daniel, On Tue, 2022-07-26 at 15:50 -0700, Daniel Thornburgh via Elfutils-devel wrote: > I'm working on a use case for debuginfod (in LLVM) that needs a > solution > for authentication and authorization of users when accessing source and > debug information. I've put together a short RFC for h

Re: runtime validation of DT_SYMTAB lookups - why is there no DT_SYMSZ?

2022-07-28 Thread Mark Wielaard
Hi Milian, On Wed, 2022-07-27 at 13:38 +0200, Milian Wolff wrote: > Thanks for confirming that this isn't available currently. Would it > be > possible to add this? What's the process for standardization here? I guess it > would take a very long time, yet this seems to me as if it would be > be

Re: [PATCH] libdwfl: Rewrite reading of ar_size in elf_begin_rand

2022-07-28 Thread Siddhesh Poyarekar
On 2022-07-28 09:48, Mark Wielaard wrote: With GCC 12.1.1, glibc 2.3a, -fsanitize=undefined and -D_FORTIFY_SOURCE=3 we get the following error message: In file included from /usr/include/ar.h:22, from ../libelf/libelfP.h:33, from core-file.c:31: In function ‘p

Re: debuginfod Credential Helper RFC

2022-07-28 Thread Daniel Thornburgh via Elfutils-devel
> > I think this could work for a standalone program like debuginfod-find, > but not for a library like libdebuginfod. I would rather not have to > fork and exec from libdebuginfod. > Could this functionality be made optional? Something a client could call to fork out to a credential helper, but wi

[Bug libdw/29430] New: `dwarf_getscopes` fails after a8493c1

2022-07-28 Thread godlygeek at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29430 Bug ID: 29430 Summary: `dwarf_getscopes` fails after a8493c1 Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Componen