]> git.ipfire.org Git - thirdparty/elfutils.git/commit
report_r_debug: handle `-z separate-code' and find more modules
authorLuke Diamand <ldiamand@roku.com>
Fri, 12 May 2023 19:11:45 +0000 (20:11 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 12 May 2023 19:56:54 +0000 (21:56 +0200)
commit0066e704b9ed21ac4b2070dfdef1611515b68d29
tree29b191d045b780e622f9feb46dac917dbd5717e0
parentd16628bb7dc39a020e555e16bf56374fdac84e42
report_r_debug: handle `-z separate-code' and find more modules

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.

The example I found had:
- 36 elements
- 109 iterations

See also discussion here:

    https://sourceware.org/pipermail/elfutils-devel/2023q2/006149.html

Signed-off-by: Luke Diamand <ldiamand@roku.com>
libdwfl/link_map.c