Closed
Bug 1472520
Opened 7 years ago
Closed 7 years ago
Crash in mozilla::Maybe<T>::operator-
Categories
(Core :: Graphics: ImageLib, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | wontfix |
firefox61 | --- | wontfix |
firefox62 | --- | fixed |
firefox63 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: aosmond)
References
Details
(Keywords: assertion, crash, regression, Whiteboard: [gfx-noted])
Crash Data
Attachments
(1 file)
2.34 KB,
patch
|
tnikkel
:
review+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-edc1b161-2205-4b4f-bb58-119a60180628.
=============================================================
Looks like a regression in v62.
MOZ_CRASH Reason: MOZ_RELEASE_ASSERT(mIsSome)
Top 10 frames of crashing thread:
0 xul.dll mozilla::Maybe<mozilla::image::SourceBufferIterator>::operator-> mfbt/Maybe.h:557
1 xul.dll mozilla::image::Decoder::Telemetry image/Decoder.cpp:279
2 xul.dll mozilla::image::IDecodingTask::NotifyDecodeComplete image/IDecodingTask.cpp:110
3 xul.dll mozilla::image::DecodedSurfaceProvider::FinishDecoding image/DecodedSurfaceProvider.cpp:201
4 xul.dll mozilla::image::DecodedSurfaceProvider::Run image/DecodedSurfaceProvider.cpp:145
5 xul.dll mozilla::image::DecodePoolWorker::Run image/DecodePool.cpp:284
6 xul.dll nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1051
7 xul.dll NS_ProcessNextEvent xpcom/threads/nsThreadUtils.cpp:519
8 xul.dll mozilla::ipc::MessagePumpForNonMainThreads::Run ipc/glue/MessagePump.cpp:334
9 xul.dll MessageLoop::RunHandler ipc/chromium/src/base/message_loop.cc:318
=============================================================
Assignee | ||
Comment 1•7 years ago
|
||
Since the iterator is Nothing, this suggests this was an ICO decoder, because that's the only time we replace the iterator we started with. I believe a malformed ICO can hit this code path, although it is surprising to see this happening in 62.0, since I believe the root cause was introduced in bug 1315554.
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [gfx-noted]
Updated•7 years ago
|
status-firefox62:
--- → affected
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8989400 -
Flags: review?(tnikkel)
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Andrew Osmond [:aosmond] from comment #2)
> Created attachment 8989400 [details] [diff] [review]
> 0001-Bug-1472520-Fix-a-crash-when-generating-image-decode.patch, v1
Note that DecoderTelemetry::mChunkCount is already checked to be non-zero before adding it to telemetry. So I only needed an extra check for DecoderTelemetry::mBytesDecoded.
Updated•7 years ago
|
Attachment #8989400 -
Flags: review?(tnikkel) → review+
Pushed by aosmond@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5019176ab037
Fix a crash when generating image decoder telemetry. r=tnikkel
Comment 5•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8989400 [details] [diff] [review]
0001-Bug-1472520-Fix-a-crash-when-generating-image-decode.patch, v1
Approval Request Comment
[Feature/Bug causing the regression]: Bug 1315554
[User impact if declined]: May experience rare crash when visiting a page with a malformed ICO.
[Is this code covered by automated tests?]: The success paths and some badly formed ones are, but not the path that triggers the crash.
[Has the fix been verified in Nightly?]: No, we only see a low volume in beta.
[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?]: All we changed is to make sure we have a valid object instead of dereferencing it immediately. It is unlikely to be worse than the crash. Worst case the telemetry results end up being incorrect somehow.
[String changes made/needed]: None.
Attachment #8989400 -
Flags: approval-mozilla-beta?
Comment 7•7 years ago
|
||
Comment on attachment 8989400 [details] [diff] [review]
0001-Bug-1472520-Fix-a-crash-when-generating-image-decode.patch, v1
Crash fix for a new regression in beta. This should land for beta 7.
Attachment #8989400 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 8•7 years ago
|
||
bugherder uplift |
Updated•7 years ago
|
Blocks: 1315554
status-firefox61:
--- → wontfix
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•