-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 use node on Raspberry Pi Ubuntu #33244
Comments
Seems to be related to some other issue in aarch64 kernel: |
I guess if it’s a setrlimit thing then that makes sense since node does that pretty early. Not sure if this is something we can deal with here unless something specific to our code or build process can be shown. Likely to be something that intersects with @bnoordhuis’ interests and expertise though if he’s intrigued. |
Node.js uses getrlimit/setrlimit to get/set the open file descriptor limit but it's non-fatal if those system calls don't work. @donfrigo Can you check with gdb where |
@bnoordhuis
|
It was reported that `getrlimit(RLIMIT_STACK)` fails on some aarch64 systems due to a glibc bug, where the getrlimit() system call wrapper invokes the wrong system call. Libuv could work around that by issuing a `prlimit(2)` system call instead but since it can't assume that said system call is available (it was added in Linux 2.6.36, libuv's baseline is 2.6.32) it seems easier to just use the default 2M stack size when the call fails. Fixes: nodejs/node#33244 Refs: https://bugzilla.redhat.com/show_bug.cgi?id=1813089
Thanks, that's really helpful! That's libuv trying to look up the stack size through |
It was reported that `getrlimit(RLIMIT_STACK)` fails on some aarch64 systems due to a glibc bug, where the getrlimit() system call wrapper invokes the wrong system call. Libuv could work around that by issuing a `prlimit(2)` system call instead but since it can't assume that said system call is available (it was added in Linux 2.6.36, libuv's baseline is 2.6.32) it seems easier to just use the default 2M stack size when the call fails. Fixes: nodejs/node#33244 Refs: https://bugzilla.redhat.com/show_bug.cgi?id=1813089 PR-URL: libuv#2848 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
What steps will reproduce the bug?
I am trying to build a dockerfile on my Raspberry Pi 4, running arm64 Ubuntu. The same dockerfile runs fine on my main computer. The dockerfile is as follows:
Upon building this file I get the following error:
The error code of 134 refers to running out of memory on the host, but I have checked both memory and storage and there seems to be plenty of space left. What could be the issue? Thank you!
Additional information
If I run the base image manually and open a terminal, I get the following:
The text was updated successfully, but these errors were encountered: