You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or if you're stuck on current NodeJS set environment variable export UV_USE_IO_URING=0 before running node processes.
Bug description
Note: Amazon Linux 2023 EC2 host running with its kernel. The node processes encounter the hang from within an AL23 docker container but containers use the host kernel. So users will see this bug within or outside of docker if the host is running AL23.
yarn install --immutable within Jenkins environments indefinitely hangs. node processes get stuck in process state Dl... which means according to man pages:
D uninterruptible sleep (usually IO)
l is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
I confirm that Amazon Linux 2023 source code does not have this patch.
# grep -F 'iopoll syncs against uring_lock, not completion_lock' linux-6.1.115/linux-6.1.115/io_uring/io_uring.c
/* iopoll syncs against uring_lock, not completion_lock *
Because the above line exists, the backport patch has not been applied.
Confirming Amazon Linux 2023 kernel has the bug
dnf install kernel-devel
dnf download --source kernel
mkdir extracted-kernel
cd extracted-kernel/
rpm2cpio ../kernel-6.1.115-126.197.amzn2023.src.rpm | cpio -idmv
mkdir linux-6.1.115
tar -xC linux-6.1.115 -f linux-6.1.115.tar
find linux-6.1.115 -type f -name 'io_uring.c'
grep -F 'For silly syzbot cases that deliberately overflow by huge' linux-6.1.115/linux-6.1.115/io_uring/io_uring.c
The text was updated successfully, but these errors were encountered:
sgleske-ias
changed the title
[Bug] - NodeJS npm, pnpm, and yarn install hang due to backported Kernel bug.
[Bug] - NodeJS npm, pnpm, and yarn install hang due to backported Kernel bug
Dec 3, 2024
Workarounds for developers
export UV_USE_IO_URING=0
before running node processes.Bug description
yarn install --immutable
within Jenkins environments indefinitely hangs.node
processes get stuck in process stateDl
... which means according to man pages:D uninterruptible sleep (usually IO)
l is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
Further debugging with:
returns logs like
And ps output shows multiple processes in this state:
To reproduce
Both
yarn install --immutable
andpnpm i --frozen-lockfile
replicate the same bug. The hanging started occurring roughly last week.Upstream bug report with known issue
This issue was reported to NodeJS and confirmed to be a Linux Kernel bug.
nodejs/node#55587 (comment)
Buggy patch: gregkh/linux@f4ce3b5
Upstream backport fix
Fix patch: gregkh/linux@8d09a88
I confirm that Amazon Linux 2023 source code does not have this patch.
Because the above line exists, the backport patch has not been applied.
Confirming Amazon Linux 2023 kernel has the bug
The text was updated successfully, but these errors were encountered: