-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Cannot allocate memory in static TLS block #27
Comments
What's your host machine architecture? #4 only happens when the host triple is the same as the target triple. And have you tried |
The host where I'm running the Docker container is I had to switch to the nightly channel to get the specified glibc-version to be picked up by zig, as mentioned in #4, and that worked fine until I got the I'm doing I only get the error when I specify the glibc version.
|
It would be helpful if you can create a minimal reproducer, thanks! |
I've now shared a stripped down project with you in https://github.com/mbergkvist/allocate-memory-in-static-tls-block. |
Thanks for the swift help. Much appreciated. |
I've verified that release 0.8.3 also fixed the problem we had in our project. |
Hi! Thanks for a great project, it has helped us a lot when building and deploying to AWS Lambda.
I get a similar error as discussed in #4,
target/release/deps/libthiserror_impl-c21f6147db4ecc92.so: cannot allocate memory in static TLS block
when I'm building with
cargo +nightly zigbuild -p lambda --release --target aarch64-unknown-linux-gnu.2.26
in a Docker container from
Building without explicit glibc-version works fine, both on nightly and stable channel.
I'm not sure what the culprit is. Moving the failing code to another package does not reproduce the error, so I guess it's not the code per se. Any ideas what's the cause? Searching the internet indicates it's related to jemalloc?
I'll see if I can recreate the error with some sample code.
The text was updated successfully, but these errors were encountered: