Closed Bug 1765956 Opened 3 years ago Closed 2 years ago

Intermittent toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5

Categories

(WebExtensions :: General, defect, P5)

defect

Tracking

(firefox-esr91 unaffected, firefox99 unaffected, firefox100 unaffected, firefox101 wontfix)

RESOLVED INCOMPLETE
Tracking Status
firefox-esr91 --- unaffected
firefox99 --- unaffected
firefox100 --- unaffected
firefox101 --- wontfix

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Filed by: nbeleuzu [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=375430287&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ZbRpBLktRointUtKUMsrpw/runs/0/artifacts/public/logs/live_backing.log


[task 2022-04-22T08:58:48.069Z] 08:58:48     INFO -  TEST-START | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_alarms_periodic.js
[task 2022-04-22T08:58:52.137Z] 08:58:52  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_alarms_periodic.js | xpcshell return code: -5
[task 2022-04-22T08:58:52.137Z] 08:58:52     INFO -  TEST-INFO took 4063ms
[task 2022-04-22T08:58:52.137Z] 08:58:52     INFO -  >>>>>>>
[task 2022-04-22T08:58:52.138Z] 08:58:52     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-04-22T08:58:52.138Z] 08:58:52     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2022-04-22T08:58:52.139Z] 08:58:52     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2022-04-22T08:58:52.139Z] 08:58:52     INFO -  running event loop
[task 2022-04-22T08:58:52.139Z] 08:58:52     INFO -  xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_alarms_periodic.js | Starting setup check_remote
[task 2022-04-22T08:58:52.139Z] 08:58:52     INFO -  (xpcshell/head.js) | test check_remote pending (2)

Summary: Intermittent [Tier 2] toolkit/components/extensions/test/xpcshell/test_ext_alarms_periodic.js | xpcshell return code: -5 → Intermittent [Tier 2] toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5
See Also: → 1766016
Flags: needinfo?(jstutte)
Regressed by: 1764251
Summary: Intermittent [Tier 2] toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5 → Intermittent [tier 2] toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5

From what I can see clicking on some reports, it is always test_ext_alarms.js failing here.

In general, the patch D143711 did change the lifecycle of processes whose start might race with application shutdown: previously we would just continue shutdown and the child might start to run normally, now we block our shutdown until the launch has been completed but then tear down the child immediately. That means, that if this test relies on operations in a child happening even after shutdown, those might not have been executed at all.

:kmag, you touched that test quite a lot, it seems, maybe you have an idea?

Flags: needinfo?(jstutte) → needinfo?(kmaglione+bmo)
Summary: Intermittent [tier 2] toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5 → Intermittent [tier 2] toolkit/components/extensions/test/xpcshell/test_ext_alarms.js | xpcshell return code: -5
Has Regression Range: --- → yes

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

I don't know how much it has to do with the contents of the test. It seems to be failing because of a BadWindow error, which shouldn't really have anything to do with that API.

In any case, I'm not working on this code anymore. Sorry.

Flags: needinfo?(kmaglione+bmo)

Thanks!

First of all: My signature change was wrong, there are some different tests failing, all I saw are from the same series test_ext_alarms_* but not the same single test.

Secondly thanks for pointing me to that piece of the log:

[task 2022-04-22T09:07:12.505Z] 09:07:12     INFO -  "CONSOLE_MESSAGE: (info) 1650618430091	addons.webextension.{06e338f0-0b5b-4493-a8d2-5459efc67d50}	WARN	Loading extension '{06e338f0-0b5b-4493-a8d2-5459efc67d50}': Event pages are not currently supported."
[task 2022-04-22T09:07:12.505Z] 09:07:12     INFO -  PID 3766 | (xpcshell:3766): Gdk-ERROR **: 09:07:11.467: The program 'xpcshell' received an X Window System error.
[task 2022-04-22T09:07:12.505Z] 09:07:12     INFO -  PID 3766 | This probably reflects a bug in the program.
[task 2022-04-22T09:07:12.505Z] 09:07:12     INFO -  PID 3766 | The error was 'BadWindow (invalid Window parameter)'.
[task 2022-04-22T09:07:12.505Z] 09:07:12     INFO -  PID 3766 |   (Details: serial 327 error_code 3 request_code 18 (core protocol) minor_code 0)
[task 2022-04-22T09:07:12.506Z] 09:07:12     INFO -  PID 3766 |   (Note to programmers: normally, X errors are reported asynchronously;
[task 2022-04-22T09:07:12.506Z] 09:07:12     INFO -  PID 3766 |    that is, you will receive the error a while after causing it.
[task 2022-04-22T09:07:12.507Z] 09:07:12     INFO -  PID 3766 |    To debug your program, run it with the GDK_SYNCHRONIZE environment
[task 2022-04-22T09:07:12.507Z] 09:07:12     INFO -  PID 3766 |    variable to change this behavior. You can then get a meaningful
[task 2022-04-22T09:07:12.507Z] 09:07:12     INFO -  PID 3766 |    backtrace from your debugger if you break on the gdk_x_error() function.)
[task 2022-04-22T09:07:12.508Z] 09:07:12     INFO -  PID 3766 | Exiting due to channel error.
[task 2022-04-22T09:07:12.508Z] 09:07:12     INFO -  PID 3766 | Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=1.10351)

Unfortunately there is no real stack trace that could point us at where this window id comes from.

Finally it seems that the frequency already dropped? Maybe it is enough to just observer this another while.

Summary: Intermittent [tier 2] toolkit/components/extensions/test/xpcshell/test_ext_alarms.js | xpcshell return code: -5 → Intermittent [tier 2] toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Summary: Intermittent [tier 2] toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5 → Intermittent toolkit/components/extensions/test/xpcshell/<test>.js | xpcshell return code: -5
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.