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
The issue seems to be quite rare, but when it happens it is reproducible - it is related to an interaction between a particular version of the g++ runtime - (g++-9) and V8 that is not well understood. Node.js is not affected starting from version 20. The failure happens because one of the hashtables of the GC grows the number of its buckets beyond the limit. A std::unordered_map will never release buckets even when calling std::unordered_map::clear. The failure is not related to the allocation of the ArrayBuffer itself at all - it is a failure when allocating handles in the GC.
The text was updated successfully, but these errors were encountered:
(alas, since I am still blocked from posting in Node.js because of the ongoing criminal affair, this message won't reach many of the people who reported this problem)
With certain allocation patterns, when requesting very large numbers of
Buffer
s, Node.js can crash withThe problem has been known for a while:
nodejs/node#27715
nodejs/help#2414
nodejs/help#4156
nodejs/help#1544
It is caused by V8:
https://bugs.chromium.org/p/v8/issues/detail?id=9259
The issue seems to be quite rare, but when it happens it is reproducible - it is related to an interaction between a particular version of the
g++
runtime - (g++-9
) and V8 that is not well understood. Node.js is not affected starting from version 20. The failure happens because one of the hashtables of the GC grows the number of its buckets beyond the limit. Astd::unordered_map
will never release buckets even when callingstd::unordered_map::clear
. The failure is not related to the allocation of theArrayBuffer
itself at all - it is a failure when allocating handles in the GC.The text was updated successfully, but these errors were encountered: