# Remove incorrect assertion in readMachODebugInfo panicking during panic · gitcafe/zig

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

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

Visibility: public

Requested revision: 0214d2d745c08e4f0a3fbc80cb8393ad295b343c

Requested commit: 0214d2d745c08e4f0a3fbc80cb8393ad295b343c

Commit: 0214d2d745c08e4f0a3fbc80cb8393ad295b343c

Tree: 08d5d152b72eea69001287892ff31af7770321d3

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Remove incorrect assertion in readMachODebugInfo panicking during panic

This fixes a class of bugs on macOS where a segfault happening in
a loaded dylib with no debug info would cause a panic in the panic
handler instead of simply noting that the dylib has no valid debug
info via `error.MissingDebugInfo`. An example could be code linking
some system dylib and causing some routine to segfault on say invalid
pointer value, which should normally cause Zig to print an incomplete
stack trace anchored at the currently loaded image and backtrace all
the way back to the Zig binary with valid debug info. Currently, in
a situation like this we would trigger a panic within a panic.

```

## Parents

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

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