Re: Segfault in dwfl_module_getsrc

2023-05-09 Thread Frank Ch. Eigler via Elfutils-devel
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 function

Segfault in dwfl_module_getsrc

2023-05-09 Thread Wei Wu via Elfutils-devel
Hello elfutils developers, I tried to use elfutils to retrieve the backtrace within a signal handle, but I am having a segfault inside `dwfl_module_getsrc`. *Here is my code:* Dwfl_Callbacks proc_callbacks; proc_callbacks.find_debuginfo = dwfl_standard_find_debuginfo, proc_callbacks.debuginfo_pat