trailofbits / polytracker

An LLVM-based instrumentation tool for universal taint tracking, dataflow analysis, and tracing.
Apache License 2.0
532 stars 46 forks source link

Create handler for SIGTERM to exit cleanly #78

Open carsonharmon opened 4 years ago

carsonharmon commented 4 years ago

Sometimes when parsing a large file, or running a file through a complex parser, it might use up lots of resources and memories.

Create a signal handler to handle SIGTERM to stop tracing/execution and to dump results for processing.

ESultanik commented 2 years ago

This would likely require instrumenting libc.

We need to investigate to see if this is required to ensure that our current at exit handler gets run cleanly. If not, this is probably not necessary.