Hitting g dwfl->lookup_elts limit in report_r_debug, so not all modules show up and backtracing fails

2023-04-25 Thread Luke Diamand via Elfutils-devel
I've got a few cores where report_r_debug() in link_map.c fails to find all of the modules - for example I had libc.so missing. This obviously meant that elfutils could not backtrace my core. It seems to be related to this code: /* There can't be more elements in the link_map list than there

[RFC PATCH 0/1] In report_r_debug, iterate more segments

2023-05-12 Thread Luke Diamand via Elfutils-devel
Further to: https://sourceware.org/pipermail/elfutils-devel/2023q2/006149.html This is a draft patch to increase the number of iterations looking for segments to load. This lets eu-stack backtrace cores that would otherwise fail. I have not included any unit tests as so far I have been unab

[RFC PATCH 1/1] report_r_debug: handle `-z separate-code' and find more modules

2023-05-12 Thread Luke Diamand via Elfutils-devel
Looking at some cores in eu-stack, I found that they were not being backtraced. This was because elfutils had not found some modules (e.g. libc-2.22.so) in report_r_debug. That is because it has a limit on the number of link map entries it will look at, to avoid loops in corrupted core files. Th

Re: [EXTERNAL] Re: Hitting g dwfl->lookup_elts limit in report_r_debug, so not all modules show up and backtracing fails

2023-05-12 Thread Luke Diamand via Elfutils-devel
On 08/05/2023 17:35, Mark Wielaard wrote: Hi Florian, Hi Luke, On Tue, 2023-05-02 at 09:57 +0200, Florian Weimer via Elfutils-devel wrote: * Luke Diamand via Elfutils-devel: I've got a few cores where report_r_debug() in link_map.c fails to find all of the modules - for example

[PATCHv2 0/1] In report_r_debug, iterate more segments

2023-05-12 Thread Luke Diamand via Elfutils-devel
Further to: https://sourceware.org/pipermail/elfutils-devel/2023q2/006149.html This is a patch to increase the number of iterations looking for segments to load. This lets eu-stack backtrace cores that would otherwise fail. Florian Weimer and Mark Wielaard suggested both the explanation and

[PATCHv2 1/1] report_r_debug: handle `-z separate-code' and find more modules

2023-05-12 Thread Luke Diamand via Elfutils-devel
Looking at some cores in eu-stack, I found that they were not being backtraced. This was because elfutils had not found some modules (e.g. libc-2.22.so) in report_r_debug. That is because it has a limit on the number of link map entries it will look at, to avoid loops in corrupted core files. Th

Re: [EXTERNAL] Re: [PATCH 1/5] strip: Adapt src/strip -o -f on mips

2023-05-16 Thread Luke Diamand via Elfutils-devel
On 09/05/2023 16:15, Mark Wielaard wrote: Hi, On Tue, 2023-04-11 at 16:12 +0800, Ying Huang wrote: From: Ying Huang In mips64 little-endian, r_info consists of four byte fields(contains three reloc types) and a 32-bit symbol index. In order to adapt GELF_R_SYM and GELF_R_TYPE, need convert