Ensure test infrastructure picks up segfaults and other exceptional exits from python test process
| Bugzilla Link | 20258 |
| Resolution | FIXED |
| Resolved on | Aug 07, 2019 18:18 |
| Version | unspecified |
| OS | All |
| Reporter | LLVM Bugzilla Contributor |
| CC | @emaste,@JDevlieghere |
Extended Description
When the python process running the python unittest seg faults or exits due to other exceptional process condition, the test framework doesn't always generate a log and leaves no other trace of what happened.
Do something to make it explicitly obvious that the process terminated abnormally. Maybe a Crashed-*.log file, even if it had no content due to the crashed test runner.
mentioned in issue llvm/llvm-bugzilla-archive#21897
lit detects crashes and marks tests as unresolved.
*** Bug llvm/llvm-bugzilla-archive#21897 has been marked as a duplicate of this bug. ***
Note if the system does have core file generation enabled (e.g. ulimit -c unlimited on Linux), you do get cores for the python process. However, nothing tells you they are there unless you look. If you don't have those set, then the only way you really know is if you run the test case by itself, and get the normal shell output that tells you the process terminated abnormally.