Replace unwind-sys with backtrace crate on Linux (#37728)

This PR removes `unwind-sys` usage from background_hang_monitor on
Linux, replacing it with the [backtrace
crate](https://crates.io/crates/backtrace).

Testing: `hang_monitor-tests.rs` still pass after the change (on Ubuntu
24.04).
Fixes: https://github.com/servo/servo/issues/35063

---------

Signed-off-by: CarePackage17 <5157010+CarePackage17@users.noreply.github.com>
This commit is contained in:
CarePackage17 2025-06-27 14:20:10 +02:00 committed by GitHub
parent be1ebb8ad4
commit a93d977020
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 85 deletions

View file

@ -28,7 +28,6 @@ mach2 = { version = "0.4", optional = true }
[target.'cfg(all(target_os = "linux", not(any(target_arch = "arm", target_arch = "aarch64", target_env = "ohos", target_env = "musl"))))'.dependencies]
nix = { workspace = true, features = ["signal"], optional = true }
unwind-sys = { version = "0.1.4", optional = true }
[features]
sampler = ["unwind-sys", "mach2", "nix"]
sampler = ["mach2", "nix"]