Skip to content

Conversation

@bnoordhuis
Copy link
Member

@bnoordhuisbnoordhuis commented Jul 28, 2016

uv_close() is an asynchronous operation. Calling it on a data member
inside the destructor is unsound because its memory is about to be
reclaimed but libuv is not done with it yet.

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

@bnoordhuisbnoordhuis added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. inspector Issues and PRs related to the V8 inspector protocol labels Jul 28, 2016
@bnoordhuis
Copy link
MemberAuthor

cc @eugeneo@ofrobots

@bnoordhuisbnoordhuisforce-pushed the v8-inspector-use-after-free branch from ef2e2dc to 4902a4aCompareAugust 1, 2016 14:32
@bnoordhuis
Copy link
MemberAuthor

@jasnell
Copy link
Member

LGTM fwiw :-)

@eugeneo
Copy link
Contributor

Lgtm. Thanks!

@ofrobots
Copy link
Contributor

LGTM.

uv_close() is an asynchronous operation. Calling it on a data member inside the destructor is unsound because its memory is about to be reclaimed but libuv is not done with it yet. PR-URL: nodejs#7907 Reviewed-By: Ali Ijaz Sheikh <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: James M Snell <[email protected]>
@bnoordhuisbnoordhuisforce-pushed the v8-inspector-use-after-free branch from 4902a4a to 80b10b4CompareAugust 2, 2016 06:36
@bnoordhuisbnoordhuis deleted the v8-inspector-use-after-free branch August 2, 2016 06:37
@bnoordhuisbnoordhuis merged commit 80b10b4 into nodejs:masterAug 2, 2016
@cjihrigcjihrig mentioned this pull request Aug 8, 2016
cjihrig pushed a commit that referenced this pull request Aug 10, 2016
uv_close() is an asynchronous operation. Calling it on a data member inside the destructor is unsound because its memory is about to be reclaimed but libuv is not done with it yet. PR-URL: #7907 Reviewed-By: Ali Ijaz Sheikh <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: James M Snell <[email protected]>
@cjihrigcjihrig mentioned this pull request Aug 11, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++Issues and PRs that require attention from people who are familiar with C++.inspectorIssues and PRs related to the V8 inspector protocollib / srcIssues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@bnoordhuis@jasnell@eugeneo@ofrobots@MylesBorins