Closed
Bug 1457475
Opened 7 years ago
Closed 7 years ago
Crash in js::GlobalHelperThreadState::finishParseTask
Categories
(Core :: JavaScript Engine, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | unaffected |
firefox59 | --- | unaffected |
firefox60 | --- | unaffected |
firefox61 | + | verified |
People
(Reporter: marcia, Assigned: jandem)
References
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
(deleted),
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-a38d9b33-58e6-47c9-83d1-6f6100180427.
=============================================================
These Mac and Windows crashes started showing up using 20180426220144: https://bit.ly/2Hu9BgZ. Not sure if they are expected due to Bug 1452114? ni on :jandem
Top 10 frames of crashing thread:
0 xul.dll js::GlobalHelperThreadState::finishParseTask js/src/vm/HelperThreads.cpp:1709
1 xul.dll mozilla::ScriptPreloader::MaybeFinishOffThreadDecode js/xpconnect/loader/ScriptPreloader.cpp:980
2 xul.dll mozilla::ScriptPreloader::WaitForCachedScript js/xpconnect/loader/ScriptPreloader.cpp:863
3 xul.dll mozilla::ScriptPreloader::GetCachedScript js/xpconnect/loader/ScriptPreloader.cpp:849
4 xul.dll mozJSComponentLoader::ObjectForLocation js/xpconnect/loader/mozJSComponentLoader.cpp:826
5 xul.dll mozJSComponentLoader::LoadModule js/xpconnect/loader/mozJSComponentLoader.cpp:442
6 xul.dll nsComponentManagerImpl::KnownModule::Load xpcom/components/nsComponentManager.cpp:717
7 xul.dll nsFactoryEntry::GetFactory xpcom/components/nsComponentManager.cpp:1748
8 xul.dll nsComponentManagerImpl::CreateInstanceByContractID xpcom/components/nsComponentManager.cpp:1046
9 xul.dll nsComponentManagerImpl::GetServiceByContractID xpcom/components/nsComponentManager.cpp:1409
=============================================================
Flags: needinfo?(jdemooij)
Assignee | ||
Comment 1•7 years ago
|
||
Some of these look like OOMs but not all of them. Something is failing but not reporting an exception.
For now we can demote this MOZ_DIAGNOSTIC_ASSERT to MOZ_ASSERT, maybe fuzzing will find something.
Flags: needinfo?(jdemooij)
Attachment #8971763 -
Flags: review?(jcoppeard)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Comment 2•7 years ago
|
||
Comment on attachment 8971763 [details] [diff] [review]
Patch
Review of attachment 8971763 [details] [diff] [review]:
-----------------------------------------------------------------
Good plan.
Attachment #8971763 -
Flags: review?(jcoppeard) → review+
Updated•7 years ago
|
status-firefox59:
--- → unaffected
status-firefox60:
--- → unaffected
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → unaffected
tracking-firefox61:
--- → +
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/45603dbcb3bb
Demote MOZ_DIAGNOSTIC_ASSERT to MOZ_ASSERT. r=jonco
Comment 4•7 years ago
|
||
I'd like to know if the frontend or the worker thread machinery is to blame. Can we assert on the worker thread that this doesn't happen? (Maybe in HelperThread::handleParseWorkload.)
Comment 5•7 years ago
|
||
<jandem> jorendorff: we could add a similar assert to the main thread frontend code
<jorendorff> yes, i was just thinking that
<jorendorff> jandem: seems like a very good idea if we really want fuzzer help
Updated•7 years ago
|
Priority: -- → P1
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(jdemooij)
Comment 6•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(jdemooij)
Assignee | ||
Comment 7•7 years ago
|
||
Hm it looks like many of these are actually *decode* tasks instead of *parse* tasks, despite it being called finishParseTask, so we should probably add similar asserts to the XDR decoder.
Assignee | ||
Comment 8•7 years ago
|
||
OK the XDR decoder only reports an exception if TranscodeResult_Throw is used, but there are other failure TranscodeResults that don't report a pending exception so the helper threads code should check for that. I'll file another followup.
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(jdemooij)
You need to log in
before you can comment on or make changes to this bug.
Description
•