Skip to content

node:https: js_native_call_method null-pointer crash in closeIdleConnections sweep (test-https-server-close-idle) #4971

Description

@proggeramlug

Summary

test-https-server-close-idle (Node v22 test/parallel) crashes under Perry with a runtime null-pointer dereference:

[NULL_PTR_METHOD_CALL] js_native_call_method: null pointer

A native method dispatch is invoked on a null receiver — likely an idle https connection/socket handle that's already been torn down (or never fully initialized) when server.closeIdleConnections() / idle-timeout sweeping walks it. Needs a null guard at the js_native_call_method dispatch site plus the upstream cause (why the idle-connection handle is null at sweep time).

Acceptance

test-https-server-close-idle no longer crashes; idle-connection close path tolerates torn-down/uninitialized handles.


Found re-measuring #2132's corpus on main (parity 26.2%). Distinct runtime bug split out of the behavioral tail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed defect or regressionparityCompatibility gap with Node.js, ECMAScript, or the supported ecosystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions