Skip to content

Conversation

@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 <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Check that `node --debug-brk -e 0` immediately quits. PR-URL: nodejs#3585 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
@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 <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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 <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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 <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
@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 <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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 <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
@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

6 participants