Closed jeremy-rifkin closed 1 year ago
I suspect this is because you're passing nullptr
to backtrace_create_state()
. It looks like libbacktrace doesn't know how to figure out the filename of the executable on windows.
Hm, looks like that'd be reasonably easy to add, using https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamea?redirectedfrom=MSDN
@ianlancetaylor Interested in a PR for that? Not a windows person, but the problem reproduces in wine, and I'd not mind useful backtraces from windows CI...
Sure, thanks.
Change committed.
I'm trying to use libbacktrace with msys2 / mingw-w64 but I'm getting the following output:
I'm using
mingw-w64-ucrt-x86_64-libbacktrace
provided by msys2.My code is below:
Am I doing something wrong?
I've seen other posts and issues where libbacktrace fails due to ASLR, but here it is failing even with -fno-PIE.