Skip to content

Engine SIGSEGV: RegExp.prototype.test trailing-input edge case #515

@frostney

Description

@frostney

The test262 conformance harness (per-test ScriptLoaderBare subprocess) crashes the engine with SIGSEGV when running:

test/staging/sm/RegExp/test-trailing.js

Reproduce locally:

./build.pas loaderbare
bun scripts/run_test262_suite.ts --suite-dir
--filter 'staging/sm/RegExp/test-trailing.js'
--jobs 1

Expected: a normal pass/fail outcome. Actual: process exits with SIGSEGV before any conformance verdict.

This test exercises a RegExp.prototype.test trailing-input edge case from SpiderMonkey's staging set. The crash predates #513 (the harness rewrite); the new per-test subprocess simply makes it visible per-test instead of cascading across a chunk.

Until fixed, this test ID is in the KNOWN_ENGINE_CRASHES skip list in scripts/run_test262_suite.ts. Remove from that set when the engine no longer crashes on this input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineTGocciaEngine: language semantics, ECMAScript built-ins, parser, interpreter, bytecode VM

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions