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

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

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

Visibility: public

Requested revision: 3e2ddbfdd7e43788de51b3166e3dbc523c6b7b88

Requested commit: 3e2ddbfdd7e43788de51b3166e3dbc523c6b7b88

Commit: 3e2ddbfdd7e43788de51b3166e3dbc523c6b7b88

Tree: c07f67a76f22a08bb453d4ae7e7bb45cf07e1bf7

Author: Jakub Konka

Committer: Andrew Kelley

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

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

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