Closed Bug 1145444 Opened 10 years ago Closed 10 years ago

Buffer overflows in ASan bc e10s tests don't turn the tree orange

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(firefox36 fixed, firefox37 fixed, firefox38 fixed, firefox39 fixed)

RESOLVED FIXED
mozilla39
Tracking Status
firefox36 --- fixed
firefox37 --- fixed
firefox38 --- fixed
firefox39 --- fixed

People

(Reporter: mccr8, Assigned: chmanchester)

References

Details

(Keywords: sec-other)

Attachments

(1 file)

See bug 1145443. For some reason, this isn't turning the tree orange, which is bad. Something about how ASan is reporting errors is not being detected by Tree Herder.
I've hidden this because there's currently a buffer overflow on trunk.
tracking-e10s: --- → ?
Keywords: sec-other
This is particularly weird because it does output UNEXPECTED-FAIL: SUMMARY: AddressSanitizer: heap-buffer-overflow /builds/slave/m-in-l64-asan-0000000000000000/build/src/gfx/2d/convolver.h:121 operator-> [Child 2984] ###!!! ABORT: Aborting on channel error.: file /builds/slave/m-in-l64-asan-0000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 1597 [Child 2984] ###!!! ABORT: Aborting on channel error.: file /builds/slave/m-in-l64-asan-0000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 1597 SUMMARY: AddressSanitizer: SEGV /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc_abort.cpp:33 mozalloc_abort(char const*) 125 ERROR TEST-UNEXPECTED-FAIL | dom/html/test/browser_bug592641.js | application terminated with exit code 1
Is this something you could look at Chris? This is probably something like bug 1044206. We're emitting the TEST-UNEXPECTED-FAIL here and somehow Mozharness or whatever doesn't realize it is an error: http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#1804
Flags: needinfo?(cmanchester)
(In reply to Andrew McCreight [:mccr8] from comment #3) > Is this something you could look at Chris? This is probably something like > bug 1044206. > > We're emitting the TEST-UNEXPECTED-FAIL here and somehow Mozharness or > whatever doesn't realize it is an error: > > http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests. > py#1804 Sure.
Assignee: nobody → cmanchester
Flags: needinfo?(cmanchester)
(In reply to Chris Manchester [:chmanchester] from comment #5) > https://treeherder.mozilla.org/#/jobs?repo=try&revision=6f812713f903 Ok, that worked. Here's a try run with all the mochitests in case of unintended effects elsewhere: https://treeherder.mozilla.org/#/jobs?repo=try&revision=68db34c6633c
Can we add a test for this?
Flags: in-testsuite?
Attached patch Patch with a fixSplinter Review
This patch probably looks backwards. The comment around the MochitestFormatter in runtests.py explains the situation: we need to dump "TEST-UNEXPECTED-" with no line prefix in order to alert mozharness when something other than a test failure needs to turn a job orange, but at some point it was requested that "ERROR" get pre-pended so doing "log.error" without "TEST-UNEXPECTED-" would get highlighted by a regex in TBPL. However, this isn't usually the only thing that would turn a job orange in failure scenarios like these: when the application ends abruptly due to a crash that gets reported through mozcrash we get a "PROCESS-CRASH" line, or the harness process provides a non-zero exit code, or no summary text is found in the log, any one of which is enough to turn the job orange.
Attachment #8580834 - Flags: review?(jmaher)
Comment on attachment 8580834 [details] [diff] [review] Patch with a fix Review of attachment 8580834 [details] [diff] [review]: ----------------------------------------------------------------- this patch looks great. Is there a chance that we could have a way to verify this? a unit test perhaps? I suspect the real way to test this is outside the scope of mochitests.
Attachment #8580834 - Flags: review?(jmaher) → review+
(In reply to Joel Maher (:jmaher) from comment #9) > Comment on attachment 8580834 [details] [diff] [review] > Patch with a fix > > Review of attachment 8580834 [details] [diff] [review]: > ----------------------------------------------------------------- > > this patch looks great. Is there a chance that we could have a way to > verify this? a unit test perhaps? I suspect the real way to test this is > outside the scope of mochitests. I think this would take something like standing up selftests to run on every checkin and all the platforms we care about and then writing tests that get the browser to do all the things I mentioned in comment 8.
Can you help coordinate an appropriate time to land this given the buffer overflow on trunk?
Flags: needinfo?(continuation)
We backed out the patch that caused it, so land away.
Flags: needinfo?(continuation)
Thanks for the fix!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Group: core-security
This isn't e10s-specific.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: