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

linux.sigcontext test fails when compiled for AVX due to VZEROUPPER #6953

Closed
derekbruening opened this issue Aug 29, 2024 · 0 comments · Fixed by #6954
Closed

linux.sigcontext test fails when compiled for AVX due to VZEROUPPER #6953

derekbruening opened this issue Aug 29, 2024 · 0 comments · Fixed by #6954

Comments

@derekbruening
Copy link
Contributor

When compiled for AVX, the linux.sigcontext test has a VZEROUPPER inserted after it fills all the YMM registers and just before its call to kill() to send the signal. The signal handler then sees all the zero YMMH values and fails the test.

@derekbruening derekbruening self-assigned this Aug 29, 2024
derekbruening added a commit that referenced this issue Aug 30, 2024
Replaces a kill() with an inlined system call in the linux.sigcontext
test to avoid failure when compiled for AVX only, as the compiler
inserts VZEROUPPER there.

Tested on a toolchain targeting AVX.

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

Successfully merging a pull request may close this issue.

1 participant