-
-
Notifications
You must be signed in to change notification settings - Fork 79
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 be killed after running for a while on Linux 6.1.113 or 6.6.57 #120
Comments
I have already investigated that. The answer is that it is probably not the problem of Node. I tried the same arRPC from exactly the same rev of nixpkgs on different Linux kernel version (so exactly the same Node and the same arRPC), and the result is different. |
I think it's just because NixOS is the only popular distro with which you can end up with a very new patch version of an old kernel. Other distros either tend to use the newest kernel/LTS kernel or tend to use an old kernel version. This is why I wanted to see whether I can reproduce this bug on Gentoo: I can control the kernel version on Gentoo. However, Gentoo is a painful distro to set up, and I have never touched Gentoo before, and I don't have enough time recently for that. If you know a better distro that I can use to test this bug, please suggest. Edit: I found out that Arch's |
Not reproduced on Arch Linux VM with Linux 6.6.58. |
this made my computer reload every 15 or so minutes
it was repeating this every few minutes untill it reaches the point where the kernel decides to force reboot if i read the journals correctly |
OK, I think this is not a bug of arRPC. My |
Reproducing example: import { readdir, readFile } from "fs/promises";
let i = 0;
setInterval(async () => {
console.log(i++);
(await readdir("/proc")).forEach(pid => +pid > 0 && readFile(`/proc/${pid}/cmdline`, "utf8"));
}, 5000); Not a bug of arRPC. Closing. |
I tried Linux kernel 6.1.113, 6.1.112, 6.6.56, 6.6.57 on NixOS 24.05 with arRPC 3.5.0 and Node.js 20.17 (actually the bug also exists on arRPC 3.4.0 and Node.js 20.15; it may be present in other versions as well).
I found that in Linux 6.1.113 or 6.6.57, after running arRPC for a while (usually more than 10 minutes; longer time has higher probability of triggering the bug), it cannot be killed, even with
kill -9
. This causes the computer to be stuck at shutting down, which is pretty bad. This bug is not present in Linux 6.1.112 or 6.6.56.It is hard to tweak the kernel version on distros other than NixOS, so I didn't try on other distros. Maybe I can try on Gentoo, though I have never used Gentoo.
I guess this may be a kernel bug or a Node.js bug, but I haven't met with other new bugs with other applications after upgrading the kernel.
The text was updated successfully, but these errors were encountered: