std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() 问题解决

笔者在用docker build node镜像时候,遇到这个问题,搜了很久才发现是centos上不能直接From node:18.16这样,略坑,用 node:18.16-bullseye-slim 这个镜像就没问题了

报错详情:

src/node_platform.cc:68:std::unique_ptr node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xb7a940 node::Abort() [node]
 2: 0xb7a9be  [node]
 3: 0xbe98be  [node]
 4: 0xbe99a1 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
 5: 0xb38f5b node::InitializeOncePerProcess(std::vector, std::allocator >, std::allocator, std::allocator > > > const&, node::ProcessFlags::Flags) [node]
 6: 0xb395ab node::Start(int, char**) [node]
 7: 0x7f39614ab18a  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7f39614ab245 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0xabbdee _start [node]
Aborted (core dumped)

参考: https://github.com/nodejs/node/issues/43064#issuecomment-1590858448

你可能感兴趣的:(docker,容器,运维)