Crash on preload failure of libraries
Categories
(Core :: Security: Process Sandboxing, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files, 1 obsolete file)
We want to crash properly in case of failure around stuff like https://searchfox.org/mozilla-central/rev/12a18f7e112a4dcf88d8441d439b84144bfbe9a3/ipc/glue/UtilityAudioDecoderParent.cpp#70-73
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D160685
Assignee | ||
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
Comment on attachment 9300868 [details]
data review for https://phabricator.services.mozilla.com/D160685
Is there truly no place where crash annotations are documented as data collections? That's one of the more firm requirements of data collection review.
Assignee | ||
Comment 5•2 years ago
|
||
(In reply to Chris H-C :chutten from comment #4)
Comment on attachment 9300868 [details]
data review for https://phabricator.services.mozilla.com/D160685Is there truly no place where crash annotations are documented as data collections? That's one of the more firm requirements of data collection review.
I am not sure what you are asking for there. If that is about "6) Please provide a link to the documentation for this data collection which describes the ultimate data set in a public, complete, and accurate way.", I'm afraid I dont have a good answer. We will just have a library name going into the crash reports.
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/147777c37f57 Add lib with failure handling r=nika https://hg.mozilla.org/integration/autoland/rev/2552990ed77e Move Utility process to check preloading failures r=nika
Comment 7•2 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #5)
(In reply to Chris H-C :chutten from comment #4)
Comment on attachment 9300868 [details]
data review for https://phabricator.services.mozilla.com/D160685Is there truly no place where crash annotations are documented as data collections? That's one of the more firm requirements of data collection review.
I am not sure what you are asking for there. If that is about "6) Please provide a link to the documentation for this data collection which describes the ultimate data set in a public, complete, and accurate way.", I'm afraid I dont have a good answer. We will just have a library name going into the crash reports.
Yes, it is about that. For Histograms and friends there's the Probe Dictionary, for Legacy Telemetry Custom Pings each is expected to keep their source docs up to date, for everything in Glean you get the Glean Dictionary...
If I were a user who wanted to know about crash annotations in general and specific, where would I turn?
Assignee | ||
Comment 8•2 years ago
|
||
Comment on attachment 9300868 [details]
data review for https://phabricator.services.mozilla.com/D160685
retracting data-review, I've removed MOZ_CRASH_UNSAFE_PRINTF
use
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 9•2 years ago
|
||
(In reply to Chris H-C :chutten from comment #7)
If I were a user who wanted to know about crash annotations in general and specific, where would I turn?
I'm sorry but I dont know exactly, it would just have been exposed in MOZ_CRASH Reason (Sanitized)
on any crash report like e.g., https://crash-stats.mozilla.org/report/index/23bcef23-db3b-458c-b805-180340221102 MOZ_CRASH Reason (Sanitized) Shutdown hanging at step XPCOMShutdownThreads. Something is blocking the main-thread.
Comment 10•2 years ago
|
||
Hrm, maybe this'd be a good question for WillKG: Where does the public documentation for crash annotations live? Or Crash Reports' contents in general?
Comment 11•2 years ago
|
||
Crash annotations are documented in CrashAnnotations.yaml including MozCrashReason
.
If I understand what I'm skimming correctly, the code changes in this bug don't create a new annotation--they either add a new or adjust an existing reason value to the MozCrashReason
annotation, but that's fine and within the way the annotation is already used. I don't think this requires a data review.
Comment 12•2 years ago
|
||
Backed out for causing Bp-Hybrid bustages.
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/ipc/glue/test/gtest/TestUtilityProcess.cpp(143,3): error: use of undeclared identifier 'DisableCrashReporter'
Assignee | ||
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4f523653d387 Add lib with failure handling r=nika https://hg.mozilla.org/integration/autoland/rev/7268493e86bd Move Utility process to check preloading failures r=nika
Comment 15•2 years ago
•
|
||
Backed out for causing bp-hybrid bustages in ipc/glue/test/gtest/TestUtils.h
Backout link: https://hg.mozilla.org/integration/autoland/rev/99af90df8af6f0175aa5407e9c7712e4ab4eb71e
/builds/worker/checkouts/gecko/ipc/glue/test/gtest/TestUtils.h:14:13: error: unused function 'DisableCrashReporter' [-Werror,-Wunused-function]
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 16•2 years ago
|
||
Silly mistake, I forgot that this one was only for windows
Comment 17•2 years ago
|
||
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4bb66adab63a Add lib with failure handling r=nika https://hg.mozilla.org/integration/autoland/rev/2ad5f267bbf2 Move Utility process to check preloading failures r=nika
Comment 18•2 years ago
|
||
Backed out for causing windows build bustage in mozilla::wmf::MediaFoundationInitializer::HasInitialized()
Backout link: https://hg.mozilla.org/integration/autoland/rev/81af3953de3d19d670f4df0142505270c7642a52
PROCESS-CRASH | Firefox exited successfully? | application crashed [@ mozilla::wmf::MediaFoundationInitializer::HasInitialized()]
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 19•2 years ago
|
||
This time we are failing on mfplat.dll
: https://treeherder.mozilla.org/logviewer?job_id=395328482&repo=try&lineNumber=354
Alastor, is it something we would expect on Windows 2012 ?
Comment 20•2 years ago
|
||
:jmaher, can you work with relops to get a loaner windows builder or check for mfplat.dll
in the system directory. We can at least determine if this is on our builders (windows server 2012 - probably doesn't have all end user libraries)
Comment 21•2 years ago
|
||
It looks like the mfplat.dll is part of a Media Feature Pack. It is a safe assumption that the 2012 workers do not have the needed media pack installed or feature enabled. Though I will work on verifying that.
Comment 22•2 years ago
|
||
The Media Features are not enabled on 2012. However, mfplat.dll
is on the workers in the directories listed below.
c:\>dir mfplat.dll /s
Volume in drive C is os
Volume Serial Number is E247-9190
Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.16384_none_e768f8b8276c5796
Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17031_none_e79beafc2746a208
Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17090_none_e75a0b2a27783057
Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17238_none_e7a2f0ce27404db7
Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17415_none_e7b593942732c41e
Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17490_none_e75a12c2277824f3
Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.16384_none_8b4a5d346f0ee660
Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17031_none_8b7d4f786ee930d2
Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17090_none_8b3b6fa66f1abf21
Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17238_none_8b84554a6ee2dc81
Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17415_none_8b96f8106ed552e8
If needed we could try enabling the feature and/or adding the Windows Media SDK, but i don't know how that would affect other things that happen on these workers.
Assignee | ||
Comment 23•2 years ago
|
||
(In reply to Mark Cornmesser [:markco] from comment #22)
The Media Features are not enabled on 2012. However,
mfplat.dll
is on the workers in the directories listed below.c:\>dir mfplat.dll /s Volume in drive C is os Volume Serial Number is E247-9190 Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.16384_none_e768f8b8276c5796 Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17031_none_e79beafc2746a208 Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17090_none_e75a0b2a27783057 Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17238_none_e7a2f0ce27404db7 Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17415_none_e7b593942732c41e Directory of c:\Windows\WinSxS\amd64_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17490_none_e75a12c2277824f3 Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.16384_none_8b4a5d346f0ee660 Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17031_none_8b7d4f786ee930d2 Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17090_none_8b3b6fa66f1abf21 Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17238_none_8b84554a6ee2dc81 Directory of c:\Windows\WinSxS\x86_microsoft-windows-mfplat_31bf3856ad364e35_6.3.9600.17415_none_8b96f8106ed552e8
If needed we could try enabling the feature and/or adding the Windows Media SDK, but i don't know how that would affect other things that happen on these workers.
Thanks, so maybe mfplat.dll
is there but since Media feature is missing/not enabled then you can't load it. I dont think we should change anything, this just highlights that maybe we should be less strict than anticipated on those checks.
Updated•2 years ago
|
Assignee | ||
Comment 24•2 years ago
|
||
Depends on D160686
Assignee | ||
Updated•2 years ago
|
Comment 25•2 years ago
|
||
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f8406f212dc3 Add lib with failure handling r=nika https://hg.mozilla.org/integration/autoland/rev/636226d53ee8 Move Utility process to check preloading failures r=nika https://hg.mozilla.org/integration/autoland/rev/4a8b15ebc3a5 Rework preloading for WMF r=alwu
Comment 26•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f8406f212dc3
https://hg.mozilla.org/mozilla-central/rev/636226d53ee8
https://hg.mozilla.org/mozilla-central/rev/4a8b15ebc3a5
Description
•