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

Revert "src: fix stuck debugger process" #3585

Merged
merged 2 commits into from
Oct 29, 2015

Conversation

bnoordhuis
Copy link
Member

@evanlucas
Copy link
Contributor

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

@bnoordhuis
Copy link
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.

@jasnell
Copy link
Member

jasnell commented Oct 29, 2015

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.

@evanlucas
Copy link
Contributor

Ah sorry missed that. LGTM if CI is happy

@jasnell
Copy link
Member

jasnell commented Oct 29, 2015

LGTM

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]>
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 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
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
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]>
bnoordhuis added a commit that referenced this pull request Oct 29, 2015
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
Copy link
Contributor

viirya commented Oct 29, 2015

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.

@bnoordhuis
Copy link
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.

@bnoordhuis
Copy link
Member Author

For proactivity's sake: #3589

@jasnell
Copy link
Member

jasnell commented Oct 29, 2015

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

bnoordhuis added a commit that referenced this pull request Nov 7, 2015
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants