Skip to content
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

[v20.x] parallel/test-buffer-tostring-range fails on SmartOS #56726

Open
marco-ippolito opened this issue Jan 23, 2025 · 7 comments
Open

[v20.x] parallel/test-buffer-tostring-range fails on SmartOS #56726

marco-ippolito opened this issue Jan 23, 2025 · 7 comments
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. smartos Issues and PRs related to the SmartOS platform. v20.x v20.x Issues that can be reproduced on v20.x or PRs targeting the v20.x-staging branch.

Comments

@marco-ippolito
Copy link
Member

marco-ippolito commented Jan 23, 2025

Test

parallel/test-buffer-tostring-range

Platform

SmartOS

Console output

03:13:42 not ok 177 parallel/test-buffer-tostring-range
03:13:42   ---
03:13:43   duration_ms: 5550.52900
03:13:43   severity: fail
03:13:43   exitcode: 1
03:13:43   stack: |-
03:13:43     node:internal/buffer:961
03:13:43         super(bufferOrLength, byteOffset, length);
03:13:43         ^
03:13:43     
03:13:43     RangeError: Array buffer allocation failed
03:13:43         at new ArrayBuffer (<anonymous>)
03:13:43         at new Uint8Array (<anonymous>)
03:13:43         at new FastBuffer (node:internal/buffer:961:5)
03:13:43         at Function.alloc (node:buffer:395:10)
03:13:43         at Object.<anonymous> (/home/iojs/build/workspace/node-test-commit-smartos/nodes/smartos23-x64/test/parallel/test-buffer-tostring-range.js:107:28)
03:13:43         at Module._compile (node:internal/modules/cjs/loader:1468:14)
03:13:43         at Module._extensions..js (node:internal/modules/cjs/loader:1547:10)
03:13:43         at Module.load (node:internal/modules/cjs/loader:1287:32)
03:13:43         at Module._load (node:internal/modules/cjs/loader:1103:12)
03:13:43         at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:180:12)
03:13:43     
03:13:43     Node.js v20.18.3
03:13:43   ...

Build links

Additional information

It's blocking v20 release #56699

@nodejs/platform-smartos

@marco-ippolito marco-ippolito added the flaky-test Issues and PRs related to the tests with unstable failures on the CI. label Jan 23, 2025
@github-actions github-actions bot added the smartos Issues and PRs related to the SmartOS platform. label Jan 23, 2025
@joyeecheung
Copy link
Member

joyeecheung commented Jan 23, 2025

This is v20.x only, it seems https://github.com/nodejs/reliability/blob/main/reports/2025-01-23.md (both PRs referenced are targetting v20.x)

@joyeecheung joyeecheung added the v20.x v20.x Issues that can be reproduced on v20.x or PRs targeting the v20.x-staging branch. label Jan 23, 2025
@marco-ippolito marco-ippolito changed the title parallel/test-buffer-tostring-range fails on SmartOS [v20.x] parallel/test-buffer-tostring-range fails on SmartOS Jan 23, 2025
marco-ippolito added a commit that referenced this issue Jan 31, 2025
PR-URL: #56727
Refs: #56726
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
@anonrig
Copy link
Member

anonrig commented Feb 3, 2025

Cc @nodejs/platform-smartos

@mcollina
Copy link
Member

mcollina commented Feb 3, 2025

@jclulow can you take a look?

@jclulow
Copy link

jclulow commented Feb 3, 2025

This is one of the ones I'm trying to reproduce, but I thought we already added it to the skip list to get past this? I'm sure I saw a change that did that go past

@marco-ippolito
Copy link
Member Author

This is one of the ones I'm trying to reproduce, but I thought we already added it to the skip list to get past this? I'm sure I saw a change that did that go past

Yes we skipped the failing test from v20.x

@anonrig
Copy link
Member

anonrig commented Feb 11, 2025

This is one of the ones I'm trying to reproduce, but I thought we already added it to the skip list to get past this? I'm sure I saw a change that did that go past

Please correct me if I'm wrong, but skipping a flaky test is not the ideal scenario here. Ideally smartOS node.js team should fix the flakiness and open a PR to node.js to make the tests more stable.

@jclulow
Copy link

jclulow commented Feb 11, 2025

This is one of the ones I'm trying to reproduce, but I thought we already added it to the skip list to get past this? I'm sure I saw a change that did that go past

Please correct me if I'm wrong, but skipping a flaky test is not the ideal scenario here. Ideally smartOS node.js team should fix the flakiness and open a PR to node.js to make the tests more stable.

I've been reproducing it, actually! It's actually not flaky, but also probably not a bug in Node per se. I believe the issue is in V8. I'm trying to isolate it, and then I'll need to go through the dubious CLA-signing hoops before I'm allowed to contribute a fix there.

I haven't finished writing up the details, but the short story is that V8 appears to be choosing addresses for mapped memory that collide with the sbrk heap occasionally. It happens maybe once in 50 or 100 runs on my test machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Issues and PRs related to the tests with unstable failures on the CI. smartos Issues and PRs related to the SmartOS platform. v20.x v20.x Issues that can be reproduced on v20.x or PRs targeting the v20.x-staging branch.
Projects
None yet
Development

No branches or pull requests

5 participants