Intermittent dom/xhr/tests/test_bug1752863.html | Got TERMINATE | this test already called finish!
Categories
(Core :: DOM: Networking, defect, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox100 | --- | wontfix |
firefox101 | --- | wontfix |
firefox102 | --- | wontfix |
firefox103 | --- | wontfix |
People
(Reporter: intermittent-bug-filer, Unassigned)
References
(Regression)
Details
(Keywords: intermittent-failure, regression, Whiteboard: [necko-triaged][stockwell disabled])
Attachments
(2 files)
Filed by: mlaza [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=367573572&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RsLRidr5RY-BXxhNz-fVNg/runs/0/artifacts/public/logs/live_backing.log
[task 2022-02-11T15:02:46.266Z] 15:02:46 INFO - TEST-START | dom/xhr/tests/test_bug1752863.html
[task 2022-02-11T15:02:46.631Z] 15:02:46 INFO - GECKO(7376) | JavaScript error: http://mochi.test:8888/tests/dom/xhr/tests/test_bug1752863_worker.js, line 9: InvalidStateError: XMLHttpRequest has an invalid context.
[task 2022-02-11T15:02:46.634Z] 15:02:46 INFO - GECKO(7376) | MEMORY STAT | vsize 2496MB | residentFast 84MB | heapAllocated 5MB
[task 2022-02-11T15:02:46.637Z] 15:02:46 INFO - TEST-INFO | started process screentopng
[task 2022-02-11T15:02:47.496Z] 15:02:47 INFO - TEST-INFO | screentopng: exit 0
[task 2022-02-11T15:02:47.496Z] 15:02:47 INFO - Buffered messages logged at 15:02:46
[task 2022-02-11T15:02:47.496Z] 15:02:47 INFO - TEST-PASS | dom/xhr/tests/test_bug1752863.html | Got DOMException
[task 2022-02-11T15:02:47.496Z] 15:02:47 INFO - Buffered messages finished
[task 2022-02-11T15:02:47.497Z] 15:02:47 INFO - TEST-UNEXPECTED-FAIL | dom/xhr/tests/test_bug1752863.html | Got TERMINATE
[task 2022-02-11T15:02:47.497Z] 15:02:47 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:417:16
[task 2022-02-11T15:02:47.497Z] 15:02:47 INFO - worker.onmessage@dom/xhr/tests/test_bug1752863.html?currentTestURL=dom%2Fxhr%2Ftests%2Ftest_bug1752863.html&closeWhenDone=1&showTestReport=false&expected=pass:18:11
[task 2022-02-11T15:02:47.499Z] 15:02:47 ERROR - TEST-UNEXPECTED-FAIL | SimpleTest | this test already called finish!
[task 2022-02-11T15:02:47.501Z] 15:02:47 INFO - TEST-UNEXPECTED-ERROR | dom/xhr/tests/test_bug1752863.html | called finish() multiple times
[task 2022-02-11T15:02:47.502Z] 15:02:47 INFO - TEST-INFO took 374ms
[task 2022-02-11T15:02:47.502Z] 15:02:47 INFO - TEST-OK | dom/xhr/tests/test_bug1752863.html
[task 2022-02-11T15:02:47.504Z] 15:02:47 INFO - TEST-START | dom/xhr/tests/test_event_listener_leaks.html
Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 14•2 years ago
|
||
There have been 44 total failures in the last 7 days, recent failure log.
Affected platforms are:
- linux1804-64-qr
- linux1804-64-shippable-qr
Updated•2 years ago
|
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 19•2 years ago
|
||
There are 61 total failures in the last 7 days on
- linux1804-64-qr opt
- linux1804-64-shippable-qr opt
Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=377250408&repo=autoland&lineNumber=10430
[task 2022-05-07T15:49:18.954Z] 15:49:18 INFO - TEST-START | dom/xhr/tests/test_bug1752863.html
[task 2022-05-07T15:49:19.069Z] 15:49:19 INFO - GECKO(18780) | MEMORY STAT | vsize 2501MB | residentFast 114MB | heapAllocated 9MB
[task 2022-05-07T15:49:19.071Z] 15:49:19 INFO - GECKO(18780) | JavaScript error: http://mochi.test:8888/tests/dom/xhr/tests/test_bug1752863_worker.js, line 9: InvalidStateError: XMLHttpRequest has an invalid context.
[task 2022-05-07T15:49:19.073Z] 15:49:19 INFO - TEST-INFO | started process screentopng
[task 2022-05-07T15:49:19.681Z] 15:49:19 INFO - TEST-INFO | screentopng: exit 0
[task 2022-05-07T15:49:19.681Z] 15:49:19 INFO - Buffered messages logged at 15:49:19
[task 2022-05-07T15:49:19.681Z] 15:49:19 INFO - TEST-PASS | dom/xhr/tests/test_bug1752863.html | Got DOMException
[task 2022-05-07T15:49:19.682Z] 15:49:19 INFO - Buffered messages finished
[task 2022-05-07T15:49:19.682Z] 15:49:19 INFO - TEST-UNEXPECTED-FAIL | dom/xhr/tests/test_bug1752863.html | Got TERMINATE
[task 2022-05-07T15:49:19.682Z] 15:49:19 INFO - SimpleTest.ok@SimpleTest/SimpleTest.js:417:16
[task 2022-05-07T15:49:19.682Z] 15:49:19 INFO - worker.onmessage@dom/xhr/tests/test_bug1752863.html:18:11
[task 2022-05-07T15:49:19.684Z] 15:49:19 ERROR - TEST-UNEXPECTED-FAIL | SimpleTest | this test already called finish!
[task 2022-05-07T15:49:19.684Z] 15:49:19 INFO - TEST-UNEXPECTED-ERROR | dom/xhr/tests/test_bug1752863.html | called finish() multiple times
[task 2022-05-07T15:49:19.684Z] 15:49:19 INFO - TEST-INFO took 126ms
[task 2022-05-07T15:49:19.686Z] 15:49:19 INFO - TEST-OK | dom/xhr/tests/test_bug1752863.html
Dragana, can you please take a look?
Comment hidden (Intermittent Failures Robot) |
Comment 21•2 years ago
|
||
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 23•2 years ago
|
||
Pushed by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20113634e429 disable test_bug1752863.html on Linux_64_opt for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Updated•2 years ago
|
Comment 24•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 27•2 years ago
|
||
Based on the failed log below, it looks like this line is executed after throw err in test_bug1752863_worker.js
.
[task 2022-05-07T15:49:19.681Z] 15:49:19 INFO - TEST-PASS | dom/xhr/tests/test_bug1752863.html | Got DOMException
[task 2022-05-07T15:49:19.682Z] 15:49:19 INFO - Buffered messages finished
[task 2022-05-07T15:49:19.682Z] 15:49:19 INFO - TEST-UNEXPECTED-FAIL | dom/xhr/tests/test_bug1752863.html | Got TERMINATE
Not sure if this is an expected racing behavior or not, but I think this bug is more related to worker thread than XHR
.
Jens, could you find someone to have a look?
Thanks.
Comment 28•2 years ago
•
|
||
This seems to be initially regressed by bug 1754411, though the recent spike must have other reasons.
There might be a hint in this comment.
There might also be some connection to what we see in bug 1769913, in a sense that having postMessage
to the parent go through the throtteled event queue might foster situations like this and we simply cannot be sure that the entire test is going to be executed as part of the same C++ stack? And some other change just influenced the probability of delaying the dispatch?
Actually the potential execution delay of the postMessage
itself should not matter, it is just the "loadstart"
event handler we expect to be part of the same stack.
Comment 29•2 years ago
|
||
Set release status flags based on info from the regressing bug 1754411
Comment 30•2 years ago
|
||
Comment 31•2 years ago
|
||
Right before this spiked up bug 1766844 landed. Just a wild guess, but it might be related?
In any case it seems we cannot rely on being always executed within the same microtask anymore.
Updated•2 years ago
|
Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
Comment 33•2 years ago
|
||
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c36ca41e04d4 Harden test_bug1752863.html against loadstart event queuing. r=asuth
Comment 34•2 years ago
|
||
bugherder |
Comment 35•2 years ago
|
||
Set release status flags based on info from the regressing bug 1754411
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•