Missing stacktrace on Windows 11 x86_64 for Dynamic Libraries linked at runtime (DynSym) #20255
Labels
bug
Observed behavior contradicts documented or intended behavior
regression
It worked in a previous version of Zig, but stopped working.
Milestone
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
When linking at runtime with
std.DynLib
, stacktrace can't find symbols from the.dll
.This used to work fine in 0.11.0, but stopped working on 0.12.0 and 0.13.0.
Here is a repro case (0.13.0) with 3 files [
main.zig
,my_lib.zig
,build.zig
]:Expected Behavior
(A) Stacktrace when linked at runtime:
(B) Stacktrace when linked at startup (expected):
Sorry if I'm missing something fundamental here, I'm not familiar with how stacktraces are generated in Zig, but I would expect the stacktrace to be present even when linking at runtime. Also it sounds like a regression to me as it used to work on Zig 0.11.0, but after updating to 0.12.0 it stopped working.
If the
build.zig
file is adapted, it's possible run the program and do the runtime linking in Zig 0.11.0 to confirm this used to work.The text was updated successfully, but these errors were encountered: