# std.debug: handle static library paths correctly when reading SelfInfo · gitcafe/zig

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

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

Visibility: public

Requested revision: 0b9d6ad04246a3aa87ed63a699a25910020bff48

Requested commit: 0b9d6ad04246a3aa87ed63a699a25910020bff48

Commit: 0b9d6ad04246a3aa87ed63a699a25910020bff48

Tree: caf3cb0a88ca46319e37041bb3336b56c0501282

Author: Loris Cro

Committer: Loris Cro

## Message

```
std.debug: handle static library paths correctly when reading SelfInfo

On macOS ofile entries will not be clean file paths when the entry points
at a static archive, like `libfoo.a(libfoo.a.o)` for example.

Previously the code for loading debug info would fail resulting in
missing frames in stack traces.

TODO: fix memory leak, add test case

```

## Parents

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

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