Skip to content

Crash when in inspector take a heap snapshot #37878

Closed

Description

@AllanDaemon
  • Version: v14.16.0
  • Platform: Linux host.base 5.10.23-200.fc33.x86_64 #1 SMP Thu Mar 11 22:18:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: inspector?

What steps will reproduce the bug?

TL;DR: inspect a node process from chrome and try to take a memory snapshot

This bug was caught in the n8n package. IDK how to reproduce it in a simpler way.

You'll need a redis instance running with default specs (using with docker should be fine).
In an empty folder:

npm install n8n
npx n8n start

# in another shell
node --inspect node_modules/n8n/bin/n8n worker

Then open the chrome chrome://inspect, inspect the process, and try to take a Heap dump. It will start, then in the middle (like 62% done), the node process will crash.

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

Always with this setup.

What is the expected behavior?

Not crashing.

What do you see instead?

node --inspect node_modules/n8n/bin/n8n worker
Debugger listening on ws://127.0.0.1:9229/90bb4c2d-3b0a-4a61-a9d0-ebbe92ef2ade
For help, see: https://nodejs.org/en/docs/inspector
Starting n8n worker...

n8n worker is now ready
 * Version: 0.112.0
 * Concurrency: 10

Debugger attached.
[1]    282997 segmentation fault (core dumped)  node --inspect node_modules/n8n/bin/n8n worker

image

Additional information

Might be related to #36845

UPDATED: fix instructions to reproduce

