diff options
| author | Rain <rain@sunshowers.io> | 2024-09-09 06:48:56 +0000 |
|---|---|---|
| committer | Rain <rain@sunshowers.io> | 2024-09-09 07:00:05 +0000 |
| commit | 54672ac392e3a4af640f59db01e93200b96c97d5 (patch) | |
| tree | dd361c8d4a86ac6c31767e043eba5d9edd3cfe6c /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | 085744b7ad8b227239bcee0a44cd78dcd0310ab9 (diff) | |
| download | rust-54672ac392e3a4af640f59db01e93200b96c97d5.tar.gz rust-54672ac392e3a4af640f59db01e93200b96c97d5.zip | |
[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 #128568. [1] https://github.com/sunshowers/stack-exhaust-test/
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
