Skip to content

tests.sh: a run with no ALL DONE prints its exit code; a crash is run again under gdb - #121

Merged
ASDAlexander77 merged 1 commit into
mainfrom
tests-crash-diagnostics
Nov 27, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
tests-crash-diagnostics

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

array_class_splice.ts under -mm=rc, debug/jit, ended with no output at all on ubuntu-22.04 and 24.04 in the compiler's release run of 2026-11-26 (v0.0-pre-alpha136, attempts 1 and 2), and passed on attempt 3.

Could not reproduce it: ~700 runs of the exact CI package (WSL Ubuntu 26.04 with a local build; an ubuntu:22.04 container with the release run's own tslang-…-ubuntu-22.04 asset and its prebuilt debug default library; --mcpu=znver3/x86-64; pinned to 2 CPUs; the real tests.sh rc sequence from an empty __jit). This repo's CI ran the test ~120 times with alpha135 without a failure.

What the empty output says: a crash inside the program prints LLVM's stack dump on stderr (unbuffered), checked with a test that calls abort(). So this run was killed (OOM, SIGKILL) or crashed after the handlers were gone, at exit, before stdout's pipe buffer was flushed.

tests.sh now prints the exit code of a run with no ALL DONE (139 segfault, 134 abort, 137 kill, or a normal exit), and on a signal runs the test once more under gdb, when there is one, printing every thread's backtrace. The test stays failed either way. Checked in ubuntu:22.04 with an abort() probe: exit code 134, then the gdb backtrace.

CI here tests against the last compiler release, so the tests that need the compiler fixes merged since then (e.g. collection_literal_arguments.ts, object_dictionary_builtins.ts) fail as they do on #120; this change touches only tests.sh.

🤖 Generated with Claude Code

… run again under gdb

array_class_splice.ts -mm=rc debug/jit ended with no output at all on ubuntu-22.04/24.04 in the
release run of 2026-11-26 (twice), and passed on a rerun; ~700 runs of the same package (WSL 26.04,
an ubuntu:22.04 container, other CPU targets, 2 CPUs, the full tests.sh sequence) never reproduced
it. A crash inside the program prints LLVM's stack dump on stderr, so an empty output is a kill
(OOM, SIGKILL) or a crash after the handlers are gone, with stdout's pipe buffer never flushed.
The exit code now tells which, and a signal reruns the test once under gdb (when there is one)
for every thread's backtrace. The test stays failed either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit e3b8229 into main Nov 27, 2026
2 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant