Skip to content

Commit 51f0700

Browse files
committed
Merge pull request #319 from jeremy-rifkin/backward-cpp
Add warning about backward::SignalHandling Closes #319.
2 parents 16c247f + cc589a1 commit 51f0700

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@ this object doesn't do anything. It exposes only one method:
407407
bool loaded() const // true if loaded with success
408408
```
409409

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

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

0 commit comments

Comments
 (0)