# crashes: Avoid crash handler on detached threads \(\#40883\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/68707ffc74be29fd64760d01f7cfea175fa18c31)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 68707ffc74be29fd64760d01f7cfea175fa18c31

Requested commit: 68707ffc74be29fd64760d01f7cfea175fa18c31

Commit: 68707ffc74be29fd64760d01f7cfea175fa18c31

Tree: 4cc2cf95da5c33159e1d78011f42da74a7d58a6b

Author: Nia

Committer: GitHub

## Message

```
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>
```

## Parents

- [1ce9a85a1a374a6de7eef6137d35ae8e9568b0c0](https://git.cafe/gitcafe/zed/commit/1ce9a85a1a374a6de7eef6137d35ae8e9568b0c0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/68707ffc74be29fd64760d01f7cfea175fa18c31?format=markdown)
