Repository navigation
fix: windows handles leak (x86_64) due to libstdc++ issue - #9
Merged
onebeastchris merged 1 commit intoNov 25, 2026
Merged
Conversation
onebeastchris
approved these changes
Nov 25, 2026
|
Thanks! |
onebeastchris
added a commit
to CloudburstMC/Network
that referenced
this pull request
Nov 27, 2026
This brings in upstream improvements, mainly: usrsctp changes: - opencollab-incubator/usrsctp#1 (Restart T3-rtx on a new cumulative ack in the express SACK path) libdatachannel: - opencollab-incubator/libdatachannel#4 (Report the bytes in the SCTP association's own queues) - opencollab-incubator/libdatachannel#5 (Make usrsctp's cwnd-based max burst a setting) - opencollab-incubator/libdatachannel#6 (Pull in usrsctp changes) libdatachannel-java: - opencollab-incubator/libdatachannel-java#6 (Expose the bytes in the SCTP association's own queues and the send buffer that bounds them) - opencollab-incubator/libdatachannel-java#7 (Expose usrsctp's cwnd-based max burst as a setting) - opencollab-incubator/libdatachannel-java#8 (Sync jni/libdatachannel to latest fork update) - opencollab-incubator/libdatachannel-java#9 (fix: windows handles leak (x86_64) due to libstdc++ issue)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes GeyserMC/Geyser#6920.
moves the compiler for windows x86_64 building to clang64, this is explained in the commit diff, but I'll TL;DR here as well:
gcc + libstdc++ is apparently not competent enough to handle pthread destroys, so it doesn't actually destroy pthreads if a static initializer exists
This isn't an issue on linux, but when it comes to Windows' shittery, the objects (from what I can see this is an event as well as some semaphores?) don't get freed until destroyed, which creates a giant leak as the underlying pthread is never actually destroyed... wowzers!
had to hunt these down, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59807 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107857 both describe this issue (one targets ::mutex and the other is the recursive variant lol)
alas, clang + libc++ on the other hand, doesn't have this issue
In regards to testing:
Was only able to reproduce original issue on windows with a Geyser Standalone instance, tested the leaks as well with a temporary test in the workflow on a separate branch:
(yes I cancelled the clang64 action as macos was making me impatient)
the aarch64 handling already used clangarm64 which is why it wasn't affected