Skip to content

SIGSEGV (Address boundary error) when build.zig changed #19427

@MFAshby

Description

@MFAshby

Zig Version

0.12.0-dev.3433+640acf862

Steps to Reproduce and Observed Behavior

  • zig init to make a new project
  • zig build build it first time
  • edit build.zig file, any trivial edit will do e.g. add a comment
  • zig build again
  • SIGSEGV signal is received.
martin@martin-pinebook ~/d/zig-issue> zig init
info: created build.zig
info: created build.zig.zon
info: created src/main.zig
info: created src/root.zig
info: see `zig build --help` for a menu of options
martin@martin-pinebook ~/d/zig-issue> zig build
martin@martin-pinebook ~/d/zig-issue> echo "// some comment" >> build.zig
martin@martin-pinebook ~/d/zig-issue> zig build
fish: Job 1, 'zig build' terminated by signal SIGSEGV (Address boundary error)
martin@martin-pinebook ~/d/zig-issue [SIGSEGV]>

Note I am on linux-aarch64

martin@martin-pinebook ~/d/zig-issue> uname -a
Linux martin-pinebook 6.6.7-1-MANJARO-ARM #1 SMP PREEMPT Sun Dec 17 15:40:27 UTC 2023 aarch64 GNU/Linux

Expected Behavior

The project should successfully compile and run

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions