You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I passed all testcases using cargo and cargo_asan, but cargo_tsan fails to compile.
It doesn't seem that the problem is in my code. How can I fix it?
Below is the log.
ubuntu@coral-sole-80:~/cs431/homework$ cargo_tsan test --test cache
Compiling core v0.0.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
Compiling rustc-std-workspace-core v1.99.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling compiler_builtins v0.1.108
Compiling libc v0.2.153
Compiling alloc v0.0.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
Compiling cfg-if v1.0.0
Compiling adler v1.0.2
Compiling memchr v2.5.0
Compiling rustc-demangle v0.1.23
Compiling unwind v0.0.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
Compiling rustc-std-workspace-alloc v1.99.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
Compiling panic_unwind v0.0.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
Compiling panic_abort v0.0.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
Compiling gimli v0.28.1
Compiling object v0.32.2
Compiling std_detect v0.1.5 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
Compiling hashbrown v0.14.3
Compiling miniz_oxide v0.7.2
Compiling addr2line v0.21.0
Compiling std v0.0.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
Compiling rustc-std-workspace-std v1.99.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-std)
Compiling proc_macro v0.0.0 (/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
Compiling unicode-width v0.1.11
Compiling getopts v0.2.21
ZExt only operates on integer
%13 = zext ptr %1 to i64, !dbg !7906
ZExt only operates on integer
%16 = zext ptr %1 to i64, !dbg !7907
ZExt only operates on integer
%19 = zext ptr %1 to i64, !dbg !7908
ZExt only operates on integer
%22 = zext ptr %1 to i64, !dbg !7909
ZExt only operates on integer
%25 = zext ptr %1 to i64, !dbg !7910
in function _ZN4core4sync6atomic11atomic_swap17hff650cc4f35425c8E
rustc-LLVM ERROR: Broken function found, compilation aborted!
error: could not compile `std` (lib)
warning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered:
I passed all testcases using
cargo
andcargo_asan
, butcargo_tsan
fails to compile.It doesn't seem that the problem is in my code. How can I fix it?
Below is the log.
The text was updated successfully, but these errors were encountered: