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

rustc interrupted by SIGSEGV #123025

Closed
arturamiryan opened this issue Mar 25, 2024 · 3 comments
Closed

rustc interrupted by SIGSEGV #123025

arturamiryan opened this issue Mar 25, 2024 · 3 comments
Labels
C-bug Category: This is a bug. O-linux Operating system: Linux O-riscv Target: RISC-V architecture

Comments

@arturamiryan
Copy link

I tried this code on Armbian on MangoPi MQ-Pro, RISC-V:

fn main() {
    println!("Hello, world!");
}

I expected to see this happen: standard compilation

Instead, this happened:

error: rustc interrupted by SIGSEGV, printing backtrace

/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-63b44ee064357158.so(+0xbe20c8)[0x3f995490c8]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fa0e92800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x48)[0x3f987d390a]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/libstd-1c886dc89bd84c1d.so(_ZN3std3sys3pal4unix2fs4File4read17hab68df65f645bf60E+0x26)[0x3f988d741c]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-63b44ee064357158.so(+0x53fd826)[0x3f9dd64826]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-63b44ee064357158.so(+0x53ff202)[0x3f9dd66202]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-63b44ee064357158.so(+0x53ff776)[0x3f9dd66776]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-63b44ee064357158.so(+0x53ff7c6)[0x3f9dd667c6]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-63b44ee064357158.so(+0x53ffe8e)[0x3f9dd66e8e]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-63b44ee064357158.so(+0x5400a50)[0x3f9dd67a50]
/home/user/.rustup/toolchains/stable-riscv64gc-unknown-linux-gnu/bin/../lib/libstd-1c886dc89bd84c1d.so(rust_metadata_std_7a07c3436a7b4eae+0x7ad72)[0x3f988dcd72]
/lib/riscv64-linux-gnu/libc.so.6(+0x6955a)[0x3f9878f55a]

Meta

rustc --version --verbose:

rustc 1.79.0-nightly (0824b300e 2024-03-24)
binary: rustc
commit-hash: 0824b300eb0dae5d9ed59719d3f2732016683d66
commit-date: 2024-03-24
host: riscv64gc-unknown-linux-gnu
release: 1.79.0-nightly
LLVM version: 18.1.2
Backtrace

error: rustc interrupted by SIGSEGV, printing backtrace

/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-909356f78f49b3cc.so(+0xc5ef12)[0x3fb6604f12]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0x3fbdfce800]
/lib/riscv64-linux-gnu/libc.so.6(read+0x48)[0x3fb57fd90a]
/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/libstd-9cb9eca00d5d78f0.so(_ZN3std3sys3pal4unix2fs4File4read17h8a74c485596d051fE+0x20)[0x3fb59086ca]
/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-909356f78f49b3cc.so(+0x587353a)[0x3fbb21953a]
/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-909356f78f49b3cc.so(+0x5873b26)[0x3fbb219b26]
/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-909356f78f49b3cc.so(+0x5873b76)[0x3fbb219b76]
/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-909356f78f49b3cc.so(+0x5874022)[0x3fbb21a022]
/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/librustc_driver-909356f78f49b3cc.so(+0x5874f26)[0x3fbb21af26]
/home/user/.rustup/toolchains/nightly-riscv64gc-unknown-linux-gnu/bin/../lib/libstd-9cb9eca00d5d78f0.so(rust_metadata_std_85a3b2a8897af422+0x82ec6)[0x3fb590eec6]
/lib/riscv64-linux-gnu/libc.so.6(+0x6955a)[0x3fb57b955a]

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
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s

@arturamiryan arturamiryan added the C-bug Category: This is a bug. label Mar 25, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 25, 2024
@saethlin
Copy link
Member

This looks an awful lot like #117022

@bjorn3
Copy link
Member

bjorn3 commented Mar 25, 2024

Which kernel version do you have? (uname -a will show this) If this is indeed the same issue as #117022 there was a regression which is fixed in linux 6.6 according to #117022 (comment).

@workingjubilee workingjubilee added O-linux Operating system: Linux O-riscv Target: RISC-V architecture labels Mar 25, 2024
@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Mar 25, 2024
@arturamiryan
Copy link
Author

Which kernel version do you have? (uname -a will show this) If this is indeed the same issue as #117022 there was a regression which is fixed in linux 6.6 according to #117022 (comment).

Yeah, that is probably it. Switched kernel version and it works again. Closing the issue, thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. O-linux Operating system: Linux O-riscv Target: RISC-V architecture
Projects
None yet
Development

No branches or pull requests

5 participants