Repository navigation
Intermittent hangs with 10.16.1 #28932
Description
Activity
- addedopensslIssues and PRs related to the OpenSSL dependency.Issues and PRs related to the OpenSSL dependency.
on Aug 2, 2019 Here's my experiment on some GCE virtual machines:
for i in $(seq 1 50) ; do echo run $i; cat /proc/sys/kernel/random/entropy_avail ; time npm >/dev/null; sleep 1; done ... 172 real 0m0.257s user 0m0.222s sys 0m0.032s run 6 173 real 0m0.264s user 0m0.216s sys 0m0.044s run 7 5 ^C real 33m50.490s ...Note the entropy value of 5 at the time of the hang.
I think this is openssl/openssl#9078 / openssl/openssl#9084, and cherry-picking the latter would resolve this?
I believe so. I will try this out in the failing environment tomorrow.
I'm pretty sure I already saw an issue here about this a few days ago.
Edit: forget it, it was before 10.16.1
Should we escalate a 10.16.2 to fix this? @ofrobots is there an easy way to test if I can get an rc together?
/cc @nodejs/lts
- added a commit that references this issue
on Aug 5, 2019 This should be fixed with the v10.16.2 release, please reopen if not.
@ofrobots I am curious which linux version did you use where the available entropy
dropped to zero again?This was a Ubuntu instance IIRC.
I ask because the code with the code with the select should not be executed unless the
linux kernel is older than v3.17, that is rather old, ubuntu 14.04 uses linux v3.13 for instance,
but that is rather old, could you log in and try cat /proc/version, what does that look like?The other way round I observed a similar behaviour that you described, when
linux v4.8 or newer is used in an arm machine, and every 3-5 minutes when
the CRNG gets reseeded it pulls all entroy from the input pool.
Over at Google Cloud we are noticing intermittent hangs on some virtual machines with the latest 10.16.1. This is likely due to the OpenSSL upgrade due to 1.1.1c (see openssl/openssl#9078).
Hangs seem to coincide with when the system has low-entropy and has the following stack: