FAQ: add dlclose() essay from IRC - #62
Open
rofl0r wants to merge 12 commits into
Open
Conversation
ericonr
reviewed
Oct 9, 2021
| Further, managing thread-local-storage lifetime is a lot more problematic when slots can be freed and reused. (actually a lot of ppl think this is why musl doesn't unload libraries, which isn't the case. it's possible to do right, just more work). | ||
| On glibc this actually makes for some weird race conditions where a library that 'could be' unloaded doesn't get unloaded, and unloading it either never happens or gets deferred to the next dlclose operation - which breaks anything assuming that dlclose will actually unload. | ||
| So programs making this assumption are already broken on glibc too, just with random rare failures rather than failure every time. | ||
|
|
Collaborator
There was a problem hiding this comment.
Generally I think it would be nice to keep the formatting/wrapping like the other answers.
Collaborator
Author
There was a problem hiding this comment.
the others are formatted to 80 chars line length, tho md rendering disregards newlines anyway - and as this faq is not meant to be read in a terminal i opted for the quick way...
Collaborator
There was a problem hiding this comment.
If you use vim, just select the whole block and gq it. It will auto format the whole thing.
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
Co-authored-by: Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com>
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.
No description provided.