Skip to content

Segfault on master #22528

Closed
Closed
@BridgeAR

Description

@BridgeAR

Steps to reproduce:

npm i @nearform/bubbleprof
./node

Then run the example from bubbleprof:

const ClinicBubbleprof = require('.')
const bubbleprof = new ClinicBubbleprof()

bubbleprof.collect(['./node', './path-to-script.js'], function (err, filepath) {
  if (err) throw err

  bubbleprof.visualize(filepath, filepath + '.html', function (err) {
    if (err) throw err
  })
})

Then kill the now spawned process.

ps aux | grep node
kill xxxxx

Result in:

FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
 1: 0x563b4a4ad0a0 node::Abort() [../../../node/node-cp/node]
 2: 0x563b4a4ad0ee  [../../../node/node-cp/node]
 3: 0x563b4a6e5f0a v8::Utils::ReportApiFailure(char const*, char const*) [../../../node/node-cp/node]
 4: 0x563b4aaffef6 v8::internal::HandleScope::Extend(v8::internal::Isolate*) [../../../node/node-cp/node]
 5: 0x563b4a6e7514 v8::EscapableHandleScope::EscapableHandleScope(v8::Isolate*) [../../../node/node-cp/node]
 6: 0x563b4a6fac9e v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [../../../node/node-cp/node]
 7: 0x563b4a494dd3 node::Environment::TrackingTraceStateObserver::OnTraceDisabled() [../../../node/node-cp/node]
 8: 0x563b4b1b4be3  [../../../node/node-cp/node]
 9: 0x563b4a582d66 node::tracing::Agent::Disconnect(int) [../../../node/node-cp/node]
10: 0x563b4a4ac7f7 node::SignalExit(int) [../../../node/node-cp/node]
11: 0x7f8fdbe62890  [/lib/x86_64-linux-gnu/libpthread.so.0]
12: 0x7f8fdbb7a839 syscall [/lib/x86_64-linux-gnu/libc.so.6]
13: 0x563b4a62910a  [../../../node/node-cp/node]
14: 0x563b4a627293  [../../../node/node-cp/node]
15: 0x563b4a6158a2 uv_run [../../../node/node-cp/node]
16: 0x563b4a4b8bb5 node::Start(v8::Isolate*, node::IsolateData*, int, char const* const*, int, char const* const*) [../../../node/node-cp/node]
17: 0x563b4a4b7360 node::Start(int, char**) [../../../node/node-cp/node]
18: 0x7f8fdba80b97 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
19: 0x563b4a469ada _start [../../../node/node-cp/node]
Error: process exited by signal SIGABRT

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Issues and PRs that require attention from people who are familiar with C++.trace_eventsIssues and PRs related to V8, Node.js core, and userspace code trace events.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions