freenet / freenet-core

Declare your digital independence
https://freenet.org/
Apache License 2.0
2.28k stars 79 forks source link

Intermittent build error #1196

Open sanity opened 3 months ago

sanity commented 3 months ago

On the refactor-conn-handling branch I'm seeing this error while trying to install crates/core - however when I try it again it seems to build successfully.

main/crates/core on  refac… [$!] took 16s ❯ RUST_MIN_STACK=33554432 cargo install --path .

[...]

   Compiling freenet v0.0.7 (/home/ian/code/freenet/freenet-core/main/crates/core)
error: rustc interrupted by SIGSEGV, printing backtrace

/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/librustc_driver-a30ca400d2857f33.so(+0x3031f56)[0x7ac8c2e31f56]
/lib/x86_64-linux-gnu/libc.so.6(+0x45320)[0x7ac8bfa45320]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/libLLVM.so.18.1-rust-1.80.1-stable(_ZN4llvm13GlobalOptPass3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE+0xe3b)[0x7ac8bde46ffb]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/libLLVM.so.18.1-rust-1.80.1-stable(+0x5e461ad)[0x7ac8bde461ad]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/libLLVM.so.18.1-rust-1.80.1-stable(_ZN4llvm11PassManagerINS_6ModuleENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_+0xe1)[0x7ac8be2715b1]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/librustc_driver-a30ca400d2857f33.so(LLVMRustOptimize+0x822)[0x7ac8c4e8e56e]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/librustc_driver-a30ca400d2857f33.so(+0x508d40d)[0x7ac8c4e8d40d]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/librustc_driver-a30ca400d2857f33.so(_RNvXs1_CsaLffIo6RIaI_18rustc_codegen_llvmNtB5_18LlvmCodegenBackendNtNtNtCsCnLwsXXOrN_17rustc_codegen_ssa6traits5write19WriteBackendMethods8optimize+0xe3)[0x7ac8c4e4aea3]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/librustc_driver-a30ca400d2857f33.so(+0x5044883)[0x7ac8c4e44883]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/librustc_driver-a30ca400d2857f33.so(+0x504445b)[0x7ac8c4e4445b]
/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/libstd-52417a9a08ba8fb9.so(rust_metadata_std_fba9fafec3bdacf8+0xc3e3b)[0x7ac8c63d8e3b]
/lib/x86_64-linux-gnu/libc.so.6(+0x9ca94)[0x7ac8bfa9ca94]
/lib/x86_64-linux-gnu/libc.so.6(+0x129c3c)[0x7ac8bfb29c3c]

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=67108864
error: could not compile `freenet` (bin "freenet")

