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

[Question] cargo_tsan test fails to compile #889

Closed
ICubE- opened this issue Mar 14, 2024 · 5 comments
Closed

[Question] cargo_tsan test fails to compile #889

ICubE- opened this issue Mar 14, 2024 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@ICubE-
Copy link

ICubE- commented Mar 14, 2024

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...
@ICubE- ICubE- added the question Further information is requested label Mar 14, 2024
@Lee-Janggun
Copy link
Member

Are you running this on the provided server?

@Lee-Janggun
Copy link
Member

Lee-Janggun commented Mar 14, 2024

Oh... this is a Rust problem... I'll make a hotfix asap.

@Lee-Janggun
Copy link
Member

5ef3525 should fix it. Can you try it again?

@ICubE-
Copy link
Author

ICubE- commented Mar 14, 2024

Now it runs well! Thank you!

@ICubE- ICubE- closed this as completed Mar 14, 2024
@Lee-Janggun
Copy link
Member

c.f llvm/llvm-project#85226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants