Segfault in dwfl_module_getsrc

Frank Ch. Eigler fche@redhat.com
Wed May 10 01:18:51 GMT 2023


Hi -

> I tried to use elfutils to retrieve the backtrace within a signal handle,
> but I am having a segfault inside `dwfl_module_getsrc`.
> [...]

A red flag is "within a signal handler".  The kinds of code that one
may safely invoke in a signal handler are highly limited.  Most
elfutils functions are not safe this way.  See

% man signal-safety

- FChE



More information about the Elfutils-devel mailing list