Closed Bug 1713125 Opened 3 years ago Closed 2 years ago

Crash in [@ mozilla::dom::ScriptLoader::HandleLoadError]

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sefeng, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/91474d7c-12c9-49b1-9f53-e03900210501

MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(false) (mPreloads.RemoveElement(aRequest, PreloadRequestComparator()))

Top 10 frames of crashing thread:

0 XUL mozilla::dom::ScriptLoader::HandleLoadError dom/script/ScriptLoader.cpp:4042
1 XUL mozilla::dom::ScriptLoadHandler::OnStreamComplete dom/script/ScriptLoadHandler.cpp:414
2 XUL nsIncrementalStreamLoader::OnStopRequest netwerk/base/nsIncrementalStreamLoader.cpp:85
3 XUL nsCORSListenerProxy::OnStopRequest netwerk/protocol/http/nsCORSListenerProxy.cpp:612
4 XUL nsBaseChannel::OnStopRequest netwerk/base/nsBaseChannel.cpp:849
5 XUL {virtual override thunk} 
6 XUL nsInputStreamPump::OnStateStop netwerk/base/nsInputStreamPump.cpp:649
7 XUL nsInputStreamPump::OnInputStreamReady netwerk/base/nsInputStreamPump.cpp:397
8 XUL nsInputStreamReadyEvent::Run xpcom/io/nsStreamUtils.cpp:94
9 XUL mozilla::SchedulerGroup::Runnable::Run xpcom/threads/SchedulerGroup.cpp:143
Severity: -- → S2

Denis, maybe you would have ideas on what might be going wrong.

Flags: needinfo?(dpalmeiro)

This seems related to the script Preload of modules added by Bug 1342416.
Would you have any idea what might be wrong here?

Flags: needinfo?(dpalmeiro) → needinfo?(jcoppeard)

It's true that I added the MOZ_ALWAYS_TRUE() that is failing in bug 1342416. This is probably related to script loading in general though.

I don't know why it's failing. We always add preload requests to the mPreloads array if StartLoad() is successful, and there doesn't appear to be any way we can fail after we open the channel but before that happens.

That said, the script loader could do with some stronger invariant checking in general which might turn up something.

Flags: needinfo?(jcoppeard)
Severity: S2 → S3
Priority: -- → P3
Component: JavaScript Engine → DOM: Core & HTML

Closing because no crashes reported for 12 weeks.

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