GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Revert "src: fix stuck debugger process" by bnoordhuis · Pull Request #3585 · nodejs/node

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented Oct 29, 2015

Copy link
Copy Markdown
Member

Refs: #2778

/cc @viirya

CI: https://ci.nodejs.org/job/node-test-pull-request/648/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis bnoordhuis added debugger labels Oct 29, 2015
This was referenced Oct 29, 2015
debugger: make listen address configurable #3316
Merged
Do not unref debug handle to avoid debug process stuck #2778
Closed
@evanlucas

evanlucas commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

@bnoordhuis mind explaining the revert and where the regression is?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Oct 29, 2015

Copy link
Copy Markdown
Member Author

It's in the commit log, let me know if it's not clear enough:

Reverted for breaking node --debug-brk -e 0. It should immediately quit but instead it hangs now.

The regression is that the uv_async_t debug handle is not unref'd when --debug-brk is specified. I want to revert first instead of trying to fix it because the commit is lined up for the next LTS release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented Oct 29, 2015

Copy link
Copy Markdown
Member

Yep, thanks for catching that @bnoordhuis. Fortunately the commit is only in staging and hasn't yet been landed in the v4.x branch so I'll simply pull it from the list of commits that I land in v4.x today.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

Ah sorry missed that. LGTM if CI is happy

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented Oct 29, 2015

Copy link
Copy Markdown
Member

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis added 2 commits October 29, 2015 15:57
@bnoordhuis
Revert "src: fix stuck debugger process"
9b02442
This reverts commit ff877e9.

Reverted for breaking `node --debug-brk -e 0`.  It should immediately
quit but instead it hangs now.

PR-URL: nodejs#3585
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@bnoordhuis
test: add regression test for --debug-brk -e 0
810cc05
Check that `node --debug-brk -e 0` immediately quits.

PR-URL: nodejs#3585
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@bnoordhuis
bnoordhuis force-pushed the revert-pr2778 branch from dc58bef to 810cc05 Compare October 29, 2015 14:59
@bnoordhuis bnoordhuis closed this Oct 29, 2015
@bnoordhuis
bnoordhuis deleted the revert-pr2778 branch October 29, 2015 14:59
@bnoordhuis
bnoordhuis merged commit 810cc05 into nodejs:master Oct 29, 2015
bnoordhuis added a commit that referenced this pull request Oct 29, 2015
@bnoordhuis @jasnell
Revert "src: fix stuck debugger process"
1f6f123
This reverts commit ff877e9.

Reverted for breaking `node --debug-brk -e 0`.  It should immediately
quit but instead it hangs now.

PR-URL: #3585
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
bnoordhuis added a commit that referenced this pull request Oct 29, 2015
@bnoordhuis @jasnell
test: add regression test for --debug-brk -e 0
37aec6a
Check that `node --debug-brk -e 0` immediately quits.

PR-URL: #3585
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@jasnell jasnell mentioned this pull request Oct 29, 2015
Preparing v4.2.2 LTS Maintenance nodejs/Release#50
Closed
bnoordhuis added a commit that referenced this pull request Oct 29, 2015
@bnoordhuis @jasnell
test: add regression test for --debug-brk -e 0
5e6f7c9
Check that `node --debug-brk -e 0` immediately quits.

PR-URL: #3585
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@viirya

viirya commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

Not sure about this. Correct me if I am wrong. But shouldn't --debug-brk break before the first statement? Why it should return immediately when running with --debug-brk=1234 -e 0.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Oct 29, 2015

Copy link
Copy Markdown
Member Author

Maybe --debug-brk was a bad example but for example node --debug -e 0 had the same issue. If you file an issue we can look into changing --debug-brk because I think the intended behavior is for it to wait until a debug client connects.

The thing is though that ff877e9 introduced an unintentional change. If we decide to change how --debug-brk behaves in stable and LTS it should be intentional and documented. In that light I think the revert is justified.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis bnoordhuis mentioned this pull request Oct 29, 2015
debugger: --debug-brk should pause until debug client connects #3589
Closed
@bnoordhuis

bnoordhuis commented Oct 29, 2015

Copy link
Copy Markdown
Member Author

For proactivity's sake: #3589

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented Oct 29, 2015

Copy link
Copy Markdown
Member

Landed in v4.x-staging in 5e6f7c9. No need to land in v4.x because the original commit hadn't landed there yet.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell removed the lts-watch-v4.x label Oct 29, 2015
@Fishrock123 Fishrock123 mentioned this pull request Nov 6, 2015
Release proposal: v5.1.0 #3700
Closed
bnoordhuis added a commit that referenced this pull request Nov 7, 2015
@bnoordhuis @rvagg
Revert "src: fix stuck debugger process"
d72bb1e
This reverts commit ff877e9.

Reverted for breaking `node --debug-brk -e 0`.  It should immediately
quit but instead it hangs now.

PR-URL: #3585
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
bnoordhuis added a commit that referenced this pull request Nov 7, 2015
@bnoordhuis @rvagg
test: add regression test for --debug-brk -e 0
1e98d90
Check that `node --debug-brk -e 0` immediately quits.

PR-URL: #3585
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@Fishrock123 Fishrock123 mentioned this pull request Nov 11, 2015
Propose v5.1.0 #3736
Merged
@MylesBorins MylesBorins added the lts-landed-on-v4.x label Nov 16, 2015
@rvagg rvagg mentioned this pull request Dec 17, 2015
Release 4.2.4 Planning #4321
Closed
@MylesBorins MylesBorins mentioned this pull request Jan 14, 2016
Audit commits not found on v4.x-staging #4698
Closed
@rvagg rvagg added the dont-land-on-v4.x label Jan 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@bnoordhuis @evanlucas @jasnell @viirya @rvagg @MylesBorins
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.