Caused by:
  process didn't exit successfully: `/home/ian/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name freenet --edition=2021 crates/core/src/bin/freenet.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=191 --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="redb"' --cfg 'feature="trace"' --cfg 'feature="tracing-subscriber"' --cfg 'feature="websocket"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "local-mode", "network-mode", "opentelemetry-jaeger", "opentelemetry-otlp", "redb", "sqlite", "sqlx", "trace", "trace-ot", "tracing-opentelemetry", "tracing-subscriber", "websocket"))' -C metadata=90ab6f3b88109284 -C extra-filename=-90ab6f3b88109284 --out-dir /home/ian/code/freenet/freenet-core/main/target/release/deps -C strip=debuginfo -L dependency=/home/ian/code/freenet/freenet-core/main/target/release/deps --extern aes_gcm=/home/ian/code/freenet/freenet-core/main/target/release/deps/libaes_gcm-0c73ae81f5836ac2.rlib --extern anyhow=/home/ian/code/freenet/freenet-core/main/target/release/deps/libanyhow-5fdaed748052ed52.rlib --extern arc_swap=/home/ian/code/freenet/freenet-core/main/target/release/deps/libarc_swap-c89d1830ae521a09.rlib --extern asynchronous_codec=/home/ian/code/freenet/freenet-core/main/target/release/deps/libasynchronous_codec-2b6e756d1dffd07f.rlib --extern axum=/home/ian/code/freenet/freenet-core/main/target/release/deps/libaxum-2153f0c698300cdd.rlib --extern bincode=/home/ian/code/freenet/freenet-core/main/target/release/deps/libbincode-654a73c6179a9fcb.rlib --extern blake3=/home/ian/code/freenet/freenet-core/main/target/release/deps/libblake3-56d960f51f407fe8.rlib --extern bs58=/home/ian/code/freenet/freenet-core/main/target/release/deps/libbs58-3e0f80f411779695.rlib --extern byteorder=/home/ian/code/freenet/freenet-core/main/target/release/deps/libbyteorder-767d49a0ce1a1177.rlib --extern bytes=/home/ian/code/freenet/freenet-core/main/target/release/deps/libbytes-d8e2d30ba3ebdf48.rlib --extern cache_padded=/home/ian/code/freenet/freenet-core/main/target/release/deps/libcache_padded-6ecde52bcf8f7890.rlib --extern chacha20poly1305=/home/ian/code/freenet/freenet-core/main/target/release/deps/libchacha20poly1305-b3b6de26b0dafd90.rlib --extern chrono=/home/ian/code/freenet/freenet-core/main/target/release/deps/libchrono-7baa9dabbf77cf61.rlib --extern clap=/home/ian/code/freenet/freenet-core/main/target/release/deps/libclap-2c7b932e2f851577.rlib --extern cookie=/home/ian/code/freenet/freenet-core/main/target/release/deps/libcookie-84f6373f7f1942ce.rlib --extern crossbeam=/home/ian/code/freenet/freenet-core/main/target/release/deps/libcrossbeam-95b63cb4977eef07.rlib --extern ctrlc=/home/ian/code/freenet/freenet-core/main/target/release/deps/libctrlc-80c23459c75e7158.rlib --extern dashmap=/home/ian/code/freenet/freenet-core/main/target/release/deps/libdashmap-3ec45d68153bde9c.rlib --extern delegate=/home/ian/code/freenet/freenet-core/main/target/release/deps/libdelegate-01d3f0d859e01b33.so --extern directories=/home/ian/code/freenet/freenet-core/main/target/release/deps/libdirectories-4bb0219f3849c5c1.rlib --extern either=/home/ian/code/freenet/freenet-core/main/target/release/deps/libeither-52c6552b6f0c36b4.rlib --extern flatbuffers=/home/ian/code/freenet/freenet-core/main/target/release/deps/libflatbuffers-5df4b1f39bca6102.rlib --extern freenet=/home/ian/code/freenet/freenet-core/main/target/release/deps/libfreenet-2a936ed97f9eb828.rlib --extern freenet_stdlib=/home/ian/code/freenet/freenet-core/main/target/release/deps/libfreenet_stdlib-bc7b53bdfc15a78f.rlib --extern futures=/home/ian/code/freenet/freenet-core/main/target/release/deps/libfutures-2b928f25877ec311.rlib --extern headers=/home/ian/code/freenet/freenet-core/main/target/release/deps/libheaders-0dafe8ec6f0f5144.rlib --extern hickory_resolver=/home/ian/code/freenet/freenet-core/main/target/release/deps/libhickory_resolver-7bf5dde56166f89f.rlib --extern itertools=/home/ian/code/freenet/freenet-core/main/target/release/deps/libitertools-4813a5cf9a6a6751.rlib --extern notify=/home/ian/code/freenet/freenet-core/main/target/release/deps/libnotify-98c4a975232afa2a.rlib --extern once_cell=/home/ian/code/freenet/freenet-core/main/target/release/deps/libonce_cell-9e854eed23737148.rlib --extern opentelemetry=/home/ian/code/freenet/freenet-core/main/target/release/deps/libopentelemetry-c24f68340da07077.rlib --extern ordered_float=/home/ian/code/freenet/freenet-core/main/target/release/deps/libordered_float-1ab1ec03c4007538.rlib --extern parking_lot=/home/ian/code/freenet/freenet-core/main/target/release/deps/libparking_lot-f483f0b27b0e7ff0.rlib --extern pav_regression=/home/ian/code/freenet/freenet-core/main/target/release/deps/libpav_regression-92eb95513b9e153c.rlib --extern pkcs8=/home/ian/code/freenet/freenet-core/main/target/release/deps/libpkcs8-7cf7538c1e2dfb45.rlib --extern rand=/home/ian/code/freenet/freenet-core/main/target/release/deps/librand-0f169826b9ef6128.rlib --extern redb=/home/ian/code/freenet/freenet-core/main/target/release/deps/libredb-a27beefccd234bb4.rlib --extern reqwest=/home/ian/code/freenet/freenet-core/main/target/release/deps/libreqwest-3c3eaa10a186de05.rlib --extern rsa=/home/ian/code/freenet/freenet-core/main/target/release/deps/librsa-d96fdc140e003c41.rlib --extern semver=/home/ian/code/freenet/freenet-core/main/target/release/deps/libsemver-06eb974304fc3014.rlib --extern serde=/home/ian/code/freenet/freenet-core/main/target/release/deps/libserde-408702041b120b77.rlib --extern serde_json=/home/ian/code/freenet/freenet-core/main/target/release/deps/libserde_json-c2e73a81e5014fbe.rlib --extern serde_with=/home/ian/code/freenet/freenet-core/main/target/release/deps/libserde_with-3de1238b6e07645c.rlib --extern stretto=/home/ian/code/freenet/freenet-core/main/target/release/deps/libstretto-9816235d94332315.rlib --extern tar=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtar-04bd5aaa94670205.rlib --extern thiserror=/home/ian/code/freenet/freenet-core/main/target/release/deps/libthiserror-f117b21c5249ecb0.rlib --extern time=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtime-22d371bef05cceeb.rlib --extern tokio=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtokio-9ec39ed0a6a60555.rlib --extern tokio_tungstenite=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtokio_tungstenite-67f381fc7ca3419f.rlib --extern toml=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtoml-ed9143f4feda9540.rlib --extern tower_http=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtower_http-6387fc2a4334a4b5.rlib --extern tracing=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtracing-8485727859c8ead8.rlib --extern tracing_subscriber=/home/ian/code/freenet/freenet-core/main/target/release/deps/libtracing_subscriber-24eeeeb522006b33.rlib --extern ulid=/home/ian/code/freenet/freenet-core/main/target/release/deps/libulid-e20d21b04a9f8d2e.rlib --extern unsigned_varint=/home/ian/code/freenet/freenet-core/main/target/release/deps/libunsigned_varint-59b6be77a334e648.rlib --extern wasmer=/home/ian/code/freenet/freenet-core/main/target/release/deps/libwasmer-4fc31c41f121bae6.rlib --extern xz2=/home/ian/code/freenet/freenet-core/main/target/release/deps/libxz2-ae3462325e1af6ed.rlib -L native=/home/ian/code/freenet/freenet-core/main/target/release/build/blake3-19a679609521f4a3/out -L native=/home/ian/code/freenet/freenet-core/main/target/release/build/blake3-19a679609521f4a3/out -L native=/home/ian/code/freenet/freenet-core/main/target/release/build/ring-64535f8a1e0b16e0/out -L 'native=/home/linuxbrew/.linuxbrew/Cellar/openssl@3/3.3.0/lib' -L native=/home/linuxbrew/.linuxbrew/Cellar/xz/5.4.6/lib` (signal: 11, SIGSEGV: invalid memory reference)
error: failed to compile `freenet v0.0.7 (/home/ian/code/freenet/freenet-core/main/crates/core)`, intermediate artifacts can be found at `/home/ian/code/freenet/freenet-core/main/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
sanity commented 3 months ago

Just a note that it's possible this is caused by a problem with my SSD.

gogo2464 commented 3 months ago

I have two remarks:

iduartgomez commented 1 month ago

Seems like a local environment issue which is non-reproducible. Does this happen with the last rust version and clean cargo environment?