Skip to content

SIGILL when running the tests with a std built in debug mode #1336

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

Closed
antoyo opened this issue Sep 14, 2022 · 0 comments · Fixed by #1341
Closed

SIGILL when running the tests with a std built in debug mode #1336

antoyo opened this issue Sep 14, 2022 · 0 comments · Fixed by #1341

Comments

@antoyo
Copy link

antoyo commented Sep 14, 2022

Hi.
It seems some issues are happening when running the tests with a std built in debug mode.
Run this command to reproduce the issue:

TARGET=x86_64-unknown-linux-gnu cargo test --target x86_64-unknown-linux-gnu -Zbuild-std

In my case, it ends with:

test core_arch::x86::sse41::tests::test_mm_testz_si128 ... error: test failed, to rerun pass `-p core_arch --lib`

Caused by:
  process didn't exit successfully: `stdarch/target/x86_64-unknown-linux-gnu/debug/deps/core_arch-0c16e18ffd10ec9f` (signal: 4, SIGILL: illegal instruction)

I believe other tests ought to fail. For instance, here, we create an empty slice and we get the address of the first element here and there's an assert in debug mode to forbid this.

Amanieu added a commit to Amanieu/stdarch that referenced this issue Oct 13, 2022
This was causing aborts with debug builds of the standard library.

Fixes rust-lang#1336
Amanieu added a commit to Amanieu/stdarch that referenced this issue Oct 13, 2022
This was causing aborts with debug builds of the standard library.

Fixes rust-lang#1336
Amanieu added a commit to Amanieu/stdarch that referenced this issue Oct 25, 2022
This was causing aborts with debug builds of the standard library.

Fixes rust-lang#1336
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant