Skip to content

Don't attempt to close a handle twice #15984

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Sep 22, 2024

This is pretty harmless, but still, when running e.g. gh14537.phpt with a debugger attached we get a C0000028 ("an invalid handle was specified") error at

CloseHandle(ptr->segment);

This is pretty harmless, but still, when running e.g. gh14537.phpt with
a debugger attached we get a `C0000028` ("an invalid handle was
specified") error at

https://github.com/php/php-src/blob/27b3131422b53f9b37bba5235bc20610687fad2e/TSRM/tsrm_win32.c#L74
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since handles can be reused IIRC, this should be backported.

@cmb69 cmb69 closed this in f303840 Sep 22, 2024
@cmb69 cmb69 deleted the cmb/segment-invalid branch September 22, 2024 15:30
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

Successfully merging this pull request may close these issues.

2 participants