Closed Bug 1755010 Opened 2 years ago Closed 2 years ago

Intermittent dom/xhr/tests/test_bug1752863.html | Got TERMINATE | this test already called finish!

Categories

(Core :: DOM: Networking, defect, P5)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1777096
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
Summary: Intermittent [tier 2] dom/xhr/tests/test_bug1752863.html | Got TERMINATE | this test already called finish! → Intermittent dom/xhr/tests/test_bug1752863.html | Got TERMINATE | this test already called finish!
Whiteboard: [necko-triaged]

There have been 44 total failures in the last 7 days, recent failure log.
Affected platforms are:

  • linux1804-64-qr
  • linux1804-64-shippable-qr
Whiteboard: [necko-triaged] → [necko-triaged][stockwell needswork: owner]
Whiteboard: [necko-triaged][stockwell needswork: owner] → [necko-triaged][stockwell needswork:owner]

There are 61 total failures in the last 7 days on

[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?

Flags: needinfo?(dd.mozilla)
Assignee: nobody → abutkovits
Status: NEW → ASSIGNED
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
Assignee: abutkovits → nobody
Status: ASSIGNED → NEW
Whiteboard: [necko-triaged][stockwell disable-recommended] → [necko-triaged][stockwell disabled]
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Assignee: nobody → abutkovits
Assignee: abutkovits → nobody
Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---
Target Milestone: 102 Branch → ---

I'll take this.

Flags: needinfo?(dd.mozilla) → needinfo?(kershaw)

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.

Flags: needinfo?(kershaw) → needinfo?(jstutte)

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.

Flags: needinfo?(jstutte) → needinfo?(bugmail)
Regressed by: 1754411

Set release status flags based on info from the regressing bug 1754411

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.

Flags: needinfo?(bugmail)
Pushed by jstutte@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c36ca41e04d4
Harden test_bug1752863.html against loadstart event queuing. r=asuth

Set release status flags based on info from the regressing bug 1754411

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: