Hi,

On Mon Aug 10 09:26:07 GMT 2026, pramod kumbhar wrote:
> ... As I understand it, dwfl_linux_proc_report records absolute
> module paths from /proc/<pid>/maps, and dwfl_linux_proc_find_elf then tries
> to open those paths directly from the host filesystem. For containerized
> targets, there are two possible issues:
> - the host cannot open the mapped path at all, or
> - the host can open the same absolute pathname, but it resolves to the
> wrong file from the host filesystem.
>
> I was wondering whether this scenario should be supported in libdwfl. One
> possible approach would be for normal absolute paths coming from
> dwfl_linux_proc_report, resolve them through /proc/<pid>/root/<mapped-path>
> so lookup follows the target process root for live proc-maps modules. ...

I found the same issue and generally agree with you.

For future readers, there is (now) a bug ticket regarding this problem:
https://sourceware.org/bugzilla/show_bug.cgi?id=34643

Best regards,
Alexander

--

KUKA Deutschland GmbH   Board of Directors: Michael Jürgens (Chairman), Johan 
Naten, Hui Zhang   Registered Office: Augsburg HRB 14914

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of contents of this e-mail is strictly 
forbidden.

Please consider the environment before printing this e-mail.

Reply via email to