# Bring back stack trace printing on ARM Darwin · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/843d91e75d166ac41d7c9b27b86b236f14865e31)

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

Visibility: public

Requested revision: 843d91e75d166ac41d7c9b27b86b236f14865e31

Requested commit: 843d91e75d166ac41d7c9b27b86b236f14865e31

Commit: 843d91e75d166ac41d7c9b27b86b236f14865e31

Tree: de1c2ec0ce1953b03b881726f7b74dd17b62b146

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Bring back stack trace printing on ARM Darwin

This temporary patch fixes a segfault caused by miscompilation
by the LLD when generating stubs for initialization of thread local
storage. We effectively bypass TLS in the default panic handler
so that no segfault is generated and the stack trace is correctly
reported back to the user.

Note that, this is linked directly to a bigger issue with LLD
ziglang/zig#7527 and when resolved, we only need to remove the
`comptime` code path introduced with this patch to use the default
panic handler that relies on TLS.

Co-authored-by: Andrew Kelley <andrew@ziglang.org>

```

## Parents

- [bea791b63992d57501c0f878408923806650069b](https://git.cafe/gitcafe/zig/commit/bea791b63992d57501c0f878408923806650069b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/843d91e75d166ac41d7c9b27b86b236f14865e31?format=markdown)
