Skip to content
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
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Sep 6, 2024

  1. 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
    adambenhassen committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    cbc1cd8 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. update

    adambenhassen committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    02fa1b3 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. update

    adambenhassen committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    37d5d2e View commit details
    Browse the repository at this point in the history
  2. update

    adambenhassen committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    a79a4ea View commit details
    Browse the repository at this point in the history
  3. update

    adambenhassen committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    011f754 View commit details
    Browse the repository at this point in the history
  4. update

    adambenhassen committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    992cc9f View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. update

    adambenhassen committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    d7e52fb View commit details
    Browse the repository at this point in the history
  2. update

    adambenhassen committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    29d3054 View commit details
    Browse the repository at this point in the history