about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-22 12:00:48 +0100
committerGitHub <noreply@github.com>2025-03-22 12:00:48 +0100
commit92caac41ffe8c7a702d7db7d9e65d2fc0adc7dde (patch)
tree0b594e485ebda260b60914a6e208f666703d5675 /compiler/rustc_pattern_analysis/src/errors.rs
parentdb687889a5833381b8b02738a1af93a09a97ba16 (diff)
parent2a0cd874a977bbe49077ca0e46805ed6201d7d30 (diff)
downloadrust-92caac41ffe8c7a702d7db7d9e65d2fc0adc7dde.tar.gz
rust-92caac41ffe8c7a702d7db7d9e65d2fc0adc7dde.zip
Rollup merge of #138609 - Berrysoft:cygwin-stackoverflow, r=joboet
Add stack overflow handler for cygwin

The cygwin runtime handles stack overflow exception and converts it to `SIGSEGV`, but the passed `si_addr` is obtained from `ExceptionInformation[1]` which is actually an undocumented value when stack overflows. Thus I choose to use Windows API directly to register handler, just like how std does on native Windows. The code is basically copied from the Windows one.

Ref:
* https://github.com/cygwin/cygwin/blob/5ec497dc80bcb7ad78cc07bb919b2624b361f017/winsup/cygwin/exceptions.cc#L822-L823
* https://learn.microsoft.com/zh-cn/windows/win32/api/winnt/ns-winnt-exception_record
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions