crashes: Avoid crash handler on detached threads (#40883)

Set a TLS bit to skip invoking the crash handler when a detached thread
panics.

cc @P1n3appl3 - is this at odds with what we need the crash handler to
do?

May close #39289, cannot repro without a nightly build

Release Notes:

- Fixed extension panics crashing Zed on Linux

Co-authored-by: dino <dinojoaocosta@gmail.com>
This commit is contained in:
Nia
2025-10-23 21:04:22 +00:00
committed by GitHub
co-authored by dino
parent 1ce9a85a1a
commit 68707ffc74
5 changed files with 31 additions and 12 deletions
Generated
+1
View File
@@ -4132,6 +4132,7 @@ dependencies = [
"bincode 1.3.3",
"cfg-if",
"crash-handler",
"extension_host",
"log",
"mach2 0.5.0",
"minidumper",