Skip to content

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

Open

Description

@kapouer

Version

24.22.2

Platform

Linux 6.12.115+deb13.1-riscv64

Subsystem

No response

What steps will reproduce the bug?

Run jest --ci -u of module deep-for-each, for example.

How often does it reproduce? Is there a required condition?

Not always. Usually fails the first time, and not the second time !

What is the expected behavior? Why is that the expected behavior?

  • jest --ci -u
    PASS test/test.js
    ✓ should not call fn on primitive input (30 ms)
    ✓ should iterate object entries recursively (40 ms)
    ✓ should iterate arrays recursively (14 ms)
    ✓ should iterate array/objects recursively (18 ms)
    ✓ should use the up to date value (in case the forEach callback modified it) (11 ms)
    ✓ should make this equal to the subject on the iterator (8 ms)

Test Suites: 1 passed, 1 total
Tests: 6 passed, 6 total
Snapshots: 10 passed, 10 total
Time: 2.345 s

What do you see instead?

See also #60895

+ jest --ci -u
jest-haste-map: Haste module naming collision: deep-for-each
  The following files share their name; please adjust your hasteImpl:
    * <rootDir>/package.json
    * <rootDir>/.pc/fix-for-jest-29.patch/package.json

`isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`
    at isModuleDeclaration (file:///usr/share/nodejs/@babel/types/lib/index.js:1967:3)
    at PluginPass.Program (/usr/share/nodejs/babel-plugin-lodash/lib/index.js:81:46)

 RUNS  test/test.js


#
# Fatal error in , line 0
# Check failed: (trampoline_pos - fixup_pos) <= kMaxBranchOffset.
#
#
#
#FailureMessage Object: 0x3f991f9470
----- Native stack trace -----

 1: 0x3f9ebeb388  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 2: 0x3f9fc772a8 V8_Fatal(char const*, ...) [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 3: 0x3f9fbe686c  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 4: 0x3f9fd5cd34  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 5: 0x3f9fd61bce  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 6: 0x3f9ff4e928  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 7: 0x3f9ff4eb3c  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 8: 0x3f9ff5a808  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
 9: 0x3f9f2704ba  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
10: 0x3f9f2b8328 v8::internal::OptimizingCompileTaskExecutor::CompileNext(v8::internal::Isolate*, v8::internal::LocalIsolate&, v8::internal::TurbofanCompilationJob*) [/usr/lib/riscv64-linux-gnu/libnode.so.137]
11: 0x3f9f2b8552  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
12: 0x3f9f0db278  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
13: 0x3f9ebef808  [/usr/lib/riscv64-linux-gnu/libnode.so.137]
14: 0x3fa245d332  [/usr/lib/riscv64-linux-gnu/libc.so.6]
15: 0x3fa24a988c  [/usr/lib/riscv64-linux-gnu/libc.so.6]
Trace/breakpoint trap

Additional information

No response

Activity

  1. kapouer commented on Nov 5, 2026

    @kapouer
    ContributorAuthor

    Nota Bene: this happens on the debian build of nodejs.
    It also happens when building node-babel7 (the debian package).
    On the other hand, nodejs ci tests (sequential/parallel/ and so on) pass (with caveats but nothing weird) on riscv64.

  2. sxa commented on Nov 5, 2026

    @sxa
    Member

    Can you clarify which hardware you're running this on? It doesn't surprise me that there are still issues - especially back to node 24 :-)
    Bear in mind that riscv64 is currently an experimental platform with no guarantees (and also 24.22.0 and later are even more broken than what you're seeing in our builds, so Debian presumably have applied a fix for that.

  3. added
    riscv64Issues and PRs related to the 64-bit RISC-V architecture.
    on Nov 5, 2026
  4. kapouer commented on Nov 5, 2026

    @kapouer
    ContributorAuthor

    Yes, indeed, we applied two patches:

    • one that isn't always needed, and that I'm not sure is actually usefull (disable rvv)
    • another without which running node just fails
      Some features fail on riscv64, all right, that's fair.. Other things, which used to work in previous node 24, now fail.
  5. kapouer commented on Nov 5, 2026

    @kapouer
    ContributorAuthor

    Also I could reproduce on a Processor: Hifive Unmatched, Memory: 16G.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    riscv64Issues and PRs related to the 64-bit RISC-V architecture.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions