https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110196
--- Comment #10 from fabian_kessler at gmx dot de <fabian_kessler at gmx dot de> --- > It is only called once, isn't it? Actually, _S_init is even called in a loop. And the singleton pattern is also a code extension from me. Therefore, backtrace_create_state is also called in a loop. > > This isn't portable, not all systems have /proc/self/exe, or readlink. > > I think it would be better to move this function into the library, and use > std::filesystem::read_symlink. Yes, that code snipped was just to test my assumption, which was only partially correct. Adding the path improved the stacktrace, but did not add the originating library. I don't feel experienced, to contribute STL code for more than x86_64.