in debug builds, detect stack overflow at runtime and output a partial stack trace #1915
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
standard library
This issue involves writing Zig code for the standard library.
Milestone
The following snippet causes a segfaults on my machine:
Result:
I have little experience with low-level languages like this, but I guess this is some sort of stack overflow? If you subtract
10000
instead of1000
, the code runs successfully. I got the random-looking size from #1639 from the discussion of default stack sizes.Is this intended behavior? Is it PEBKAC? 😄 I have been spoiled so far in Zig with very nice stack traces, would it be possible to have a stack trace for this situation also?
Versions:
macOS Mojave 10.14.3
The text was updated successfully, but these errors were encountered: