Skip to content

Conversation

@kxxt
Copy link
Contributor

@kxxt kxxt commented Dec 5, 2025

Backport two V8 commits to fix a crash found while building Adguard Home using webpack riscv-forks/electron#9.

This is only needed for v24.x.

The PR for the main branch(#58746) has missed its opportunity because now v8 version on v25.x and main already contains these fixes.

Close #60895

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/security-wg
  • @nodejs/v8-update

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch. v8 engine Issues and PRs related to the V8 dependency. labels Dec 5, 2025
@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 5, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 5, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@kxxt
Copy link
Contributor Author

kxxt commented Dec 6, 2025

node-test-commit-aix failure seems unrelated.
node-test-commit-arm failure is caused by transit network error.

Probably we should retry the CI.

@nodejs-github-bot
Copy link
Collaborator

@kxxt
Copy link
Contributor Author

kxxt commented Dec 6, 2025

Unfortunately, the aix CI failed again.

@nodejs-github-bot
Copy link
Collaborator

@kxxt
Copy link
Contributor Author

kxxt commented Dec 6, 2025

Could we skip or fix those flaky tests for aix CI instead of infinitely retrying it?
For reference, the set of tests that are flaky appears to be

addons.stringbytes-external-exceed-max.test-stringbytes-external-at-max
addons.stringbytes-external-exceed-max.test-stringbytes-external-exceed-max
addons.stringbytes-external-exceed-max.test-stringbytes-external-exceed-max-by-1-ascii
addons.stringbytes-external-exceed-max.test-stringbytes-external-exceed-max-by-1-base64
addons.stringbytes-external-exceed-max.test-stringbytes-external-exceed-max-by-1-binary 
addons.stringbytes-external-exceed-max.test-stringbytes-external-exceed-max-by-1-utf8

(Collected from a few recent failed runs)

@kxxt kxxt force-pushed the v24-bind-to-riscv branch from 60c872c to 98cbf7d Compare December 6, 2025 14:13
@kxxt
Copy link
Contributor Author

kxxt commented Dec 6, 2025

Rebased to fix conflict in v8_embedder_string

algitbot pushed a commit to alpinelinux/aports that referenced this pull request Dec 7, 2025
Temporarily disable on riscv64 due to build error with nodejs 24.x.

```
$ react-scripts build
(node:54006) [DEP0176] DeprecationWarning: fs.F_OK is deprecated, use fs.constants.F_OK instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Creating an optimized production build...

[...]

 Fatal error in , line 0
 Check failed: (trampoline_pos - fixup_pos) <= kMaxBranchOffset.

FailureMessage Object: 0x3f8fbf5168
----- Native stack trace -----

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
>>> ERROR: alloy: build failed
```

See also:

nodejs/node#60895
nodejs/node#60962
algitbot pushed a commit to alpinelinux/aports that referenced this pull request Dec 7, 2025
Temporarily disable on riscv64 due to build error with nodejs 24.x.

```
$ react-scripts build
(node:6884) [DEP0176] DeprecationWarning: fs.F_OK is deprecated, use fs.constants.F_OK instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Creating an optimized production build...

[...]

 Fatal error in , line 0
 Check failed: (trampoline_pos - fixup_pos) <= kMaxBranchOffset.

FailureMessage Object: 0x3f91ffb168
----- Native stack trace -----

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
>>> ERROR: alloy: build failed
```

See also:

nodejs/node#60895
nodejs/node#60962
@sxa
Copy link
Member

sxa commented Dec 8, 2025

Issue for the AIX failures. I think it's fair to assume these are not related to this PR specifically (and the fix to mark it flaky should be in v24.x-staging now).

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@sxa sxa added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 8, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 8, 2025
@github-actions github-actions bot added the request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. label Dec 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Failed to start CI
   ⚠  Commits were pushed since the last approving review:
   ⚠  - deps: V8: backport bbaae8e36164
   ⚠  - deps: V8: cherry-pick 394a8053b59e
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/20029272474

@kxxt
Copy link
Contributor Author

kxxt commented Dec 8, 2025

It appears that we got another merge conflict. Let me rebase it.

luyahan and others added 2 commits December 8, 2025 21:15
Original commit message:

    Reland "[riscv] Fix Check failed in bind_to"

    This is a reland of commit fdb5de2c741658e94944f2ec1218530e98601c23

    Original change's description:
    > [riscv] Fix Check failed in bind_to
    >
    > The trampoline should be emitted before the constant pool.
    >
    > Bug: 420232092
    >
    > Change-Id: I3a909b122607e37aca9d8765f28810ec74d5dc0b
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6578135
    > Auto-Submit: Yahan Lu (LuYahan) <[email protected]>
    > Reviewed-by: Ji Qiu <[email protected]>
    > Commit-Queue: Ji Qiu <[email protected]>
    > Cr-Commit-Position: refs/heads/main@{#100480}

    Bug: 420232092
    Change-Id: I1fac1ed8c349383ef4510abea338b3d695ed57ab
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6595668
    Commit-Queue: Ji Qiu <[email protected]>
    Reviewed-by: Ji Qiu <[email protected]>
    Cr-Commit-Position: refs/heads/main@{#100745}

Refs: v8/v8@bbaae8e
Co-authored-by: kxxt <[email protected]>
Original commit message:

    [riscv] Check trampoline before Constant pool in Release mode

    Change-Id: I9645cded9328dabb2c11c7859b998c838b95f97b
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6653368
    Commit-Queue: Ji Qiu <[email protected]>
    Reviewed-by: Ji Qiu <[email protected]>
    Cr-Commit-Position: refs/heads/main@{#100935}

Refs: v8/v8@394a805
@kxxt kxxt force-pushed the v24-bind-to-riscv branch from 98cbf7d to 0a99a89 Compare December 8, 2025 13:16
@kxxt kxxt requested review from richardlau and sxa December 8, 2025 13:16
@richardlau richardlau added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. labels Dec 8, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 8, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting that #60995 has been submitted to mark another test as flaky so this shouldn't cause a problem going forward 👍🏻

@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. v8 engine Issues and PRs related to the V8 dependency. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RISCV] Check failed: (trampoline_pos - fixup_pos) <= kMaxBranchOffset.

5 participants