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

Tests fail on node v19 #2

Closed
hildjj opened this issue Nov 29, 2022 · 2 comments
Closed

Tests fail on node v19 #2

hildjj opened this issue Nov 29, 2022 · 2 comments

Comments

@hildjj
Copy link
Owner

hildjj commented Nov 29, 2022

Symptom:

  Uncaught exception in test/index.ava.js

  TypeError: Cannot read properties of null (reading 'finishShutdown')

this is from https://github.com/nodejs/node/blob/d579bc16b3c7e587d6027f8ea7a187781d448e4f/lib/internal/js_stream_socket.js#L160:

 finishShutdown(handle, errCode) {
    // The shutdown request might already have been cancelled.
    if (this[kCurrentShutdownRequest] === null)
      return;
    const req = this[kCurrentShutdownRequest];
    this[kCurrentShutdownRequest] = null;
    handle.finishShutdown(req, errCode); // `handle` is null
  }

I think this means that we're shutting down the socket twice, but I'd argue that node should catch that and deal with it by firing an error or something, rather than crashing.

I've tried removing

this.serverSocket.push(null)
, which fixes this issue, but breaks other tests.

My current approach is to try to understand the actual flow well enough to create a small repro for the node team, then file a bug there.

@hildjj
Copy link
Owner Author

hildjj commented Nov 29, 2022

Might be related to nodejs/node#35695

@hildjj
Copy link
Owner Author

hildjj commented Sep 3, 2024

Fixed in #3

@hildjj hildjj closed this as completed Sep 3, 2024
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

No branches or pull requests

1 participant