Skip to content

Conversation

mbektchiev
Copy link
Contributor

@mbektchiev mbektchiev commented Feb 14, 2020

Multiple dispatch_io operations are usually running
simultaneously. When recreating the inspector listening
socket after an "AttachRequest" notification from {N} CLI,
the following crash happened in a dispather worker thread:
BUG IN CLIENT OF LIBDISPATCH: Unexpected EV_VANISHED (do not destroy random mach ports or file descriptors)

The reason turned out to be that we always have at least 2 pending
current operations. One is reading the next message,
and the other one -- the cleanup handler from dispatch_io_create.

PR Checklist

refs #1254

Multiple dispatch_io operations are usually running
simultaneously. When recreating the inspector listening
socket after an "AttachRequest" notification from {N} CLI,
the following crash happened in a dispather worker thread:
`BUG IN CLIENT OF LIBDISPATCH: Unexpected EV_VANISHED (do not destroy random mach ports or file descriptors)`

The reason turned out that we always have at least 2 pending
current operations. One is reading the next message,
and the other one -- the cleanup handler from `dispatch_io_create`.
@mbektchiev mbektchiev added the bug label Feb 14, 2020
@mbektchiev mbektchiev added this to the 6.4.2 milestone Feb 14, 2020
@mbektchiev mbektchiev self-assigned this Feb 14, 2020
@cla-bot cla-bot bot added the cla: yes label Feb 14, 2020
@mbektchiev mbektchiev merged commit 618c3d6 into release Feb 17, 2020
@mbektchiev mbektchiev deleted the bektchiev/fix-debugger-reconnect branch February 17, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants