Intermittent UntrustedModulesFixture.Serialize | SEH exception with code 0xc0000005 thrown in the test body. @ (null):-1
Categories
(Toolkit :: Startup and Profile System, defect, P5)
Tracking
()
People
(Reporter: intermittent-bug-filer, Assigned: gstoll)
References
Details
(Keywords: intermittent-failure, Whiteboard: [retriggered][stockwell disable-recommended])
Attachments
(5 files)
Filed by: ctuns [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=453578758&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/MBg2OYyrSOCeQdcyVQgsOg/runs/0/artifacts/public/logs/live_backing.log
[task 2024-04-05T01:07:33.231Z] 01:07:33 INFO - TEST-PASS | TestDllServices.DoNotGetNestedMicrosoftCertificate | test completed (time: 2ms)
[task 2024-04-05T01:07:33.231Z] 01:07:33 INFO - TEST-START | UntrustedModulesFixture.Serialize
[task 2024-04-05T01:07:33.370Z] 01:07:33 INFO - Received data. (attempts=1)
[task 2024-04-05T01:07:33.396Z] 01:07:33 INFO - Received data. (attempts=2)
[task 2024-04-05T01:07:33.417Z] 01:07:33 INFO - Received data. (attempts=2)
[task 2024-04-05T01:07:33.436Z] 01:07:33 INFO - Received data. (attempts=2)
[task 2024-04-05T01:07:33.449Z] 01:07:33 INFO - Received data. (attempts=2)
[task 2024-04-05T01:07:33.462Z] 01:07:33 WARNING - TEST-UNEXPECTED-FAIL | UntrustedModulesFixture.Serialize | SEH exception with code 0xc0000005 thrown in the test body. @ (null):-1
[task 2024-04-05T01:07:33.462Z] 01:07:33 WARNING - TEST-UNEXPECTED-FAIL | UntrustedModulesFixture.Serialize | test completed (time: 230ms)
[task 2024-04-05T01:07:33.463Z] 01:07:33 INFO - TEST-START | UntrustedModulesFixture.Backup
Comment 1•1 year ago
|
||
First occurrence, so far: backfill range and retriggers.
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 19•1 year ago
|
||
Update:
There have been 67 failures within the last 7 days:
• 19 failures on Windows 11 x86 22H2 WebRender opt
• 32 failures on Windows 11 x86 22H2 WebRender debug
• 15 failures on Windows 11 x64 22H2 CCov WebRender opt
• 1 failures on Windows 11 x64 22H2 WebRender opt
Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=461585236&repo=mozilla-central&lineNumber=40082
[task 2024-06-09T11:27:42.232Z] 11:27:42 INFO - TEST-START | UntrustedModulesFixture.Serialize
[task 2024-06-09T11:27:42.360Z] 11:27:42 INFO - Received data. (attempts=1)
[task 2024-06-09T11:27:42.391Z] 11:27:42 INFO - Received data. (attempts=2)
[task 2024-06-09T11:27:42.422Z] 11:27:42 INFO - Received data. (attempts=2)
[task 2024-06-09T11:27:42.446Z] 11:27:42 INFO - Received data. (attempts=2)
[task 2024-06-09T11:27:42.469Z] 11:27:42 INFO - Received data. (attempts=2)
[task 2024-06-09T11:27:42.471Z] 11:27:42 WARNING - TEST-UNEXPECTED-FAIL | UntrustedModulesFixture.Serialize | SEH exception with code 0xc0000005 thrown in the test body. @ (null):-1
[task 2024-06-09T11:27:42.471Z] 11:27:42 WARNING - TEST-UNEXPECTED-FAIL | UntrustedModulesFixture.Serialize | test completed (time: 238ms)
[task 2024-06-09T11:27:42.472Z] 11:27:42 INFO - TEST-START | UntrustedModulesFixture.Backup
[task 2024-06-09T11:27:42.485Z] 11:27:42 INFO - Received data. (attempts=2)
[task 2024-06-09T11:27:42.507Z] 11:27:42 INFO - Received data. (attempts=2)
<...>
Comment 20•1 year ago
|
||
Hi Dave! Can you please take a look at this? With this failure rate, the test was in the disable recommended list.
Thank you!
| Comment hidden (Intermittent Failures Robot) |
Comment 22•1 year ago
|
||
I don't know anything about this test. Greg, looks like you've touched it some, can you take a look?
| Assignee | ||
Comment 23•1 year ago
|
||
Yes, I'll take a look, thanks!
| Assignee | ||
Comment 24•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Comment 25•1 year ago
|
||
Comment 26•1 year ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 31•1 year ago
|
||
Hi Greg, can you take another look at this? The failure rate is still pretty high.
Recent log: https://treeherder.mozilla.org/logviewer?job_id=465863213&repo=mozilla-central
| Assignee | ||
Comment 32•1 year ago
|
||
Yeah, I was just looking at these. It's weird because it seems like the most common failure mode is now like the recent log you linked, which looks like a crash in NativeNtBlockSet_Write. I'll look into it.
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 35•1 year ago
|
||
| Comment hidden (Intermittent Failures Robot) |
Updated•1 year ago
|
Comment 37•1 year ago
|
||
Comment 38•1 year ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
Comment 40•1 year ago
•
|
||
There are still occasional failures like this one. The last log before crashing is UntrustedModulesFixture::Setup bottom. So the failure point is still the following line: AutoJSContextWithGlobal cx(mCleanGlobal);. But since we moved this line, the failure point moved as well. Then the log shows the call stack for the failure:
#05: XRE_GetBootstrap[D:\task_172231404848826\build\application\firefox\gtest\xul.dll +0xaf2f061]
#06: mozilla_net_is_label_safe[D:\task_172231404848826\build\application\firefox\gtest\xul.dll +0x338a0ea]
#07: VR_RuntimePath[D:\task_172231404848826\build\application\firefox\gtest\xul.dll +0x8efdfbb]
Which, when applying the symbols for this job, yields:
#05: xul!JS::GetNonCCWObjectGlobal(JSObject*)+0x31
#06: xul!xpc::NativeGlobal(JSObject*)+0x1a
#07: xul!mozilla::dom::AutoJSAPI::Init(JSObject*)+0x1b
Looking at the disassembly there, the failure occurs as we access reinterpret_cast<const JS::shadow::Object*>(mCleanGlobal)->shape->immutableFlags (through js::IsProxy), we crash because the shape is an invalid pointer. Presumably a GC occured and collected the object behind mCleanGlobal.
So the issue is likely that a GC can still occur, this time during UntrustedModulesFixture::InitialModuleLoadOnce which is the only remaining code that gets executed between UntrustedModulesFixture::SetUp and the start of the test.
| Assignee | ||
Comment 41•1 year ago
|
||
Comment 42•1 year ago
|
||
Comment 43•1 year ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Updated•1 year ago
|
| Assignee | ||
Comment 46•1 year ago
|
||
The proposed fix has been in for a while with no failures on main, hooray!
| Assignee | ||
Comment 47•1 year ago
|
||
| Assignee | ||
Comment 48•1 year ago
|
||
Comment 49•1 year ago
|
||
Comment 50•1 year ago
|
||
Backed out for causing build bustages @ xpcom/tests/gtest/TestAvailableMemoryWatcherMac.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/430de0a8247b00204c72a43bbd96a26b3c2ed4b6
Comment 52•1 year ago
|
||
Comment 53•1 year ago
|
||
| bugherder | ||
Comment 54•1 year ago
|
||
The patch landed in nightly and beta is affected.
:gstoll, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox130towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•1 year ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Description
•