Skip to content

x86_64 backend fails to reuse temporary stack values resulting in greater stack usage and potential overflow #24183

Open
@myclevorname

Description

@myclevorname

Zig Version

0.15.0-dev.822+dd75e7bcb

Steps to Reproduce and Observed Behavior

  1. Clone narser at commit 8e012d8df3ee91a32d0e5ba616f99b151ecb1a01
  2. At the base, run zig build -Duse-llvm
  3. Run ./zig-out/bin/narser pack src/ (works just fine)
  4. At the base, run zig build -Duse-llvm=false
  5. Run ./zig-out/bin/narser pack src/ (segfault without trace)

Expected Behavior

The program built with the self-hosted backend should behave identically to if it were built with the LLVM backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions