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
{{ message }}
Repository navigation
test-buffer-failed-alloc-typed-arrays test failures #53085
> /usr/bin/time ./node22 test/parallel/test-buffer-failed-alloc-typed-arrays.js
(node:20905) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node22 --trace-deprecation ...` to show where the warning was created)
3.30user 9.69system 0:12.93elapsed 100%CPU (0avgtext+0avgdata 19586856maxresident)k
0inputs+0outputs (0major+6511685minor)pagefaults 0swaps
With nodejs 21.7.2, the test uses only normally expected amount of memory,
/usr/bin/time ./node21 test/parallel/test-buffer-failed-alloc-typed-arrays.js
(node:15146) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use node21 --trace-deprecation ... to show where the warning was created)
0.05user 0.01system 0:00.07elapsed 100%CPU (0avgtext+0avgdata 53176maxresident)k
0inputs+0outputs (0major+3173minor)pagefaults 0swaps
Activity
AdamMajer commentedon May 21, 2024
It seems to be running out of memory ...
AdamMajer commentedon May 22, 2024
This is a regression.
With nodejs 21.7.2, the test uses only normally expected amount of memory,
basically, 20G vs. 50M
targos commentedon May 22, 2024
node/test/parallel/test-buffer-failed-alloc-typed-arrays.js
Line 15 in 4a54a80
The test tries to allocate a buffer of size
1e10. This used to fail but is now possible after a V8 update.AdamMajer commentedon May 22, 2024
Looks like changing this to 1e20 will fix this issue and keep the test around.
test: increase allocation so it fails for the test
test: increase allocation so it fails for the test
test: increase allocation so it fails for the test
test: increase allocation so it fails for the test