Skip to content

fix: bootstrap the node environment after we setup the InspectorAgent - #19317

Merged
MarshallOfSound merged 1 commit into
masterfrom
inspect-brk
Jul 18, 2019
Merged

MarshallOfSound merged 1 commit into
masterfrom
inspect-brk

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Fixes #19316

In node 12.4 they bootstrap the environment before we get our hands on it resulting in a CHECK when we try to set up the inspector agent. I'm gonna work on upstreaming something but for now this patch will get us going again 👍

Notes: Ensure using the --inspect-brk argument does not cause a crash

@MarshallOfSound MarshallOfSound added fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases target/6-0-x labels Jul 17, 2019
@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner July 17, 2019 21:49
@MarshallOfSound
MarshallOfSound force-pushed the inspect-brk branch 3 times, most recently from 4d31f89 to f3db4e5 Compare July 18, 2019 21:58

@deepak1556 deepak1556 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for short term fix. Really would like to see this get fixed in upstream :) Node for its main instance seems to initialize the inspector same way as this PR calling Environment::IntializeInspector, I like the proposal of making environment initialize the inspector and providing a hook for embedders to override.

The current dependency cycle between inspector, agent and environment is weird.

@MarshallOfSound
MarshallOfSound merged commit 6fc648c into master Jul 18, 2019
@release-clerk

release-clerk Bot commented Jul 18, 2019

Copy link
Copy Markdown

Release Notes Persisted

Ensure using the --inspect-brk argument does not cause a crash

@MarshallOfSound
MarshallOfSound deleted the inspect-brk branch July 18, 2019 23:54
@trop

trop Bot commented Jul 18, 2019

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "6-0-x" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Jul 18, 2019

Copy link
Copy Markdown
Contributor

A maintainer has manually backported this PR to "6-0-x", please check out #19332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--inspect-brk crashes on 6-0-x beta

2 participants