GeistHaus
log in · sign up

Give more info when a UB trap is detected in zig cc debug mode · Issue #5163 · ziglang/zig

github.com

I'm sorry to jump out on that sort of issue again, because it was partially treated in issues such as #4830. To comment @andrewrk in the previous issue : Figuring out why such checks are always ena...

3 pages link to this URL
Debugging undefined behavior caught by Zig

Unlike other toolchains, Zig enables many more safety checks by default. We've caught undefined behavior in GLFW, the DirectX Shader Comppiler, and Google Chrome's WebGPU implementation as a result. But debugging these situations can be a bit tricky sometimes, so here's a walkthrough of how to debug such an error using Zig and LLDB.

0 inbound links article en zigzigtips