-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22) #2236
Comments
I have same problem in several Linux distro . |
By the way, MX LInux and Linux Lite are working by using llvm@14 . |
I've been trying to rewrite the install instructions to use However, if you want to try the in-review instructions, look at #2203, specifically here. Note you can uninstall brew, I'm trying to avoid advising it on Linux now. Another option is to use Docker and VS Code, we have a config for devcontainer. (the same DockerFile should also be usable without VS Code, and I'll probably look into something more vanilla docker based on #1618 if that PR has fallen off the contributor's radar, but VS Code has some extension support for the existing setup)
Sorry, I don't know how to install zlib on those distributions. I've mostly been looking at Debian and Ubunutu. |
Thanks for the reply jonmeow ,
|
To be clear, zlib is required. There are instructions to install through apt: |
https://tracker.debian.org/pkg/zlib does show a zlib1g-dev for me |
Thanks for the links |
well Carbon Language in Aubuntu Budgie is working fine , |
Hi there, |
Which error? |
When I'm trying to run explorer. ==6723==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22) |
What version of clang are you using and how did you install it? As I noted above, linux brew clang 15 doesn't work with AddressSanitizer (I don't know why, probably won't investigate because we can advise apt). Assuming you used homebrew:
|
As a note. Initially I was using 15 so I tried with llvm@14 and it didn't work either
I will look for other contribution tools. I will let you know. |
I had the same issue and just wish to share my solution it might be of use to someone. I tried installing Clang 14 using the I do apologize if my methods or documentation of my steps is missing something I did a lot of things before it started working and I do not know which of them might have made little differences. The steps I mentioned are the ones which made noticeable difference in my compile errors. uname -r clang -v
|
hi, brew remove llvm
sudo dnf install llvm
bazel clean
bazel run _ The above worked for me. If that does not work then try: bazel clean --expunge if that doesn't work, then i'm sorry i got nothin. |
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please comment or remove the |
I would suspect that #2236 (comment) is probably right for this particular issue, that a |
Description of the bug:
after building explorer, run bazel-bin/explorer/explorer and get error msg “AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)”
What did you do, or what's a simple way to reproduce the bug?
i just simpely follow the instruction frome github page
uname -r
5.10.16.3-microsoft-standard-WSL2
clang -v
Homebrew clang version 15.0.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/linuxbrew/.linuxbrew/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/10
Candidate multilib: .;@m64
Selected multilib: .;@m64
brew -v
Homebrew 3.6.3
Homebrew/homebrew-core (git revision 25274dd8e6d; last commit 2022-09-30)
What did you expect to happen?
suss compile the carbon hello world source code
What actually happened?
program panic
Any other information, logs, or outputs that you want to share?
==5493==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)
==5493==Process memory map follows:
0x00007fff7000-0x00008fff7000
0x00008fff7000-0x02008fff7000
0x02008fff7000-0x10007fff8000
0x55b223411000-0x55b2238d9000 /home/bmixo/.cache/bazel/_bazel_bmixo/4f2f3538354d35907e0f64ec2ae4d76a/execroot/carbon/bazel-out/k8-fastbuild/bin/explorer/explorer
0x55b2238d9000-0x55b223e80000 /home/bmixo/.cache/bazel/_bazel_bmixo/4f2f3538354d35907e0f64ec2ae4d76a/execroot/carbon/bazel-out/k8-fastbuild/bin/explorer/explorer
0x55b223e80000-0x55b223ec8000 /home/bmixo/.cache/bazel/_bazel_bmixo/4f2f3538354d35907e0f64ec2ae4d76a/execroot/carbon/bazel-out/k8-fastbuild/bin/explorer/explorer
0x55b223ec8000-0x55b223fd9000 /home/bmixo/.cache/bazel/_bazel_bmixo/4f2f3538354d35907e0f64ec2ae4d76a/execroot/carbon/bazel-out/k8-fastbuild/bin/explorer/explorer
0x55b223fd9000-0x55b2249b5000
0x7fa4d3c00000-0x7fa4d3d00000
0x7fa4d3e00000-0x7fa4d3f00000
0x7fa4d4000000-0x7fa4d4100000
0x7fa4d4200000-0x7fa4d4300000
0x7fa4d4355000-0x7fa4d46f8000
0x7fa4d46f8000-0x7fa4d471a000 /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x7fa4d471a000-0x7fa4d4892000 /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x7fa4d4892000-0x7fa4d48e0000 /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x7fa4d48e0000-0x7fa4d48e4000 /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x7fa4d48e4000-0x7fa4d48e6000 /usr/lib/x86_64-linux-gnu/libc-2.31.so
0x7fa4d48e6000-0x7fa4d48ea000
0x7fa4d48ea000-0x7fa4d48ee000 /usr/lib/x86_64-linux-gnu/libresolv-2.31.so
0x7fa4d48ee000-0x7fa4d48fe000 /usr/lib/x86_64-linux-gnu/libresolv-2.31.so
0x7fa4d48fe000-0x7fa4d4902000 /usr/lib/x86_64-linux-gnu/libresolv-2.31.so
0x7fa4d4902000-0x7fa4d4903000 /usr/lib/x86_64-linux-gnu/libresolv-2.31.so
0x7fa4d4903000-0x7fa4d4904000 /usr/lib/x86_64-linux-gnu/libresolv-2.31.so
0x7fa4d4904000-0x7fa4d4908000
0x7fa4d4908000-0x7fa4d490a000 /usr/lib/x86_64-linux-gnu/librt-2.31.so
0x7fa4d490a000-0x7fa4d490e000 /usr/lib/x86_64-linux-gnu/librt-2.31.so
0x7fa4d490e000-0x7fa4d4910000 /usr/lib/x86_64-linux-gnu/librt-2.31.so
0x7fa4d4910000-0x7fa4d4911000 /usr/lib/x86_64-linux-gnu/librt-2.31.so
0x7fa4d4911000-0x7fa4d4912000 /usr/lib/x86_64-linux-gnu/librt-2.31.so
0x7fa4d4912000-0x7fa4d4914000 /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
0x7fa4d4914000-0x7fa4d4925000 /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
0x7fa4d4925000-0x7fa4d492b000 /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
0x7fa4d492b000-0x7fa4d492c000 /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
0x7fa4d492c000-0x7fa4d492d000 /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
0x7fa4d492d000-0x7fa4d492e000 /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
0x7fa4d492e000-0x7fa4d493c000 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
0x7fa4d493c000-0x7fa4d494b000 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
0x7fa4d494b000-0x7fa4d4959000 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
0x7fa4d4959000-0x7fa4d495d000 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
0x7fa4d495d000-0x7fa4d495e000 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
0x7fa4d495e000-0x7fa4d496b000 /usr/lib/x86_64-linux-gnu/libm-2.31.so
0x7fa4d496b000-0x7fa4d4a12000 /usr/lib/x86_64-linux-gnu/libm-2.31.so
0x7fa4d4a12000-0x7fa4d4aab000 /usr/lib/x86_64-linux-gnu/libm-2.31.so
0x7fa4d4aab000-0x7fa4d4aac000 /usr/lib/x86_64-linux-gnu/libm-2.31.so
0x7fa4d4aac000-0x7fa4d4aad000 /usr/lib/x86_64-linux-gnu/libm-2.31.so
0x7fa4d4aad000-0x7fa4d4aae000 /usr/lib/x86_64-linux-gnu/libdl-2.31.so
0x7fa4d4aae000-0x7fa4d4ab0000 /usr/lib/x86_64-linux-gnu/libdl-2.31.so
0x7fa4d4ab0000-0x7fa4d4ab1000 /usr/lib/x86_64-linux-gnu/libdl-2.31.so
0x7fa4d4ab1000-0x7fa4d4ab2000 /usr/lib/x86_64-linux-gnu/libdl-2.31.so
0x7fa4d4ab2000-0x7fa4d4ab3000 /usr/lib/x86_64-linux-gnu/libdl-2.31.so
0x7fa4d4ab3000-0x7fa4d4ab9000 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
0x7fa4d4ab9000-0x7fa4d4aca000 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
0x7fa4d4aca000-0x7fa4d4ad0000 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
0x7fa4d4ad0000-0x7fa4d4ad1000 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
0x7fa4d4ad1000-0x7fa4d4ad2000 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
0x7fa4d4ad2000-0x7fa4d4ad9000
0x7fa4d4ad9000-0x7fa4d4ae2000
0x7fa4d4ae2000-0x7fa4d4ae3000 /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x7fa4d4ae3000-0x7fa4d4b06000 /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x7fa4d4b06000-0x7fa4d4b0e000 /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x7fa4d4b0e000-0x7fa4d4b0f000
0x7fa4d4b0f000-0x7fa4d4b10000 /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x7fa4d4b10000-0x7fa4d4b11000 /usr/lib/x86_64-linux-gnu/ld-2.31.so
0x7fa4d4b11000-0x7fa4d4b12000
0x7fff90aa4000-0x7fff90ac5000 [stack]
0x7fff90b36000-0x7fff90b3a000 [vvar]
0x7fff90b3a000-0x7fff90b3b000 [vdso]
==5493==End of process memory map.
AddressSanitizer: CHECK failed: sanitizer_common.cpp:61 "((0 && "unable to mmap")) != (0)" (0x0, 0x0) (tid=5493)
The text was updated successfully, but these errors were encountered: