Skip to content

nodejs not working: Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))\n' #5078

@LYkcul

Description

@LYkcul

Node.js Version

v22.17.0

NPM Version

10.9.2

Operating System

Linux iZ7xv9tnwh1urpovhark7vZ 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64 GNU/Linux

Subsystem

Other

Description

我在 go-judge 的沙箱里运行任意 js 文件,都会报错。

测试发现 ubuntu 20 和 22 正常运行,只有 24 会报错。

我运行了 ulimit -u 返回结果是 28891,沙箱里是 unlimited。

Minimal Reproduction

node test.js

Output


 #  /nix/store/r1smm331j6crqs02mn986g06f7cpbggh-nodejs-22.17.0/bin/node[434]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../../src/node_platform.cc:103
  #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))

----- Native stack trace -----

 1: 0xeb5083 node::Assert(node::AssertionInfo const&) [/nix/store/r1smm331j6crqs02mn986g06f7cpbggh-nodejs-22.17.0/bin/node]
 2: 0xf54325 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int, node::PlatformDebugLogLevel) [/nix/store/r1smm331j6crqs02mn986g06f7cpbggh-nodejs-22.17.0/bin/node]
 3: 0xf54471 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [/nix/store/r1smm331j6crqs02mn986g06f7cpbggh-nodejs-22.17.0/bin/node]
 4: 0xe52d89  [/nix/store/r1smm331j6crqs02mn986g06f7cpbggh-nodejs-22.17.0/bin/node]
 5: 0xe5605c node::Start(int, char**) [/nix/store/r1smm331j6crqs02mn986g06f7cpbggh-nodejs-22.17.0/bin/node]
 6: 0x757e5b22a4d8  [/nix/store/g2jzxk3s7cnkhh8yq55l4fbvf639zy37-glibc-2.40-66/lib/libc.so.6]
 7: 0x757e5b22a59b __libc_start_main [/nix/store/g2jzxk3s7cnkhh8yq55l4fbvf639zy37-glibc-2.40-66/lib/libc.so.6]
 8: 0xd69705 _start [/nix/store/r1smm331j6crqs02mn986g06f7cpbggh-nodejs-22.17.0/bin/node]
foo.sh: line 2:   434 Aborted                 (core dumped) npm -v

  #  node[461]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../../src/node_platform.cc:103
  #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))

----- Native stack trace -----

 1: 0xeb5083 node::Assert(node::AssertionInfo const&) [node]
 2: 0xf54325 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int, node::PlatformDebugLogLevel) [node]
 3: 0xf54471 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
 4: 0xe52d89  [node]
 5: 0xe5605c node::Start(int, char**) [node]
 6: 0x70637d82a4d8  [/nix/store/g2jzxk3s7cnkhh8yq55l4fbvf639zy37-glibc-2.40-66/lib/libc.so.6]
 7: 0x70637d82a59b __libc_start_main [/nix/store/g2jzxk3s7cnkhh8yq55l4fbvf639zy37-glibc-2.40-66/lib/libc.so.6]
 8: 0xd69705 _start [node]
./gdbAnalysis.sh: line 1:   461 Aborted                 (core dumped) node test.js

### Before You Submit

- [x] I have looked for issues that already exist before submitting this
- [x] My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions