Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when compiling cranelift-codegen on Termux #138889

Open
licy183 opened this issue Mar 24, 2025 · 3 comments
Open

Crash when compiling cranelift-codegen on Termux #138889

licy183 opened this issue Mar 24, 2025 · 3 comments
Labels
A-parser Area: The parsing of Rust source code to an AST C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-android Operating system: Android T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@licy183
Copy link

licy183 commented Mar 24, 2025

Code

cargo new hello_world --bin
cd hello_world/
cargo add wasmtime
cargo build

Meta

It is originally reported on aarch64-linux-android, but it is also reproducible on x86_64-linux-android with both nightly and stable. aarch64-linux-android will also be affected by libunwind issue (#138880), but it seems that the libunwind issue is not related to the crash.

rustc --version --verbose:

rustc 1.85.1 (4eb161250 2025-03-15) (built from a source tarball)
binary: rustc
commit-hash: 4eb161250e340c8f48f66e2b929ef4a5bed7c181
commit-date: 2025-03-15
host: x86_64-linux-android
release: 1.85.1
LLVM version: 19.1.7
rustc 1.87.0-nightly (aa8f0fd71 2025-03-23) (built from a source tarball)
binary: rustc
commit-hash: aa8f0fd7163a2f23aa958faed30c9c2b77b934a5
commit-date: 2025-03-23
host: x86_64-linux-android
release: 1.87.0-nightly
LLVM version: 19.1.7

Error output

See below section backtrace.
Backtrace

~/hello_world $ RUST_BACKTRACE=1 cargo build -j 1
   Compiling cranelift-codegen v0.118.0
error: rustc interrupted by SIGSEGV, printing backtrace

/data/data/com.termux/files/usr/lib/libandroid-execinfo.so(backtrace+0x34) [0x7f452d8e8510]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4522797834]
/system/lib64/libc.so(+0x0) [0x7f452d90ca8f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452517ee24]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452517c422]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452513a9fb]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b7cc]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser15parse_expr_cond+0x6c) [0x7f452513a82c]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452513cc64]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b18b]

### cycle encountered after 13 frames with period 24
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
### recursed 3 times

/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452513ccf7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b18b]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452513ccf7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b18b]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452513ccf7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b18b]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452514b06f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525148217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525122137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f452511698d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f45250f7151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4525197bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f452519e122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519cb37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f452519c6e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f452519a2c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4525138a3f]

note: rustc unexpectedly overflowed its stack! this is a bug
note: maximum backtrace depth reached, frames may have been lost
note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
note: backtrace dumped due to SIGSEGV! resuming signal
error: could not compile `cranelift-codegen` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name cranelift_codegen --edition=2021 /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cranelift-codegen-0.118.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=120 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 '--allow=clippy::all' --warn=unused_import_braces --warn=unused_extern_crates --warn=unused-macro-rules --warn=unused-lifetimes --warn=unstable_features --warn=unsafe-attr-outside-unsafe '--warn=clippy::unnecessary_to_owned' '--warn=clippy::unnecessary_mut_passed' '--warn=clippy::unnecessary_fallible_conversions' '--warn=clippy::unnecessary_cast' '--warn=clippy::uninlined_format_args' --warn=unexpected_cfgs --warn=trivial_numeric_casts --warn=rust-2024-prelude-collisions --warn=rust-2024-incompatible-pat --warn=rust-2024-guarded-string-incompatible-syntax --warn=missing-unsafe-on-extern '--warn=clippy::map_clone' '--warn=clippy::manual_strip' --warn=keyword_idents_2024 --warn=impl-trait-overcaptures --warn=deprecated-safe-2024 '--warn=clippy::clone_on_copy' '--warn=clippy::allow_attributes_without_reason' --check-cfg 'cfg(pulley_tail_calls)' --check-cfg 'cfg(pulley_assume_llvm_makes_tail_calls)' --cfg 'feature="gimli"' --cfg 'feature="host-arch"' --cfg 'feature="pulley"' --cfg 'feature="std"' --cfg 'feature="timing"' --cfg 'feature="unwind"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("all-arch", "all-native-arch", "anyhow", "arm64", "capstone", "core", "default", "disas", "enable-serde", "gimli", "host-arch", "incremental-cache", "isle-errors", "postcard", "pulley", "riscv64", "s390x", "serde", "serde_derive", "sha2", "souper-harvest", "souper-ir", "std", "timing", "trace-log", "unwind", "x86"))' -C metadata=eec0572cee1e1bba -C extra-filename=-595dd7d323326606 --out-dir /data/data/com.termux/files/home/hello_world/target/debug/deps -L dependency=/data/data/com.termux/files/home/hello_world/target/debug/deps --extern bumpalo=/data/data/com.termux/files/home/hello_world/target/debug/deps/libbumpalo-31a601f251914945.rmeta --extern cranelift_assembler_x64=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_assembler_x64-18dd94afd164bcca.rmeta --extern cranelift_bforest=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_bforest-5c741e48809e9b9a.rmeta --extern cranelift_bitset=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_bitset-b898642cf233c941.rmeta --extern cranelift_codegen_shared=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_codegen_shared-274908252be0c526.rmeta --extern cranelift_control=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_control-0de45c0874d7a721.rmeta --extern cranelift_entity=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_entity-031436fb2a28cda9.rmeta --extern gimli=/data/data/com.termux/files/home/hello_world/target/debug/deps/libgimli-01a989a70abbe307.rmeta --extern hashbrown=/data/data/com.termux/files/home/hello_world/target/debug/deps/libhashbrown-3738866ed8c59b4e.rmeta --extern log=/data/data/com.termux/files/home/hello_world/target/debug/deps/liblog-8fcdf3ed35ce8184.rmeta --extern pulley_interpreter=/data/data/com.termux/files/home/hello_world/target/debug/deps/libpulley_interpreter-fdfe6539f0f89432.rmeta --extern regalloc2=/data/data/com.termux/files/home/hello_world/target/debug/deps/libregalloc2-b65423efc5cc1dbd.rmeta --extern rustc_hash=/data/data/com.termux/files/home/hello_world/target/debug/deps/librustc_hash-fcbaffb5b2d602cd.rmeta --extern smallvec=/data/data/com.termux/files/home/hello_world/target/debug/deps/libsmallvec-b309f48d325855d5.rmeta --extern target_lexicon=/data/data/com.termux/files/home/hello_world/target/debug/deps/libtarget_lexicon-67394346692141d1.rmeta --cap-lints allow --cfg 'feature="x86"'` (signal: 11, SIGSEGV: invalid memory reference)

@licy183 licy183 added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 24, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 24, 2025
@licy183
Copy link
Author

licy183 commented Mar 24, 2025

The full stacktrace on aarch64-linux-android with rustc (debug=true, optimize=1): rustc-logs.txt

@Noratrieb Noratrieb added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-android Operating system: Android and removed I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Mar 24, 2025
@saethlin
Copy link
Member

The full stacktrace on aarch64-linux-android with rustc (debug=true, optimize=1): rustc-logs.txt

This is a crash by a rustc with substantially less optimizations enabled, which probably means it uses even more stack space than the original crash. It is possible that it crashes in the same code path, but there's no particular reason to believe that it does.

It looks to me like this issue is plain old stack exhaustion, in which case the RUST_MIN_STACK suggested in the diagnostic should help, though you may need to do more than double the stack size. Can you eventually compile cranelift-codegen with a large enough RUST_MIN_STACK?

@saethlin saethlin added the A-parser Area: The parsing of Rust source code to an AST label Mar 24, 2025
@licy183
Copy link
Author

licy183 commented Mar 25, 2025

Can you eventually compile cranelift-codegen with a large enough RUST_MIN_STACK?

No. In a release build (debug=false, optimize=true), after setting a larger RUST_MIN_STACK, the crash still happens.

~/hello_world $ RUST_MIN_STACK=10000000000000 cargo build -j 1
   Compiling cranelift-codegen v0.118.0
error: rustc interrupted by SIGSEGV, printing backtrace

/data/data/com.termux/files/usr/lib/libandroid-execinfo.so(backtrace+0x34) [0x7f4ac4843510]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4acdb54834]
/system/lib64/libc.so(+0x0) [0x7f4ad1312a8f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad053be24]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0539422]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f79fb]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05087cc]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser15parse_expr_cond+0x6c) [0x7f4ad04f782c]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f9c64]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050818b]

### cycle encountered after 13 frames with period 24
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
### recursed 3 times

/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f9cf7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050818b]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f9cf7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050818b]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f9cf7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050818b]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad050806f]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0505217]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04df137]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4exprNtB4_6Parser21parse_expr_assoc_with+0x7d) [0x7f4ad04d398d]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04b4151]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser27parse_stmt_without_recovery+0x191d) [0x7f4ad0554bbd]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser15parse_full_stmt+0x112) [0x7f4ad055b122]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad0559b37]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad05596e6]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(_RNvMNtNtCsk4qmVSYvuP5_11rustc_parse6parser4stmtNtB4_6Parser11parse_block+0x37) [0x7f4ad05572c7]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5bc3]
/data/data/com.termux/files/usr/opt/rust-nightly/lib/librustc_driver-7b433c3330008723.so(+0x0) [0x7f4ad04f5a3f]

note: rustc unexpectedly overflowed its stack! this is a bug
note: maximum backtrace depth reached, frames may have been lost
note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=20000000000000
note: backtrace dumped due to SIGSEGV! resuming signal
error: could not compile `cranelift-codegen` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name cranelift_codegen --edition=2021 /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cranelift-codegen-0.118.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=120 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 '--allow=clippy::all' --warn=unused_import_braces --warn=unused_extern_crates --warn=unused-macro-rules --warn=unused-lifetimes --warn=unstable_features --warn=unsafe-attr-outside-unsafe '--warn=clippy::unnecessary_to_owned' '--warn=clippy::unnecessary_mut_passed' '--warn=clippy::unnecessary_fallible_conversions' '--warn=clippy::unnecessary_cast' '--warn=clippy::uninlined_format_args' --warn=unexpected_cfgs --warn=trivial_numeric_casts --warn=rust-2024-prelude-collisions --warn=rust-2024-incompatible-pat --warn=rust-2024-guarded-string-incompatible-syntax --warn=missing-unsafe-on-extern '--warn=clippy::map_clone' '--warn=clippy::manual_strip' --warn=keyword_idents_2024 --warn=impl-trait-overcaptures --warn=deprecated-safe-2024 '--warn=clippy::clone_on_copy' '--warn=clippy::allow_attributes_without_reason' --check-cfg 'cfg(pulley_tail_calls)' --check-cfg 'cfg(pulley_assume_llvm_makes_tail_calls)' --cfg 'feature="gimli"' --cfg 'feature="host-arch"' --cfg 'feature="pulley"' --cfg 'feature="std"' --cfg 'feature="timing"' --cfg 'feature="unwind"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("all-arch", "all-native-arch", "anyhow", "arm64", "capstone", "core", "default", "disas", "enable-serde", "gimli", "host-arch", "incremental-cache", "isle-errors", "postcard", "pulley", "riscv64", "s390x", "serde", "serde_derive", "sha2", "souper-harvest", "souper-ir", "std", "timing", "trace-log", "unwind", "x86"))' -C metadata=eec0572cee1e1bba -C extra-filename=-595dd7d323326606 --out-dir /data/data/com.termux/files/home/hello_world/target/debug/deps -L dependency=/data/data/com.termux/files/home/hello_world/target/debug/deps --extern bumpalo=/data/data/com.termux/files/home/hello_world/target/debug/deps/libbumpalo-31a601f251914945.rmeta --extern cranelift_assembler_x64=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_assembler_x64-18dd94afd164bcca.rmeta --extern cranelift_bforest=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_bforest-5c741e48809e9b9a.rmeta --extern cranelift_bitset=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_bitset-b898642cf233c941.rmeta --extern cranelift_codegen_shared=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_codegen_shared-274908252be0c526.rmeta --extern cranelift_control=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_control-0de45c0874d7a721.rmeta --extern cranelift_entity=/data/data/com.termux/files/home/hello_world/target/debug/deps/libcranelift_entity-031436fb2a28cda9.rmeta --extern gimli=/data/data/com.termux/files/home/hello_world/target/debug/deps/libgimli-01a989a70abbe307.rmeta --extern hashbrown=/data/data/com.termux/files/home/hello_world/target/debug/deps/libhashbrown-3738866ed8c59b4e.rmeta --extern log=/data/data/com.termux/files/home/hello_world/target/debug/deps/liblog-8fcdf3ed35ce8184.rmeta --extern pulley_interpreter=/data/data/com.termux/files/home/hello_world/target/debug/deps/libpulley_interpreter-fdfe6539f0f89432.rmeta --extern regalloc2=/data/data/com.termux/files/home/hello_world/target/debug/deps/libregalloc2-b65423efc5cc1dbd.rmeta --extern rustc_hash=/data/data/com.termux/files/home/hello_world/target/debug/deps/librustc_hash-fcbaffb5b2d602cd.rmeta --extern smallvec=/data/data/com.termux/files/home/hello_world/target/debug/deps/libsmallvec-b309f48d325855d5.rmeta --extern target_lexicon=/data/data/com.termux/files/home/hello_world/target/debug/deps/libtarget_lexicon-67394346692141d1.rmeta --cap-lints allow --cfg 'feature="x86"'` (signal: 11, SIGSEGV: invalid memory reference)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser Area: The parsing of Rust source code to an AST C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-android Operating system: Android T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants