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)
Testing
Mochitest
Tracking
(firefox36 fixed, firefox37 fixed, firefox38 fixed, firefox39 fixed)
RESOLVED
FIXED
mozilla39
People
(Reporter: mccr8, Assigned: chmanchester)
References
Details
(Keywords: sec-other)
Attachments
(1 file)
4.61 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•10 years ago
|
||
I've hidden this because there's currently a buffer overflow on trunk.
tracking-e10s:
--- → ?
Keywords: sec-other
Reporter | ||
Comment 2•10 years ago
|
||
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
Reporter | ||
Comment 3•10 years ago
|
||
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)
Assignee | ||
Comment 4•10 years ago
|
||
(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)
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
(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
Assignee | ||
Comment 8•10 years ago
|
||
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 9•10 years ago
|
||
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+
Assignee | ||
Comment 10•10 years ago
|
||
(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.
Assignee | ||
Comment 11•10 years ago
|
||
Can you help coordinate an appropriate time to land this given the buffer overflow on trunk?
Flags: needinfo?(continuation)
Comment 12•10 years ago
|
||
We backed out the patch that caused it, so land away.
Flags: needinfo?(continuation)
Assignee | ||
Comment 13•10 years ago
|
||
Reporter | ||
Comment 14•10 years ago
|
||
Thanks for the fix!
Comment 15•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 16•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/0ef4054f3ec1
https://hg.mozilla.org/releases/mozilla-beta/rev/1efc8c39543c
https://hg.mozilla.org/releases/mozilla-release/rev/6040c3cbd3fe
status-firefox36:
--- → fixed
status-firefox37:
--- → fixed
status-firefox38:
--- → fixed
status-firefox39:
--- → fixed
Reporter | ||
Updated•10 years ago
|
Group: core-security
Reporter | ||
Updated•10 years ago
|
tracking-e10s:
? → ---
Reporter | ||
Comment 17•10 years ago
|
||
This isn't e10s-specific.
You need to log in
before you can comment on or make changes to this bug.
Description
•