Open Bug 2088062 Opened 27 days ago Updated 27 days ago

Mochitest ignores the main process being killed in the middle of a test when no minidump is written

Categories

(Testing :: Mochitest, defect)

defect

Tracking

(Not tracked)

People

(Reporter: marco, Unassigned)

References

Details

On sanitizer builds the crash reporter does not write minidumps, so when the parent process aborts in the middle of a test, mochitest does not report any failure: no test_end is logged for the running test, the browser is restarted for the remaining tests, and the task can end up green.

Examples, both test-linux2404-64-tsan/opt-mochitest-browser-chrome-swr-51 on mozilla-central: tasks XVMW0kUISqWEAdE1coVt9A and c5GUDYKxRB-hAemO_dK78A. In both, a ThreadSanitizer data race in PK11_InitToken (bug 2080357) aborted the parent process (TSan runs with halt_on_error=1:abort_on_error=1) while browser/components/firefoxview/tests/browser/browser_syncedtabs_errors_firefoxview.js was running. The log shows the TSan report followed by TEST-INFO | Main app process: killed by SIGIOT, then the browser is restarted and the next test starts. There is no TEST-UNEXPECTED-* line and no test_end for browser_syncedtabs_errors_firefoxview.js, and both tasks are green. The same race makes xpcshell tasks fail with "xpcshell return code: -6".

In runApp in testing/mochitest/runtests.py, a test_end is only sent after a non-zero exit status when crashAsPass is set or when mozcrash found a minidump (or zombie processes were found). It would be good to report the running test as failed (or crashed) when the main process exits abnormally in the middle of a test even when no minidump is found.

See Also: → 2088064
You need to log in before you can comment on or make changes to this bug.