For deadlock detection—especially for new patterns that are not currently captured by cutracer—we should consider adding a timeout to automatically terminate the process if it hangs. This would serve as an additional deadlock autokill mechanism.
Similarly, we could implement a trace file size limit. For example, if the trace file exceeds 100MB (compressed with zstd), the process would be automatically killed. This is also intended as a deadlock autokill mechanism.