Skip to content

Recover native ARM64 crash evidence when LLDB stalls on the imported fixture #581

Open

Description

@LunaStev

Current implementation after #1071

The Python collector has been retired by PR #1071. Its current replacement is diagnose in tools/src/windows.rs, called with:

wave-tools diagnose-windows-arm64 --wavec <native ARM64 wavec.exe> --llvm-bin <native LLVM directory> --output <evidence directory>

Keep this issue open for the remaining diagnostic-recovery behavior. The Rust collector records compiler and debugger failures separately, retains the 90-second LLDB budget and uses the shared owned-process cleanup in tools/src/process.rs. It still has no alternate crash-artifact collection path when LLDB hangs. The current probes target MSVC; retired Windows GNU probes must not be restored.

The old crash/debugger stall below is historical evidence. This update does not establish that the current compiler still crashes or that the stall was reproduced on the current native ARM64 runner. Reproduce or inject a controlled debugger stall before claiming a new native result. Preserve useful compiler evidence even when the debugger fails, rather than weakening the timeout or skipping the imported fixture.

Historical native CI evidence

In PR #574's native ARM64 diagnostic job at ed149e7553c06efc30b5167920cc301563d6afb3:

  • minimal.wave passes frontend checking; GNU and MSVC IR emission both exit 0xC0000005.
  • LLDB captures a stack for both minimal inputs.
  • tests/cases/windows/arm64/test1.wave also passes checking and exits 0xC0000005 promptly outside LLDB.
  • For that imported fixture, both GNU and MSVC debugger probes stop logging at (lldb) run and time out after 90 seconds, producing no stack or register report for that input.

The job artifact windows-arm64-codegen-diagnostics contains test1-gnu-ir-debugger.log and test1-msvc-ir-debugger.log with this exact timeout. LLVM and LLDB are 21.1.8 on windows-11-vs2026-arm, with native ARM64 Python 3.11 and compiler symbols.

Source: bounded debugger invocation.

Investigation and acceptance

  • Reproduce the debugger-only stall using the saved native compiler and imported input; distinguish launch, exception handling, symbol loading, and pipe/process-supervision waits.
  • Collect bounded fallback evidence when LLDB cannot complete, such as a dump or another supported native debugger path.
  • Preserve the original compiler failure and clearly distinguish debugger failure from compiler timeout.
  • Keep time limits and descendant cleanup; do not merely remove the timeout or skip the imported input.
  • Demonstrate useful evidence for both minimal and imported inputs on native ARM64.

The known compiler crash stays in #493. This issue tracks reliability of the diagnostic collector; the successful minimal backtrace must not be described as missing.

Activity

  1. added
    bug
    help wanted
    os-specific bug
    ci
    on Sep 11, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcihelp wantedos-specific bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions