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

[illumos] enable SIGSEGV handler to detect stack overflows #130132

Merged
merged 1 commit into from
Sep 10, 2024

Commits on Sep 9, 2024

  1. [illumos] enable SIGSEGV handler to detect stack overflows

    Use the same code as Solaris. I couldn't find any tests regarding this, but I
    did test a stage0 build against my stack-exhaust-test binary [1]. Before:
    
    ```
    running with use_stacker = No, new_thread = false, make_large_local = false
    zsh: segmentation fault (core dumped)  cargo run
    ```
    
    After:
    
    ```
    running with use_stacker = No, new_thread = false, make_large_local = false
    
    thread 'main' has overflowed its stack
    fatal runtime error: stack overflow
    zsh: IOT instruction (core dumped)  cargo +stage0 run
    ```
    
    Fixes rust-lang#128568.
    
    [1] https://github.com/sunshowers/stack-exhaust-test/
    sunshowers committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    54672ac View commit details
    Browse the repository at this point in the history