Zig Version
0.17.0-dev.44+0177cb57c
Steps to Reproduce and Observed Behavior
Likely relevant issue: https://github.com/ziglang/zig/issues/24225 (about a person who had similar issues on Windows, while I happen to be on Linux. I also have experienced this bug for what feels like at least a year or so by now, which would match that person's experience)
System info:
$ uname -a
Linux nixos-laptop 6.18.22 #1-NixOS SMP PREEMPT_DYNAMIC Sat Apr 11 12:26:52 UTC 2026 x86_64 GNU/Linux
$ free -h
total used free shared buff/cache available
Mem: 15Gi 7.8Gi 414Mi 939Mi 7.9Gi 7.4Gi
Swap: 15Gi 5.8Gi 10Gi
Using the zig2 compiler to build just about any Zig program (like pub fn main() void {}) seems to crash my Framework Laptop 13 (11th gen Intel model) fairly consistently (say, 40-60% of the time). For small programs, sometimes the build succeeds. Other times, it gives me a core dump that seems to be related to some AVX512 instructions. Otherwise, the laptop screen freezes and becomes unresponsive requiring me to force the power off, or sometimes I see a visually messed up dmesg-like screen for a while until the laptop automatically reboots.
This doesn't seem to be my hardware being stressed as I can easily compile LLVM from source and have not failed any programs meant to stress or test memory issues.
At this point, I'm suspecting that it's a CPU bug? I don't even think this is actionable on Zig's side (except maybe being able to figure out a more minimal reproduction than "use zig2"), but I figured it's worth reporting as a continuation to the issue linked above. I mean, zig2 is the only program that I know that triggers this issue, and it's damn consistent at triggering it.
Feel free to close it, but I kind of wanted to document this somewhere.
Expected Behavior
Ideally, this wouldn't happen and I can actually follow the build steps in this project's README, or use something like zig-bootstrap. This issue does make it a tad harder for me to attempt contributing because I have yet to successfully compile Zig using zig2. (In the end, I used a static stage3 binary in place of where zig2 ought to be used)
I think I'll try bootstrapping versions 0.15.0 and earlier until I can at least come up with a bisect of when this started.
### Zig Version
0.17.0-dev.44+0177cb57c
### Steps to Reproduce and Observed Behavior
Likely relevant issue: https://github.com/ziglang/zig/issues/24225 (about a person who had similar issues on Windows, while I happen to be on Linux. I also have experienced this bug for what feels like at least a year or so by now, which would match that person's experience)
System info:
```sh-session
$ uname -a
Linux nixos-laptop 6.18.22 #1-NixOS SMP PREEMPT_DYNAMIC Sat Apr 11 12:26:52 UTC 2026 x86_64 GNU/Linux
$ free -h
total used free shared buff/cache available
Mem: 15Gi 7.8Gi 414Mi 939Mi 7.9Gi 7.4Gi
Swap: 15Gi 5.8Gi 10Gi
```
Using the `zig2` compiler to build just about any Zig program (like `pub fn main() void {}`) seems to crash my Framework Laptop 13 (11th gen Intel model) fairly consistently (say, 40-60% of the time). For small programs, sometimes the build succeeds. Other times, it gives me a core dump that seems to be related to some AVX512 instructions. Otherwise, the laptop screen freezes and becomes unresponsive requiring me to force the power off, or sometimes I see a visually messed up dmesg-like screen for a while until the laptop automatically reboots.
This doesn't seem to be my hardware being stressed as I can easily compile LLVM from source and have not failed any programs meant to stress or test memory issues.
At this point, I'm suspecting that it's a CPU bug? I don't even think this is actionable on Zig's side (except maybe being able to figure out a more minimal reproduction than "use `zig2`"), but I figured it's worth reporting as a continuation to the issue linked above. I mean, `zig2` is the only program that I know that triggers this issue, and it's damn consistent at triggering it.
Feel free to close it, but I kind of wanted to document this somewhere.
### Expected Behavior
Ideally, this wouldn't happen and I can actually follow the build steps in this project's README, or use something like `zig-bootstrap`. This issue does make it a tad harder for me to attempt contributing because I have yet to successfully compile Zig using `zig2`. (In the end, I used a static stage3 binary in place of where `zig2` ought to be used)
I think I'll try bootstrapping versions `0.15.0` and earlier until I can at least come up with a bisect of when this started.