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

ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22) #55785

Open
ISSOtm opened this issue May 30, 2022 · 3 comments
Labels
compiler-rt:asan Address sanitizer

Comments

@ISSOtm
Copy link

ISSOtm commented May 30, 2022

This is from https://github.com/ISSOtm/rgbds/runs/6661658664?check_suite_focus=true#step:8:49. I lack the means to test this at this time.

This seems to simply happen by building RGBDS with clang and -fsanitize=address, and running the resulting program. (The equivalent GCC build does not have this issue, somehow.) What looks weird is the "0 bytes" attempting to be allocated, for which I have no explanation.

ASAN_OPTIONS=use_sigaltstack=false works around the issue, at least: https://github.com/ISSOtm/rgbds/runs/6661760050?check_suite_focus=true#step:8:14

@EugeneZelenko EugeneZelenko added compiler-rt:asan Address sanitizer and removed new issue labels May 30, 2022
@smeenai
Copy link
Collaborator

smeenai commented Jun 2, 2022

Looks related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114, which mentions 8215060 and b93629d as fixes.

@ISSOtm
Copy link
Author

ISSOtm commented Jun 2, 2022

The bug does seem to be the same; I am (likely?) not able to link against a different ASan on that arch, so would there be other workarounds?

@smeenai
Copy link
Collaborator

smeenai commented Jun 2, 2022

I'm not aware of anything besides the ASAN_OPTIONS=use_sigaltstack=false you mentioned already, unfortunately.

nschimme added a commit to nschimme/MMapper that referenced this issue Nov 23, 2022
nmoinvaz added a commit to nmoinvaz/zlib-ng that referenced this issue Dec 27, 2022
Dead2 pushed a commit to zlib-ng/zlib-ng that referenced this issue Dec 29, 2022
nilsvu added a commit to nilsvu/spectre that referenced this issue Sep 13, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
nilsvu added a commit to nilsvu/spectre that referenced this issue Sep 13, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
nilsvu added a commit to nilsvu/spectre that referenced this issue Sep 13, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
nilsvu added a commit to nilsvu/spectre that referenced this issue Sep 13, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
nilsvu added a commit to nilsvu/spectre that referenced this issue Sep 14, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
nilsvu added a commit to nilsvu/spectre that referenced this issue Sep 14, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
nilsvu added a commit to nilsvu/spectre that referenced this issue Sep 14, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
yoonso0-0 pushed a commit to yoonso0-0/spectre that referenced this issue Sep 15, 2023
clang-11 has an issue with ASAN and latest glibc:
llvm/llvm-project#55785
So just use clang-14 for the ASAN build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-rt:asan Address sanitizer
Projects
None yet
Development

No branches or pull requests

3 participants