Environment information
- Operating System: linux, openSUSE Tumbleweed snapshot 20250920
- Cutter version: 2.4.1
- Obtained from:
- File format: elf
- Compiler version: zig 0.15.1
Describe the bug
After clicking "Start Debug" button, cutter completely hangs for a long time.
If you do manage to click on a step button, it hangs again, usually with 100% CPU usage.
To Reproduce
- Create a source file:
hang.zig with contents: pub export fn _start() void {}
- Run
zig build-exe hang.zig -fllvm
- Run
cutter ./hang
- Start cutter and use defaults.
- Click "Start Debug"
- Hangs
Expected behavior
Should not hang.
Gdb on its own has no problem debugging this binary.
Additional context
Zig emits by default comprehensive debug info and safety boilerplate (ubsan, panic handler, etc.)