DynamoRIO / DynamoRIO/dynamorio
New tool idea: Signal Handler Checker
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 31
Description
Greetings,
I don't know if dynamorio already has this, but did you ever consider adding a signal handler checker functionality? That means it detects whether a called signal handler registered with, say,
sighandler_t signal(int signum, sighandler_t handler);
does things it shouldn't like
- If a signal handler calls c library functions that are not considered async signal safe.
- If a signal handler leaves registers/memory in an invalid state when it hands back contol to the original thread.
Of course, this is mostly a Linux thing. It would probably help tracking certain errors that are otherwise hard to find due to the non linear program flow.
Contributor guide
Assessment
This issue has not been assessed yet.