Activity

  1. added
    inspectorIssues and PRs related to the V8 inspector protocol.
    memoryIssues and PRs related to Node.js memory management or memory footprint.
    v8 engineIssues and PRs related to the V8 dependency.
    on Mar 23, 2021
  2. AllanDaemon commented on Mar 23, 2021

    @AllanDaemon
    Author

    It also happens when I try to use the heapdump library.

    I install the library, them trey to use it as indicated by just importing it (const heapdump = require('heapdump'); in the file node_modules/n8n/bin/n8n. Then, I signal USR2 to the process to generate the dump, but It crashes in the middle. It's not out of memory error, as the possibility suggested in the framework page (check RAM through the dump, and no OOM killer logs).

  3. addaleax commented on Mar 23, 2021

    @addaleax
    Member

    @AllanDaemon Do you think you could get a stack trace for the crash here, like the ones in #36845?

  4. AllanDaemon commented on Mar 23, 2021

    @AllanDaemon
    Author

    @AllanDaemon Do you think you could get a stack trace for the crash here, like the ones in #36845?

    I can try, but I don't know how to do it. The only thing used in the OP in that issue is the --inspect flag in the node command, which I used but there is no stack trace.

  5. addaleax commented on Mar 23, 2021

    @addaleax
    Member

    @AllanDaemon If you can, start the process with gdb --args node --inspect ..., then enter run in the prompt, do everything else as usual, and once the crash happens, run bt to get a backtrace.

  6. AllanDaemon commented on Mar 24, 2021

    @AllanDaemon
    Author

    I installed the debug symbols packages (in Fedora), so hopefully this will be more helpful.

    first, the results of GDB (I splitter the GDB execution part from the bt results)

    gdb --args node --inspect node_modules/n8n/bin/n8n worker
    GNU gdb (GDB) Fedora 10.1-2.fc33
    Copyright (C) 2020 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <https://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
        <http://www.gnu.org/software/gdb/documentation/>.
    
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from node...
    Reading symbols from /usr/lib/debug/usr/bin/node-14.16.0-1.fc33.x86_64.debug...
    (gdb) run
    Starting program: /usr/bin/node --inspect node_modules/n8n/bin/n8n worker
    Missing separate debuginfos, use: dnf debuginfo-install glibc-2.32-4.fc33.x86_64
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    Missing separate debuginfo for /lib64/libstdc++.so.6
    Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/d9/6dc5d450e9f7e3994d0db3059cf0d99c044881.debug
    [New Thread 0x7ffff2d22640 (LWP 347699)]
    [New Thread 0x7ffff2521640 (LWP 347700)]
    [New Thread 0x7ffff1d20640 (LWP 347701)]
    [New Thread 0x7ffff151f640 (LWP 347702)]
    [New Thread 0x7ffff0d1e640 (LWP 347703)]
    [New Thread 0x7ffff7fca640 (LWP 347704)]
    [New Thread 0x7fffebfff640 (LWP 347705)]
    Debugger listening on ws://127.0.0.1:9229/70cef0f0-27fb-4640-bec0-36eac131d091
    For help, see: https://nodejs.org/en/docs/inspector
    [New Thread 0x7fffeb7fe640 (LWP 347706)]
    [New Thread 0x7fffeaffd640 (LWP 347707)]
    [New Thread 0x7fffea7fc640 (LWP 347708)]
    [New Thread 0x7fffe9ffb640 (LWP 347709)]
    Starting n8n worker...
    [Detaching after fork from child process 347715]
    Debugger attached.
    
    n8n worker is now ready
     * Version: 0.112.0
     * Concurrency: 10
    
    
    Thread 1 "node" received signal SIGSEGV, Segmentation fault.
    v8::internal::HeapObject::IsUndefined (this=<optimized out>)
        at ../deps/v8/src/objects/objects-inl.h:117
    117     ODDBALL_LIST(IS_TYPE_FUNCTION_DEF)
    Missing separate debuginfos, use: dnf debuginfo-install libnghttp2-1.43.0-1.fc33.x86_64 openssl-libs-1--Type <RET> for more, q to quit, c to continue without paging--c
    .1.1j-1.fc33.x86_64 zlib-1.2.11-23.fc33.x86_64
    (gdb) bt
    
    #0  v8::internal::HeapObject::IsUndefined (this=<optimized out>)
        at ../deps/v8/src/objects/objects-inl.h:117
    #1  v8::internal::Context::has_extension (this=0x7fffffff9158)
        at ../deps/v8/src/objects/contexts-inl.h:99
    #2  v8::internal::Context::has_extension (this=0x7fffffff9158)
        at ../deps/v8/src/objects/contexts-inl.h:98
    #3  v8::internal::V8HeapExplorer::ExtractContextReferences (this=0x7fffffff9348, 
        entry=0x55555e0b4788, context=...) at ../deps/v8/src/profiler/heap-snapshot-generator.cc:1000
    #4  0x00007ffff6737fa1 in v8::internal::V8HeapExplorer::ExtractReferences (
        this=this@entry=0x7fffffff9348, entry=entry@entry=0x55555e0b4788, obj=...)
        at ../deps/v8/src/objects/contexts-inl.h:48
    #5  0x00007ffff6738315 in v8::internal::V8HeapExplorer::IterateAndExtractReferences (
        this=0x7fffffff9348, generator=<optimized out>)
        at ../deps/v8/src/profiler/heap-snapshot-generator.cc:1516
    #6  0x00007ffff67388ed in v8::internal::HeapSnapshotGenerator::FillReferences (this=0x7fffffff9330)
        at ../deps/v8/src/profiler/heap-snapshot-generator.cc:2094
    #7  0x00007ffff6739cb2 in v8::internal::HeapSnapshotGenerator::GenerateSnapshot (
        this=this@entry=0x7fffffff9330) at ../deps/v8/src/profiler/heap-snapshot-generator.cc:2058
    #8  0x00007ffff672b987 in v8::internal::HeapProfiler::TakeSnapshot (this=this@entry=0x555555619620, 
        control=control@entry=0x55555616bc70, resolver=resolver@entry=0x7fffffff9550, 
        treat_global_objects_as_roots=<optimized out>) at ../deps/v8/src/profiler/heap-profiler.cc:75
    #9  0x00007ffff63048ec in v8::HeapProfiler::TakeHeapSnapshot (this=this@entry=0x555555619620, control=control@entry=0x55555616bc70, resolver=resolver@entry=0x7fffffff9550, treat_global_objects_as_roots=<optimized out>) at ../deps/v8/src/api/api.cc:10826
    #10 0x00007ffff69a3394 in v8_inspector::V8HeapProfilerAgentImpl::takeHeapSnapshot (this=0x5555559e1fa0, reportProgress=..., treatGlobalObjectsAsRoots=...) at ../deps/v8/src/inspector/v8-heap-profiler-agent-impl.cc:224
    #11 0x00007ffff6a7f737 in v8_inspector::protocol::HeapProfiler::DomainDispatcherImpl::takeHeapSnapshot (this=0x555555920d60, dispatchable=..., params=<optimized out>, errors=<optimized out>) at /usr/include/c++/10/bits/move.h:101
    #12 0x00007ffff6a7d8be in operator() (dispatchable=..., __closure=0x55555619c940) at /usr/include/c++/10/bits/unique_ptr.h:173
    #13 std::__invoke_impl<void, v8_inspector::protocol::HeapProfiler::DomainDispatcherImpl::Dispatch(v8_crdtp::span<unsigned char>)::<lambda(const v8_crdtp::Dispatchable&)>&, const v8_crdtp::Dispatchable&> (__f=...) at /usr/include/c++/10/bits/invoke.h:60
    #14 std::__invoke_r<void, v8_inspector::protocol::HeapProfiler::DomainDispatcherImpl::Dispatch(v8_crdtp::span<unsigned char>)::<lambda(const v8_crdtp::Dispatchable&)>&, const v8_crdtp::Dispatchable&> (__fn=...) at /usr/include/c++/10/bits/invoke.h:153
    #15 std::_Function_handler<void(const v8_crdtp::Dispatchable&), v8_inspector::protocol::HeapProfiler::DomainDispatcherImpl::Dispatch(v8_crdtp::span<unsigned char>)::<lambda(const v8_crdtp::Dispatchable&)> >::_M_invoke(const std::_Any_data &, const v8_crdtp::Dispatchable &) (__functor=..., __args#0=...) at /usr/include/c++/10/bits/std_function.h:291
    #16 0x00007ffff69dfa7f in std::function<void ()>::operator()() const (this=0x7fffffff9808) at /usr/include/c++/10/bits/std_function.h:622
    #17 v8_crdtp::UberDispatcher::DispatchResult::Run (this=this@entry=0x7fffffff9800) at ../deps/v8/third_party/inspector_protocol/crdtp/dispatch.cc:501
    #18 0x00007ffff69ac5bb in v8_inspector::V8InspectorSessionImpl::dispatchProtocolMessage (this=0x555555c0d3a0, message=...) at ../deps/v8/src/inspector/v8-inspector-session-impl.cc:378
    #19 0x00007ffff5e7434f in node::inspector::(anonymous namespace)::SameThreadInspectorSession::Dispatch(v8_inspector::StringView const&) () at ../src/inspector_agent.cc:255
    #20 0x00007ffff5e94ac9 in node::inspector::(anonymous namespace)::MainThreadSessionState::Dispatch (this=<optimized out>, message=...) at ../src/inspector/main_thread_interface.cc:152
    #21 0x00007ffff5e92b66 in node::inspector::(anonymous namespace)::AnotherThreadObjectReference<node::inspector::(anonymous namespace)::MainThreadSessionState>::Apply<std::unique_ptr<v8_inspector::StringBuffer> > (target=<optimized out>, fn=<optimized out>, argument=...) at /usr/include/c++/10/bits/unique_ptr.h:172
    #22 0x00007ffff5e92f38 in node::inspector::MainThreadInterface::DispatchMessages (this=0x5555555bfb70) at ../src/inspector/main_thread_interface.cc:253
    #23 0x00007ffff5e93508 in operator() (__closure=<optimized out>) at ../src/inspector/main_thread_interface.cc:218
    #24 node::CallbackQueue<void, node::Environment*>::CallbackImpl<node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request>)::<lambda(node::Environment*)> >::Call(node::Environment *) (this=<optimized out>, args#0=<optimized out>) at ../src/callback_queue-inl.h:90
    #25 0x00007ffff5ceec35 in node::Environment::RunAndClearInterrupts (this=0x5555555bd670) at ../src/env.cc:660
    #26 0x00007ffff5cef012 in node::Environment::RunAndClearNativeImmediates (this=0x5555555bd670, only_refed=<optimized out>) at ../src/env.cc:674
    #27 0x00007ffff61d182e in uv__async_io (loop=0x7ffff7f695a0 <default_loop_struct>, w=<optimized out>, events=<optimized out>) at ../deps/uv/src/unix/async.c:163
    #28 0x00007ffff61e44ac in uv__io_poll (loop=loop@entry=0x7ffff7f695a0 <default_loop_struct>, timeout=<optimized out>) at ../deps/uv/src/unix/linux-core.c:462
    #29 0x00007ffff61d2124 in uv_run (loop=0x7ffff7f695a0 <default_loop_struct>, mode=UV_RUN_DEFAULT) at ../deps/uv/src/unix/core.c:385
    #30 0x00007ffff5dac864 in node::NodeMainInstance::Run (this=this@entry=0x7fffffffd390) at ../src/node_main_instance.cc:130
    #31 0x00007ffff5d22c05 in node::Start (argc=<optimized out>, argv=<optimized out>) at ../src/node.cc:1101
    #32 0x00007ffff508b1e2 in __libc_start_main () from /lib64/libc.so.6
    #33 0x000055555555612e in _start ()
    
  7. AllanDaemon commented on Mar 24, 2021

    @AllanDaemon
    Author

    Also, using the gnome-abrt, I found a lot of information, and the ones I thought relevant I'm putting here. That includes a nice JSON view of the backtrace. If you want I can send the coredump (half gigabyte) and the correlated files.

    reason: node killed by SIGSEGV
    cmdline: node --inspect node_modules/n8n/bin/n8n worker
    crash_function: v8::internal::V8HeapExplorer::ExtractContextReferences(v8::internal::HeapEntry*, v8::internal::Context)
    package: nodejs-1:14.16.0-1.fc33
    component: nodejs
    architecture: x86_64
    

    core_backtrace:

    {   "signal": 11
    ,   "executable": "/usr/bin/node"
    ,   "stacktrace":
          [ {   "crash_thread": true
            ,   "frames":
                  [ {   "address": 139921009703418
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 21916154
                    ,   "function_name": "v8::internal::V8HeapExplorer::ExtractContextReferences(v8::internal::HeapEntry*, v8::internal::Context)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921009709845
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 21922581
                    ,   "function_name": "v8::internal::V8HeapExplorer::IterateAndExtractReferences(v8::internal::HeapSnapshotGenerator*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921009711341
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 21924077
                    ,   "function_name": "v8::internal::HeapSnapshotGenerator::FillReferences()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921009716402
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 21929138
                    ,   "function_name": "v8::internal::HeapSnapshotGenerator::GenerateSnapshot()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921009658247
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 21870983
                    ,   "function_name": "v8::internal::HeapProfiler::TakeSnapshot(v8::ActivityControl*, v8::HeapProfiler::ObjectNameResolver*, bool)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921012245396
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 24458132
                    ,   "function_name": "v8_inspector::V8HeapProfilerAgentImpl::takeHeapSnapshot(v8_crdtp::glue::detail::ValueMaybe<bool>, v8_crdtp::glue::detail::ValueMaybe<bool>)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921013147447
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 25360183
                    ,   "function_name": "v8_inspector::protocol::HeapProfiler::DomainDispatcherImpl::takeHeapSnapshot(v8_crdtp::Dispatchable const&, v8_inspector::protocol::DictionaryValue*, v8_crdtp::ErrorSupport*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921013139646
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 25352382
                    ,   "function_name": "std::_Function_handler<void (v8_crdtp::Dispatchable const&), v8_inspector::protocol::HeapProfiler::DomainDispatcherImpl::Dispatch(v8_crdtp::span<unsigned char>)::{lambda(v8_crdtp::Dispatchable const&)#1}>::_M_invoke(std::_Any_data const&, v8_crdtp::Dispatchable const&)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921012492927
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 24705663
                    ,   "function_name": "v8_crdtp::UberDispatcher::DispatchResult::Run()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921012282811
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 24495547
                    ,   "function_name": "v8_inspector::V8InspectorSessionImpl::dispatchProtocolMessage(v8_inspector::StringView)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921000518479
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12731215
                    ,   "function_name": "node::inspector::(anonymous namespace)::SameThreadInspectorSession::Dispatch(v8_inspector::StringView const&)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921000651465
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12864201
                    ,   "function_name": "node::inspector::(anonymous namespace)::MainThreadSessionState::Dispatch(std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921000643430
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12856166
                    ,   "function_name": "void node::inspector::(anonymous namespace)::AnotherThreadObjectReference<node::inspector::(anonymous namespace)::MainThreadSessionState>::Apply<std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> > >(node::inspector::(anonymous namespace)::MainThreadSessionState*, void (node::inspector::(anonymous namespace)::MainThreadSessionState::*)(std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >), std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >&)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921000644408
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12857144
                    ,   "function_name": "node::inspector::MainThreadInterface::DispatchMessages()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921000645896
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12858632
                    ,   "function_name": "node::CallbackQueue<void, node::Environment*>::CallbackImpl<node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >)::{lambda(node::Environment*)#1}>::Call(node::Environment*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920998923317
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 11136053
                    ,   "function_name": "node::Environment::RunAndClearInterrupts()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920998924306
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 11137042
                    ,   "function_name": "node::Environment::RunAndClearNativeImmediates(bool)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004046382
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16259118
                    ,   "function_name": "uv__async_io.part.0"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004123308
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16336044
                    ,   "function_name": "uv__io_poll"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004048676
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16261412
                    ,   "function_name": "uv_run"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999700580
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 11913316
                    ,   "function_name": "node::NodeMainInstance::Run()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999136261
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 11348997
                    ,   "function_name": "node::Start(int, char**)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999920559
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12133295
                    ,   "function_name": "node::TaskQueue<v8::Task>::BlockingPop()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999907802
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12120538
                    ,   "function_name": "node::(anonymous namespace)::PlatformWorkerThread(void*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920986824350
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1056414
                    ,   "function_name": "epoll_wait"
                    ,   "file_name": "/lib64/libc.so.6"
                    }
                  , {   "address": 139921004123624
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16336360
                    ,   "function_name": "uv__io_poll"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004048676
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16261412
                    ,   "function_name": "uv_run"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999920270
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12133006
                    ,   "function_name": "node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Run()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999920559
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12133295
                    ,   "function_name": "node::TaskQueue<v8::Task>::BlockingPop()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999907802
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12120538
                    ,   "function_name": "node::(anonymous namespace)::PlatformWorkerThread(void*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999920559
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12133295
                    ,   "function_name": "node::TaskQueue<v8::Task>::BlockingPop()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999907802
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12120538
                    ,   "function_name": "node::(anonymous namespace)::PlatformWorkerThread(void*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999920559
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12133295
                    ,   "function_name": "node::TaskQueue<v8::Task>::BlockingPop()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920999907802
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12120538
                    ,   "function_name": "node::(anonymous namespace)::PlatformWorkerThread(void*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920986824350
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1056414
                    ,   "function_name": "epoll_wait"
                    ,   "file_name": "/lib64/libc.so.6"
                    }
                  , {   "address": 139921004123624
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16336360
                    ,   "function_name": "uv__io_poll"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004048676
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16261412
                    ,   "function_name": "uv_run"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921000554146
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12766882
                    ,   "function_name": "node::inspector::InspectorIo::ThreadMain()"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987721988
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 73988
                    ,   "function_name": "do_futex_wait.constprop.0"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920987722248
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 74248
                    ,   "function_name": "__new_sem_wait_slow.constprop.0"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106322
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16319058
                    ,   "function_name": "uv_sem_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921000515437
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 12728173
                    ,   "function_name": "node::inspector::(anonymous namespace)::StartIoThreadMain(void*)"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004029010
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16241746
                    ,   "function_name": "worker"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004029010
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16241746
                    ,   "function_name": "worker"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004029010
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16241746
                    ,   "function_name": "worker"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            }
          , {   "frames":
                  [ {   "address": 139920987711170
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 63170
                    ,   "function_name": "pthread_cond_wait@@GLIBC_2.3.2"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139921004106189
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16318925
                    ,   "function_name": "uv_cond_wait"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139921004029010
                    ,   "build_id": "0300620b05a232143171f732dddab3f9d4d2e447"
                    ,   "build_id_offset": 16241746
                    ,   "function_name": "worker"
                    ,   "file_name": "/lib64/libnode.so.83"
                    }
                  , {   "address": 139920987685881
                    ,   "build_id": "c06e312cc8c379fae406dfe5edbbd0805cecf625"
                    ,   "build_id_offset": 37881
                    ,   "function_name": "start_thread"
                    ,   "file_name": "/lib64/libpthread.so.0"
                    }
                  , {   "address": 139920986823507
                    ,   "build_id": "4a7fb374097fb927fb93d35ef98ba89262d0c4a4"
                    ,   "build_id_offset": 1055571
                    ,   "function_name": "__clone"
                    ,   "file_name": "/lib64/libc.so.6"
                    } ]
            } ]
    }
  8. Poyoman39 commented on Jul 29, 2021

    @Poyoman39

    I've the same problem with node v14.17.2
    As a workaround node v16.5.0 does not cause core dumps

  9. eduhenke commented on Jan 28, 2022

    @eduhenke

    It's the same with problem with node v14.17.6 and v14.16.1

  10. legendecas commented on Apr 7, 2022

    @legendecas
    Member

    Tracking in #42558.

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

    inspectorIssues and PRs related to the V8 inspector protocol.memoryIssues and PRs related to Node.js memory management or memory footprint.v8 engineIssues and PRs related to the V8 dependency.v8 moduleIssues and PRs related to the node:v8 module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions