rust-lang / rust-lang/rust

Spurious SIGSEGV when building `regex-automata` (dep of stage 0 tool coverage-dump) on x86_64-apple-darwin in CI

Open
#139,245 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-spurious C-bug CI-spurious-x86_64-apple-SIGSEGV-SIGILL I-crash O-apple O-x86_64 S-needs-repro T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

See https://github.com/rust-lang/rust/pull/139242#issuecomment-2771953395.

2025-04-02T09:19:22.3591380Z [RUSTC-TIMING] regex_automata test:false 2.828
2025-04-02T09:19:22.3809420Z rustc exited with signal: 11 (SIGSEGV)
2025-04-02T09:19:22.3848270Z �[1m�[31merror�[0m�[1m:�[0m could not compile `regex-automata` (lib)
CI log
2025-04-02T09:19:16.1992320Z ##[group]Building stage0 tool coverage-dump (x86_64-apple-darwin)
2025-04-02T09:19:16.3934540Z    Compiling typenum v1.17.0
2025-04-02T09:19:16.3936150Z    Compiling version_check v0.9.5
2025-04-02T09:19:16.3941180Z    Compiling memchr v2.7.4
2025-04-02T09:19:16.3941790Z [RUSTC-TIMING] regex_syntax test:false 12.233
2025-04-02T09:19:16.3942410Z    Compiling anyhow v1.0.95
2025-04-02T09:19:16.6887000Z [RUSTC-TIMING] build_script_build test:false 0.280
2025-04-02T09:19:16.7186180Z [RUSTC-TIMING] version_check test:false 0.317
2025-04-02T09:19:16.7188860Z    Compiling cfg-if v1.0.0
2025-04-02T09:19:16.7227450Z    Compiling generic-array v0.14.7
2025-04-02T09:19:16.7649290Z [RUSTC-TIMING] cfg_if test:false 0.038
2025-04-02T09:19:16.7658470Z    Compiling adler v1.0.2
2025-04-02T09:19:16.9103660Z [RUSTC-TIMING] build_script_build test:false 0.172
2025-04-02T09:19:16.9247930Z [RUSTC-TIMING] adler test:false 0.152
2025-04-02T09:19:16.9256710Z    Compiling miniz_oxide v0.7.4
2025-04-02T09:19:16.9300400Z [RUSTC-TIMING] build_script_main test:false 0.529
2025-04-02T09:19:17.7486860Z [RUSTC-TIMING] typenum test:false 0.684
2025-04-02T09:19:17.7647460Z [RUSTC-TIMING] anyhow test:false 0.817
2025-04-02T09:19:17.7656380Z    Compiling aho-corasick v1.1.3
2025-04-02T09:19:18.0985450Z [RUSTC-TIMING] memchr test:false 1.690
2025-04-02T09:19:18.0993530Z    Compiling rustc-demangle v0.1.24
2025-04-02T09:19:18.8139560Z [RUSTC-TIMING] generic_array test:false 1.060
2025-04-02T09:19:18.8162330Z    Compiling crypto-common v0.1.6
2025-04-02T09:19:18.9889830Z [RUSTC-TIMING] crypto_common test:false 0.168
2025-04-02T09:19:18.9921890Z    Compiling block-buffer v0.10.4
2025-04-02T09:19:19.0557610Z [RUSTC-TIMING] miniz_oxide test:false 2.122
2025-04-02T09:19:19.0566220Z    Compiling leb128 v0.2.5
2025-04-02T09:19:19.1180290Z [RUSTC-TIMING] block_buffer test:false 0.119
2025-04-02T09:19:19.1189400Z    Compiling digest v0.10.7
2025-04-02T09:19:19.1515840Z [RUSTC-TIMING] leb128 test:false 0.088
2025-04-02T09:19:19.3243710Z    Compiling md-5 v0.10.6
2025-04-02T09:19:19.3284660Z [RUSTC-TIMING] digest test:false 0.205
2025-04-02T09:19:19.3689810Z [RUSTC-TIMING] rustc_demangle test:false 1.266
2025-04-02T09:19:19.4422310Z [RUSTC-TIMING] md5 test:false 0.113
2025-04-02T09:19:19.5185410Z    Compiling regex-automata v0.4.9
2025-04-02T09:19:22.3591380Z [RUSTC-TIMING] regex_automata test:false 2.828
2025-04-02T09:19:22.3809420Z rustc exited with signal: 11 (SIGSEGV)
2025-04-02T09:19:22.3848270Z error: could not compile `regex-automata` (lib)
2025-04-02T09:19:22.3850090Z 
2025-04-02T09:19:22.3856560Z Caused by:
2025-04-02T09:19:22.3878850Z   process didn't exit successfully: `/Users/runner/work/rust/rust/build/bootstrap/debug/rustc /Users/runner/work/rust/rust/build/bootstrap/debug/rustc --crate-name regex_automata --edition=2021 /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/regex-automata-0.4.9/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="dfa-onepass"' --cfg 'feature="hybrid"' --cfg 'feature="meta"' --cfg 'feature="nfa-backtrack"' --cfg 'feature="nfa-pikevm"' --cfg 'feature="nfa-thompson"' --cfg 'feature="perf-inline"' --cfg 'feature="perf-literal"' --cfg 'feature="perf-literal-multisubstring"' --cfg 'feature="perf-literal-substring"' --cfg 'feature="std"' --cfg 'feature="syntax"' --cfg 'feature="unicode"' --cfg 'feature="unicode-age"' --cfg 'feature="unicode-bool"' --cfg 'feature="unicode-case"' --cfg 'feature="unicode-gencat"' --cfg 'feature="unicode-perl"' --cfg 'feature="unicode-script"' --cfg 'feature="unicode-segment"' --cfg 'feature="unicode-word-boundary"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("alloc", "default", "dfa", "dfa-build", "dfa-onepass", "dfa-search", "hybrid", "internal-instrument", "internal-instrument-pikevm", "logging", "meta", "nfa", "nfa-backtrack", "nfa-pikevm", "nfa-thompson", "perf", "perf-inline", "perf-literal", "perf-literal-multisubstring", "perf-literal-substring", "std", "syntax", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment", "unicode-word-boundary"))' -C metadata=bab88db0d56a8cac -C extra-filename=-159966159ad12c20 --out-dir /Users/runner/work/rust/rust/build/x86_64-apple-darwin/stage0-bootstrap-tools/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -L dependency=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/stage0-bootstrap-tools/x86_64-apple-darwin/release/deps -L dependency=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/stage0-bootstrap-tools/release/deps --extern aho_corasick=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/stage0-bootstrap-tools/x86_64-apple-darwin/release/deps/libaho_corasick-2b9b98d5bfd9bcef.rmeta --extern memchr=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/stage0-bootstrap-tools/x86_64-apple-darwin/release/deps/libmemchr-0a4f412715e182b5.rmeta --extern regex_syntax=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/stage0-bootstrap-tools/x86_64-apple-darwin/release/deps/libregex_syntax-fda7b81e2a32ebb6.rmeta --cap-lints allow --cfg=bootstrap --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap)' -Zmacro-backtrace -Csplit-debuginfo=unpacked -Zosx-rpath-install-name '-Clink-args=-Wl,-rpath,@loader_path/../lib' -Alinker-messages -Zunstable-options -Z binary-dep-depinfo` (exit status: 254)
2025-04-02T09:19:22.3988680Z warning: build failed, waiting for other jobs to finish...
2025-04-02T09:19:22.8660870Z [RUSTC-TIMING] aho_corasick test:false 5.097
2025-04-02T09:19:22.8839790Z Build completed unsuccessfully in 0:05:30

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked pull request comment and reproduce the stage0 coverage-dump build for x86_64-apple-darwin. Inspect the reported regex-automata src/lib.rs compilation and CI command; done means the build completes without rustc exiting with SIGSEGV.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, ci-cd, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.