Skip to content

Cutter hangs while trying to debug zig binary compiled with default debug info #3515

@eshom

Description

@eshom

Environment information

  • Operating System: linux, openSUSE Tumbleweed snapshot 20250920
  • Cutter version: 2.4.1
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository
  • 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

  1. Create a source file: hang.zig with contents: pub export fn _start() void {}
  2. Run zig build-exe hang.zig -fllvm
  3. Run cutter ./hang
  4. Start cutter and use defaults.
  5. Click "Start Debug"
  6. 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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions