-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
runtime: fix segfault due to missing argv on musl-linux c-archive #69325
Open
adambenhassen
wants to merge
8
commits into
golang:master
Choose a base branch
from
adambenhassen:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+127
−11
Commits on Sep 6, 2024
-
runtime: fix segfault due to missing argv on musl-linux c-archive
This change fixes a segmentation fault that occurs on musl-based systems when using c-archive (or c-shared with LD_PRELOAD). The issue was caused by uninitialized argv and envp, which led to crashes at runtime. This fix ensures that both argv and envp are correctly initialized, preventing the segmentation fault. While this fix addresses crashes due to missing argv and envp, it does not address the error described in issue golang#54805, where a c-shared library loaded with dlopen triggers an error related initial-exec access to TLS objects [1] in a dynamically loaded library. [1]: http://git.musl-libc.org/cgit/musl/commit/?id=5c2f46a214fceeee3c3e41700c51415e0a4f1acd Fixes golang#13492
Configuration menu - View commit details
-
Copy full SHA for cbc1cd8 - Browse repository at this point
Copy the full SHA cbc1cd8View commit details
Commits on Sep 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 02fa1b3 - Browse repository at this point
Copy the full SHA 02fa1b3View commit details
Commits on Sep 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 37d5d2e - Browse repository at this point
Copy the full SHA 37d5d2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a79a4ea - Browse repository at this point
Copy the full SHA a79a4eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 011f754 - Browse repository at this point
Copy the full SHA 011f754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 992cc9f - Browse repository at this point
Copy the full SHA 992cc9fView commit details
Commits on Sep 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d7e52fb - Browse repository at this point
Copy the full SHA d7e52fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 29d3054 - Browse repository at this point
Copy the full SHA 29d3054View commit details
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.