GeistHaus
log in · sign up

Debugging undefined behavior caught by Zig

devlog.hexops.org

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 pages link to this URL

No pages have linked to this URL yet.