Closed Bug 1498840 Opened 6 years ago Closed 6 years ago

Perma macOS/OSX hashing function failures, e.g. /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8-lone-surrogate.html | Should convert the script contents to UTF-8 before hashing

Categories

(Core :: DOM: Security, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla64
Tracking Status
geckoview62 --- unaffected
firefox-esr60 --- unaffected
firefox62 --- unaffected
firefox63 --- unaffected
firefox64 + verified

People

(Reporter: intermittent-bug-filer, Assigned: haik)

References

Details

(Keywords: intermittent-failure, Whiteboard: [domsecurity-intermittent])

Filed by: nerli [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=205266634&repo=try

https://queue.taskcluster.net/v1/task/PFEAWJaBSRe5eZQuk2Fpjg/runs/0/artifacts/public/logs/live_backing.log

07:17:24     INFO - TEST-START | /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8-lone-surrogate.html
07:17:24     INFO - 
07:17:24     INFO - TEST-UNEXPECTED-FAIL | /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8-lone-surrogate.html | Should convert the script contents to UTF-8 before hashing - assert_unreached: Should not have fired a spv Reached unreachable code
07:17:24     INFO - TEST-OK | /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8-lone-surrogate.html | took 182ms
07:17:24     INFO - PID 961 | 1539440244825	Marionette	INFO	Stopped listening on port 2828
07:17:24     INFO - PID 961 | JavaScript error: resource:///modules/AsyncTabSwitcher.jsm, line 1161: TypeError: tab.linkedBrowser.currentURI is undefined; can't access its "spec" property
07:17:25     INFO - Browser exited with return code 0
07:17:25     INFO - Closing logging queue
07:17:25     INFO - queue closed
07:17:25     INFO - Setting up ssl
07:17:25     INFO - certutil | 
07:17:25     INFO - certutil | 
07:17:25     INFO - certutil | 
07:17:25     INFO - Certificate Nickname                                         Trust Attributes
07:17:25     INFO -                                                              SSL,S/MIME,JAR/XPI
07:17:25     INFO - 
07:17:25     INFO - web-platform-tests                                           CT,, 
07:17:25     INFO - 
07:17:25     INFO - Application command: /Users/cltbld/tasks/task_1539429391/build/application/Firefox.app/Contents/MacOS/firefox --marionette about:blank -foreground -profile /var/folders/_t/yt59_r453lq8r521j3r5kkvh00000x/T/tmpYLaL8R.mozrunner
07:17:25     INFO - Starting runner
07:17:27     INFO - PID 969 | 1539440247516	Marionette	INFO	Listening on port 2828
07:17:27     INFO - TEST-START | /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8.html
07:17:28     INFO - 
07:17:28     INFO - TEST-UNEXPECTED-FAIL | /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8.html | Should convert the script contents to UTF-8 before hashing - latin micro sign - assert_unreached: Should not have fired a spv Reached unreachable code
07:17:28     INFO - 
07:17:28     INFO - TEST-UNEXPECTED-FAIL | /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8.html | Should convert the script contents to UTF-8 before hashing - greek small letter mu - assert_unreached: Should not have fired a spv Reached unreachable code
07:17:28     INFO - 
07:17:28     INFO - TEST-UNEXPECTED-FAIL | /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8.html | Should convert the script contents to UTF-8 before hashing - latin capital letter g with breve - assert_unreached: Should not have fired a spv Reached unreachable code
Blocks: 1497158
Flags: needinfo?(ckerschb)
Beta simulation with backout of bug 1431441 has the OS X jobs green: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c77cd8d317301c7b4542d27c3b5d815f084f37e6&group_state=expanded

First merge from central to beta is on Monday and this bug blocks it.
No longer blocks: 1497158
Flags: needinfo?(ckerschb) → needinfo?(haftandilian)
Summary: Intermittent /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8-lone-surrogate.html | Should convert the script contents to UTF-8 before hashing - assert_unreached: Should not have fired a spv Reached unreachable code → Perma macOS/OSX hashing function failures, e.g. /content-security-policy/script-src/hash-always-converted-to-utf-8/utf-8-lone-surrogate.html | Should convert the script contents to UTF-8 before hashing
I'll look into this.

Could you tell me how to run the wpt tests locally?

The changes in bug 1431441 are meant to only be enabled for now in Nightly, via the pref "security.sandbox.content.mac.earlyinit". Did the Beta build you tested have NIGHTLY_BUILD defined?
Assignee: nobody → haftandilian
Flags: needinfo?(haftandilian) → needinfo?(aryx.bugmail)
Thank you for looking into this.

No, beta builds have RELEASE_OR_BETA defined instead.

How to run wpt is described at https://developer.mozilla.org/en-US/docs/Mozilla/QA/web-platform-tests
Flags: needinfo?(aryx.bugmail)
@aryx, could you backout bug 1431441? I don't anticipate getting out a quick fix for for this problem.

Running "./mach wpt" locally, I didn't see the utf-8-lone-surrogate.html test ever get run. But I was able to reproduce other wpt failures with security.sandbox.content.mac.earlyinit=false on Nightly.
Flags: needinfo?(aryx.bugmail)
Whiteboard: [domsecurity-intermittent]
(In reply to Narcis Beleuzu [:NarcisB] from comment #8)
> :haik , I backed out Bug 1431441.
> Backout link:
> https://hg.mozilla.org/integration/autoland/rev/
> 556f31a5e2230d5d06c23b5316d2231a74713251

Closing this bug now that bug 1431441 is backed out.
Flags: needinfo?(aryx.bugmail)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Priority: P5 → P1
You need to log in before you can comment on or make changes to this bug.