Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js crashes (aborted) when using Chrome Devtools with node --inspect #22384

Closed
iczero opened this issue Aug 18, 2018 · 1 comment
Closed
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.

Comments

@iczero
Copy link

iczero commented Aug 18, 2018

  • Version: v10.9.0
  • Platform: Linux
  • Subsystem: v8 inspector

How to reproduce:

  1. Run node --inspect
  2. Open Chrome DevTools (chrome://inspect) and connect to the instance
  3. Go to the Console tab
  4. Type anything
  5. Node.js crashes (abort)

Chrome version is 69.0.3497.32 beta (64-bit)

Backtrace by gdb (last 10 frames):
Notable: frame 3 at node::BackgroundTaskRunner::PostDelayedTask calls UNREACHABLE();

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff6ab5801 in __GI_abort () at abort.c:79
#2  0x00000000017e08f4 in node::Abort () at ../src/node.cc:1193
#3  0x0000000001884d84 in node::BackgroundTaskRunner::PostDelayedTask (this=0x41b0a10, 
    task=std::unique_ptr<v8::Task> = {...}, delay_in_seconds=0.5) at ../src/node_platform.cc:47
#4  0x0000000001aa7660 in v8_inspector::V8InspectorImpl::EvaluateScope::setTimeout (
    this=0x7fffffff9200, timeout=0.5) at ../deps/v8/src/inspector/v8-inspector-impl.cc:427
#5  0x0000000001ac6591 in v8_inspector::V8RuntimeAgentImpl::evaluate (this=0x424a9a0, expression=..., 
    objectGroup=..., includeCommandLineAPI=..., silent=..., executionContextId=..., returnByValue=..., 
    generatePreview=..., userGesture=..., awaitPromise=..., throwOnSideEffect=..., timeout=..., 
    callback=std::unique_ptr<v8_inspector::protocol::Runtime::Backend::EvaluateCallback> = {...})
    at ../deps/v8/src/inspector/v8-runtime-agent-impl.cc:265
#6  0x0000000001a2025d in v8_inspector::protocol::Runtime::DispatcherImpl::evaluate (this=0x424d810, 
    callId=11, requestMessageObject=std::unique_ptr<v8_inspector::protocol::DictionaryValue> = {...}, 
    errors=0x7fffffff99e0)
    at /home/iczero/prj/node/out/Debug/obj/gen/src/inspector/protocol/Runtime.cpp:1658
#7  0x0000000001a1d41d in v8_inspector::protocol::Runtime::DispatcherImpl::dispatch (this=0x424d810, 
    callId=11, method=..., 
    messageObject=std::unique_ptr<v8_inspector::protocol::DictionaryValue> = {...})
    at /home/iczero/prj/node/out/Debug/obj/gen/src/inspector/protocol/Runtime.cpp:1313
#8  0x00000000019bd12e in v8_inspector::protocol::UberDispatcher::dispatch (this=0x4228730, 
    parsedMessage=std::unique_ptr<v8_inspector::protocol::Value> = {...}, outCallId=0x0, outMethod=0x0)
    at /home/iczero/prj/node/out/Debug/obj/gen/src/inspector/protocol/Protocol.cpp:822
#9  0x0000000001ab5981 in v8_inspector::V8InspectorSessionImpl::dispatchProtocolMessage (
    this=0x4228700, message=...) at ../deps/v8/src/inspector/v8-inspector-session-impl.cc:316

EDIT: v10.9.0 is 03b8258, add chrome version

@alexkozy
Copy link
Member

This one has the same root as #22157
fix is coming, thanks for your report!

@addaleax addaleax added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.
Projects
None yet
Development

No branches or pull requests

3 participants