Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 904998

Summary: dev-lang/rust-1.69.0-r1 failed to run: /var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/bootstrap/debug/bootstrap build -vv --config=/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/config.toml -j9
Product: Gentoo Linux Reporter: email200202
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: UNCONFIRMED ---    
Severity: normal CC: navi, randy, rust
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=756340
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.gz
emerge -pqv '=dev-lang/rust-1.69.0-r1::gentoo'
emerge --info '=dev-lang/rust-1.69.0-r1::gentoo'

Description email200202 2023-04-25 06:49:47 UTC
dev-lang/rust-1.69.0-r1 failed to emerge with the message:

Did not run successfully: signal: 11 (SIGSEGV)
rustc exited with signal: 11 (SIGSEGV)
error: could not compile `rustc_middle`

Caused by:
process didn't exit successfully: `CARGO=/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rust-stage0/bin/cargo CARGO_CRATE_NAME=rustc_middle CARGO_MANIFEST_DIR=/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/compiler/rustc_middle CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=rustc_middle CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' 

...
...
...

-------------
command did not execute successfully: cd "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src" && AR_x86_64_unknown_linux_gnu="x86_64-pc-linux-gnu-ar" CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_TARGET_DIR="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc" CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="x86_64-pc-linux-gnu-gcc" CC_x86_64_unknown_linux_gnu="x86_64-pc-linux-gnu-gcc" CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-linux-gnu" CFG_DEFAULT_CODEGEN_BACKEND="llvm" CFG_DEFAULT_LINKER="x86_64-pc-linux-gnu-gcc" CFG_DISABLE_UNSTABLE_FEATURES="1" CFG_LIBDIR_RELATIVE="lib" CFG_RELEASE="1.69.0" CFG_RELEASE_CHANNEL="stable" CFG_VERSION="1.69.0 (84c898d65 2023-04-16) (gentoo)" CFG_VER_DATE="2023-04-16" CFG_VER_HASH="84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc" CFG_VIRTUAL_RUST_SOURCE_BASE_DIR="/rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc" CFLAGS_x86_64_unknown_linux_gnu="-ffunction-sections -fdata-sections -fPIC -m64 -m64" CXXFLAGS_x86_64_unknown_linux_gnu="-ffunction-sections -fdata-sections -fPIC -m64 -pipe -march=native -mtune=native" CXX_x86_64_unknown_linux_gnu="x86_64-pc-linux-gnu-g++" LLVM_CONFIG="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/x86_64-unknown-linux-gnu/llvm/build/bin/llvm-config" LLVM_NDEBUG="1" LLVM_RUSTLLVM="1" RANLIB_x86_64_unknown_linux_gnu="x86_64-pc-linux-gnu-ar s" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/x86_64-unknown-linux-gnu/native" RUSTC="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/bootstrap/debug/rustc" RUSTC_BACKTRACE_ON_ICE="1" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_DEBUGINFO_MAP="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src=/rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc" RUSTC_ERROR_METADATA_DST="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/tmp/extended-error-metadata" RUSTC_FORCE_UNSTABLE="1" RUSTC_HOST_LINKER="x86_64-pc-linux-gnu-gcc" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rust-stage0/lib" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros -Dwarnings" RUSTC_REAL="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rust-stage0/bin/rustc" RUSTC_SNAPSHOT="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rust-stage0/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rust-stage0/lib" RUSTC_STAGE="0" RUSTC_SYSROOT="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/x86_64-unknown-linux-gnu/stage0-sysroot" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="2" RUSTDOC="/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="--cfg=bootstrap -Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) --check-cfg=values(parallel_compiler) --check-cfg=values(no_btreemap_remove_entry) --check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations) --check-cfg=values(rustix_use_libc) --check-cfg=values(emulate_second_only_system) -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.69.0n(84c898d65n2023-04-16)n(gentoo)" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="--cfg=bootstrap -Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=values(bootstrap) --check-cfg=values(parallel_compiler) --check-cfg=values(no_btreemap_remove_entry) --check-cfg=values(crossbeam_loom) --check-cfg=values(span_locations) --check-cfg=values(rustix_use_libc) --check-cfg=values(emulate_second_only_system) -Zmacro-backtrace -Csplit-debuginfo=off -Zunstable-options -Wrustc::internal -Cprefer-dynamic" RUST_TEST_THREADS="9" WINAPI_NO_BUNDLED_LIBRARIES="1" __CARGO_DEFAULT_LIB_METADATA="bootstrap" "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rust-stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "--release" "-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j" "9" "-v" "-v" "--locked" "--frozen" "--features" "llvm max_level_info" "--manifest-path" "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit status: 101
Traceback (most recent call last):
File "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/./x.py", line 29, in <module>
bootstrap.main()
File "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/src/bootstrap/bootstrap.py", line 946, in main
bootstrap(args)
File "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/src/bootstrap/bootstrap.py", line 921, in bootstrap
run(args, env=env, verbose=build.verbose, is_bootstrap=True)
File "/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/src/bootstrap/bootstrap.py", line 167, in run
raise RuntimeError(err)
RuntimeError: failed to run: /var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/build/bootstrap/debug/bootstrap build -vv --config=/var/tmp/portage/dev-lang/rust-1.69.0-r1/work/rustc-1.69.0-src/config.toml -j9


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -auvDN world

Actual Results:  
failed

Expected Results:  
not to fail
Comment 1 email200202 2023-04-25 06:54:10 UTC
Created attachment 860731 [details]
build.log.gz
Comment 2 email200202 2023-04-25 06:55:51 UTC
Created attachment 860732 [details]
emerge -pqv '=dev-lang/rust-1.69.0-r1::gentoo'
Comment 3 email200202 2023-04-25 06:56:58 UTC
Created attachment 860733 [details]
emerge --info '=dev-lang/rust-1.69.0-r1::gentoo'
Comment 4 Georgy Yakovlev archtester gentoo-dev 2023-04-30 08:34:34 UTC
Is it reproducible?
If yes, does it always fail at the same place or fails at random?

It’s using pre-downloaded rust binary and it segfaults.

Would be nice to see backtrace from gdb, if you can obtain one if it’s reproduced at same crate.

minicoredumper may help with capturing the coredump on openrc system.