Closed yurivict closed 7 months ago
rustc crashes on the just project on Ubuntu in the release mode (debug mode is ok):
yuri@yuri-ubuntu:~/just$ cargo build -r Compiling just v1.24.0 (/home/yuri/just) /lib/x86_64-linux-gnu/librustc_driver-7e38755985ed6176.so(+0x7f5b13)[0x7f0301bf5b13] /lib/x86_64-linux-gnu/libc.so.6(+0x42990)[0x7f0301042990] /lib/x86_64-linux-gnu/libLLVM-17.so.1(+0x203a220)[0x7f02fb83a220] /lib/x86_64-linux-gnu/libLLVM-17.so.1(_ZN4llvm11InlinerPass3runERNS_13LazyCallGraph3SCCERNS_15AnalysisManagerIS2_JRS1_EEES5_RNS_17CGSCCUpdateResultE+0x1513)[0x7f02fb5b55d3] /lib/x86_64-linux-gnu/libLLVM-17.so.1(+0x1db95f1)[0x7f02fb5b95f1] /lib/x86_64-linux-gnu/libLLVM-17.so.1(_ZN4llvm11PassManagerINS_13LazyCallGraph3SCCENS_15AnalysisManagerIS2_JRS1_EEEJS4_RNS_17CGSCCUpdateResultEEE3runERS2_RS5_S4_S7_+0x171)[0x7f02fb835991] /lib/x86_64-linux-gnu/libLLVM-17.so.1(+0x1db9a81)[0x7f02fb5b9a81] /lib/x86_64-linux-gnu/libLLVM-17.so.1(_ZN4llvm33ModuleToPostOrderCGSCCPassAdaptor3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE+0x93a)[0x7f02fb836cea] /lib/x86_64-linux-gnu/libLLVM-17.so.1(+0x1db9e81)[0x7f02fb5b9e81] /lib/x86_64-linux-gnu/libLLVM-17.so.1(_ZN4llvm11PassManagerINS_6ModuleENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0x114)[0x7f02fa6513f4] /lib/x86_64-linux-gnu/libLLVM-17.so.1(_ZN4llvm24ModuleInlinerWrapperPass3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE+0x299)[0x7f02fb5b6c59] /lib/x86_64-linux-gnu/libLLVM-17.so.1(+0x3bdb701)[0x7f02fd3db701] /lib/x86_64-linux-gnu/libLLVM-17.so.1(_ZN4llvm11PassManagerINS_6ModuleENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0x114)[0x7f02fa6513f4] /lib/x86_64-linux-gnu/librustc_driver-7e38755985ed6176.so(+0xb9101f)[0x7f0301f9101f] /lib/x86_64-linux-gnu/librustc_driver-7e38755985ed6176.so(+0xb33d6e)[0x7f0301f33d6e] /lib/x86_64-linux-gnu/librustc_driver-7e38755985ed6176.so(+0xb0adb2)[0x7f0301f0adb2] /lib/x86_64-linux-gnu/librustc_driver-7e38755985ed6176.so(+0xac1af6)[0x7f0301ec1af6] /lib/x86_64-linux-gnu/librustc_driver-7e38755985ed6176.so(+0xafceea)[0x7f0301efceea] /lib/x86_64-linux-gnu/librustc_driver-7e38755985ed6176.so(+0xb00392)[0x7f0301f00392] /lib/x86_64-linux-gnu/libstd-72dc3e204caf39e2.so(rust_metadata_std_5c548edef055d7f2+0x7ec55)[0x7f03012b7c55] /lib/x86_64-linux-gnu/libc.so.6(+0x97b5a)[0x7f0301097b5a] /lib/x86_64-linux-gnu/libc.so.6(+0x1285fc)[0x7f03011285fc] error: could not compile `just` (bin "just") Caused by: process didn't exit successfully: `rustc --crate-name just --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=80 --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto --cfg 'feature="default"' -C metadata=3625eedeab629074 -C extra-filename=-3625eedeab629074 --out-dir /home/yuri/just/target/release/deps -L dependency=/home/yuri/just/target/release/deps --extern ansi_term=/home/yuri/just/target/release/deps/libansi_term-2ebed4affcd5138f.rlib --extern atty=/home/yuri/just/target/release/deps/libatty-ee672158224a23c3.rlib --extern blake3=/home/yuri/just/target/release/deps/libblake3-4f21dde2d617a4b9.rlib --extern camino=/home/yuri/just/target/release/deps/libcamino-6bd9b07cbdd9830c.rlib --extern clap=/home/yuri/just/target/release/deps/libclap-719cb9283b625d49.rlib --extern ctrlc=/home/yuri/just/target/release/deps/libctrlc-237ef31e2e4f457d.rlib --extern derivative=/home/yuri/just/target/release/deps/libderivative-583ae2ecec25e1b7.so --extern dirs=/home/yuri/just/target/release/deps/libdirs-24f6126193e9aed3.rlib --extern dotenvy=/home/yuri/just/target/release/deps/libdotenvy-2ead488dc822f94a.rlib --extern edit_distance=/home/yuri/just/target/release/deps/libedit_distance-fecc42ffeecce1c1.rlib --extern env_logger=/home/yuri/just/target/release/deps/libenv_logger-4e225f5bfb6ca325.rlib --extern heck=/home/yuri/just/target/release/deps/libheck-5f67a0e7bd3548d2.rlib --extern just=/home/yuri/just/target/release/deps/libjust-0d18fc8c4741ddb9.rlib --extern lexiclean=/home/yuri/just/target/release/deps/liblexiclean-eb9f9ee05a555617.rlib --extern libc=/home/yuri/just/target/release/deps/liblibc-14c3a6df60fc6dc7.rlib --extern log=/home/yuri/just/target/release/deps/liblog-470ac4583a60d13e.rlib --extern num_cpus=/home/yuri/just/target/release/deps/libnum_cpus-353772875c762902.rlib --extern regex=/home/yuri/just/target/release/deps/libregex-dc08aa15136a7fa6.rlib --extern semver=/home/yuri/just/target/release/deps/libsemver-42f1c948cbfb5aa9.rlib --extern serde=/home/yuri/just/target/release/deps/libserde-e2f23bc0c7f59402.rlib --extern serde_json=/home/yuri/just/target/release/deps/libserde_json-9ad3d0bcd2fe2af6.rlib --extern sha2=/home/yuri/just/target/release/deps/libsha2-9baa79cd62eaecb1.rlib --extern similar=/home/yuri/just/target/release/deps/libsimilar-649b5251fea31905.rlib --extern snafu=/home/yuri/just/target/release/deps/libsnafu-e6507fcf7f8adbed.rlib --extern strum=/home/yuri/just/target/release/deps/libstrum-e9bd764c29030601.rlib --extern target=/home/yuri/just/target/release/deps/libtarget-847b86e5b858e5d7.rlib --extern tempfile=/home/yuri/just/target/release/deps/libtempfile-d16202f550f4aff3.rlib --extern typed_arena=/home/yuri/just/target/release/deps/libtyped_arena-5ceb1fd9db61ec37.rlib --extern unicode_width=/home/yuri/just/target/release/deps/libunicode_width-dbd893c1aed3f269.rlib --extern uuid=/home/yuri/just/target/release/deps/libuuid-439bbafad477b0f9.rlib -L native=/home/yuri/just/target/release/build/blake3-022fd27bfeeff531/out -L native=/home/yuri/just/target/release/build/blake3-022fd27bfeeff531/out` (signal: 11, SIGSEGV: invalid memory reference)
rustc --version --verbose:
rustc --version --verbose
rustc 1.73.0 (cc66ad468 2023-10-03) (built from a source tarball) binary: rustc commit-hash: cc66ad468955717ab92600c770da8c1601a4ff33 commit-date: 2023-10-03 host: x86_64-unknown-1linux-gnu release: 1.73.0 LLVM version: 17.0.2
Does it work with rustc 1.76 (latest stable) or with nightly rustc?
No repro on 1.77
rustc crashes on the just project on Ubuntu in the release mode (debug mode is ok):
rustc --version --verbose
: