Skip to content

Commit

Permalink
Merge pull request #319 from jeremy-rifkin/backward-cpp
Browse files Browse the repository at this point in the history
Add warning about backward::SignalHandling

Closes #319.
  • Loading branch information
bombela committed Nov 23, 2023
2 parents 16c247f + cc589a1 commit 51f0700
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,12 @@ this object doesn't do anything. It exposes only one method:
bool loaded() const // true if loaded with success
```

**Warning:** The registered signal handlers are not
[signal safe](https://www.man7.org/linux/man-pages/man7/signal-safety.7.html),
mostly because backward-cpp and the DWARF decoding libraries are using `malloc`.
In case a signal is raised while malloc is holding a lock, a deadlock will
occur.

### Trace object

To keep the memory footprint of a loaded `StackTrace` on the low-side, there a
Expand Down

0 comments on commit 51f0700

Please sign in to comment.