Closed
Bug 1346269
Opened 8 years ago
Closed 8 years ago
Crash in js::jit::AutoFlushICache::AutoFlushICache
Categories
(Core :: JavaScript Engine: JIT, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: jseward, Assigned: luke)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
16.36 KB,
patch
|
bbouvier
:
review+
jcristau
:
approval-mozilla-aurora+
jcristau
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-02ae372f-45d3-46ac-8b4b-e32cd2170309.
=============================================================
This is the #2 crash in the Android nightly of 20170309110217.
Reporter | ||
Updated•8 years ago
|
Flags: needinfo?(jdemooij)
Comment 1•8 years ago
|
||
wasm::DeserializeModule on the stack.
![]() |
Assignee | |
Comment 2•8 years ago
|
||
Ah, so we're deserializing a module off the main thread and the build-id mismatches so we're recompiling, and deep inside someone is assuming we're on a JSContext's main thread so TlsContext.get() is non-null, but we're on some IDB thread so it is indeed null. The whole point of this AFC is just to suppress icache flushing; let's see if there's a better way to do that that doesn't involve a JSContext*.
![]() |
Assignee | |
Comment 3•8 years ago
|
||
The simplest solution I found is just to make the suppression explicit as a parameter.
Updated•8 years ago
|
Flags: needinfo?(jdemooij)
Comment 4•8 years ago
|
||
Comment on attachment 8846059 [details] [diff] [review]
fix-afc
Review of attachment 8846059 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks.
Attachment #8846059 -
Flags: review?(bbouvier) → review+
Pushed by lwagner@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/195ba401a2c6
Baldr: remove dependency on TlsContext in ModuleGenerator::finish (r=bbouvier)
Updated•8 years ago
|
Priority: -- → P1
Comment 6•8 years ago
|
||
What is the version this was introduced? We should backport this.
status-firefox55:
--- → affected
Updated•8 years ago
|
Comment 7•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment 8•8 years ago
|
||
crash-stats shows crashes on 52 for this (all Android, though). Given that this patch touches non-ARM code as well, I'm wondering if it's worth backporting to ESR52 as well. There are some Tier 3 ARM & Android builds off that branch IIRC.
status-firefox-esr52:
--- → affected
Comment 9•8 years ago
|
||
esr52 hasn't shipped wasm (bug 1342440), so no need to backport there. Other platforms are worth it, though. Thanks!
Flags: needinfo?(luke)
![]() |
Assignee | |
Comment 10•8 years ago
|
||
Comment on attachment 8846059 [details] [diff] [review]
fix-afc
Approval Request Comment
[Feature/Bug causing the regression]: 1342060
[User impact if declined]: crash in FF Android when deserializing wasm module after build-id change
[Is this code covered by automated tests?]: yes
[Has the fix been verified in Nightly?]: yes
[Needs manual test from QE? If yes, steps to reproduce]: no
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: no
[Why is the change risky/not risky?]: pretty simple change, just adding/propagating an additional parameter
Flags: needinfo?(luke)
Attachment #8846059 -
Flags: approval-mozilla-beta?
Attachment #8846059 -
Flags: approval-mozilla-aurora?
Updated•8 years ago
|
Comment 11•8 years ago
|
||
Comment on attachment 8846059 [details] [diff] [review]
fix-afc
fix a crash in wasm, beta53+, aurora54+
Attachment #8846059 -
Flags: approval-mozilla-beta?
Attachment #8846059 -
Flags: approval-mozilla-beta+
Attachment #8846059 -
Flags: approval-mozilla-aurora?
Attachment #8846059 -
Flags: approval-mozilla-aurora+
Comment 12•8 years ago
|
||
Comment on attachment 8846059 [details] [diff] [review]
fix-afc
Fix a crash. Beta53+ & Aurora54+.
Comment 13•8 years ago
|
||
bugherder uplift |
Comment 14•8 years ago
|
||
bugherder uplift |
Comment 15•8 years ago
|
||
Setting qe-verify- based on Luke's assessment on manual testing needs (see Comment 10) and the fact that this fix has automated coverage.
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•