Bug: Intermittent browser/base/content/test/performance/browser_startup_mainthreadio.js | unexpected read on C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\key4.db before becoming idle -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-03-25 13:19:26+00:00
Resolved: 2022-08-15 12:18:05+00:00

**Filed by:** ccozmuta [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=372329304&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/B-qV1GXZQCKOODIdzQRNjQ/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-03-25T12:08:39.187Z] 12:08:39     INFO - TEST-START | browser/base/content/test/performance/browser_startup_mainthreadio.js
[task 2022-03-25T12:08:39.275Z] 12:08:39     INFO - TEST-INFO | started process screenshot
[task 2022-03-25T12:08:39.406Z] 12:08:39     INFO - TEST-INFO | screenshot: exit 0
[task 2022-03-25T12:08:39.416Z] 12:08:39     INFO - <snipped 88 output lines - if you need more context, please use SimpleTest.requestCompleteLog() in your test>
[task 2022-03-25T12:08:39.416Z] 12:08:39     INFO - Buffered messages logged at 12:08:39
[task 2022-03-25T12:08:39.417Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | read on C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\cookies.sqlite as many times as expected before opening first browser window - 
[task 2022-03-25T12:08:39.418Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | write on C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\cookies.sqlite as many times as expected before opening first browser window - 
[task 2022-03-25T12:08:39.419Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\cookies.sqlite-wal as many times as expected before opening first browser window - 
[task 2022-03-25T12:08:39.420Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\extensions as many times as expected before opening first browser window - 
[task 2022-03-25T12:08:39.420Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\AppData\Roaming\Mozilla\Firefox allowed 1 more times before opening first browser window - 
[task 2022-03-25T12:08:39.421Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\doh-rollout@mozilla.org.xpi allowed 1 more times before opening first browser window - 
[task 2022-03-25T12:08:39.422Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | close on Z:\task_164820884654898\build\application\firefox\browser\features\doh-rollout@mozilla.org.xpi allowed 2 more times before opening first browser window - 
[task 2022-03-25T12:08:39.422Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\formautofill@mozilla.org.xpi allowed 1 more times before opening first browser window - 
[task 2022-03-25T12:08:39.423Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | close on Z:\task_164820884654898\build\application\firefox\browser\features\formautofill@mozilla.org.xpi allowed 2 more times before opening first browser window - 
[task 2022-03-25T12:08:39.424Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\pictureinpicture@mozilla.org.xpi allowed 1 more times before opening first browser window - 
[task 2022-03-25T12:08:39.424Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | close on Z:\task_164820884654898\build\application\firefox\browser\features\pictureinpicture@mozilla.org.xpi allowed 2 more times before opening first browser window - 
[task 2022-03-25T12:08:39.425Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\screenshots@mozilla.org.xpi allowed 1 more times before opening first browser window - 
[task 2022-03-25T12:08:39.426Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | close on Z:\task_164820884654898\build\application\firefox\browser\features\screenshots@mozilla.org.xpi allowed 2 more times before opening first browser window - 
[task 2022-03-25T12:08:39.426Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\webcompat-reporter@mozilla.org.xpi allowed 1 more times before opening first browser window - 
[task 2022-03-25T12:08:39.427Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | close on Z:\task_164820884654898\build\application\firefox\browser\features\webcompat-reporter@mozilla.org.xpi allowed 2 more times before opening first browser window - 
[task 2022-03-25T12:08:39.428Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\webcompat@mozilla.org.xpi allowed 1 more times before opening first browser window - 
[task 2022-03-25T12:08:39.428Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | close on Z:\task_164820884654898\build\application\firefox\browser\features\webcompat@mozilla.org.xpi allowed 2 more times before opening first browser window - 
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO - known main thread IO paths during before first paint:
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   C:\ProgramData\Mozilla\updates\DAE3987EE46B43A2 - condition: true, stat: 1, listedPath: OldUpdRootD:
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\DAE3987EE46B43A2\updates\0\update.status - condition: true, stat: 1, listedPath: UpdRootD:updates/0/update.status
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   Z:\task_164820884654898\build\application\firefox\distribution\distribution.ini - condition: true, stat: 1, listedPath: XREAppDist:distribution.ini
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   *Fonts\StaticCache.dat - condition: true, ignoreIfUnused: true, read: 1, listedPath: *Fonts/StaticCache.dat
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   C:\Windows\system32\spool\drivers\color\* - condition: true, read: 1, listedPath: SysD:spool/drivers/color/*
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   Z:\task_164820884654898\AppData\Roaming\Mozilla\Firefox - ignoreIfUnused: true, condition: true, stat: 1, listedPath: UAppData:
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\d3d11layers.guard - ignoreIfUnused: true, stat: 1, listedPath: ProfD:d3d11layers.guard
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\glcontext.guard - ignoreIfUnused: true, stat: 1, listedPath: ProfD:glcontext.guard
[task 2022-03-25T12:08:39.430Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\wmfvpxvideo.guard - ignoreIfUnused: true, stat: 1, listedPath: ProfD:wmfvpxvideo.guard
[task 2022-03-25T12:08:39.431Z] 12:08:39     INFO - (PoisonIOInterposer) stat - C:\ProgramData\Mozilla\updates\DAE3987EE46B43A2
[task 2022-03-25T12:08:39.431Z] 12:08:39     INFO - (PoisonIOInterposer) stat - C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\DAE3987EE46B43A2\updates\0\update.status
[task 2022-03-25T12:08:39.431Z] 12:08:39     INFO - (PoisonIOInterposer) stat - Z:\task_164820884654898\build\application\firefox\distribution\distribution.ini
[task 2022-03-25T12:08:39.432Z] 12:08:39     INFO - (PoisonIOInterposer) read - C:\Windows\system32\spool\drivers\color\sRGB Color Space Profile.icm
<...>
task 2022-03-25T12:08:39.478Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\webcompat-reporter@mozilla.org.xpi allowed 1 more times before handling user events - 
[task 2022-03-25T12:08:39.478Z] 12:08:39     INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | stat on Z:\task_164820884654898\build\application\firefox\browser\features\webcompat@mozilla.org.xpi allowed 1 more times before handling user events - 
[task 2022-03-25T12:08:39.481Z] 12:08:39     INFO - known main thread IO paths during before becoming idle:
[task 2022-03-25T12:08:39.481Z] 12:08:39     INFO -   Z:\task_164820884654898\build\application\firefox\browser\features\screenshots@mozilla.org.xpi - ignoreIfUnused: true, close: 1, listedPath: XREAppFeat:screenshots@mozilla.org.xpi
[task 2022-03-25T12:08:39.481Z] 12:08:39     INFO -   Z:\task_164820884654898\build\application\firefox\browser\features\webcompat-reporter@mozilla.org.xpi - ignoreIfUnused: true, stat: 1, close: 1, listedPath: XREAppFeat:webcompat-reporter@mozilla.org.xpi
[task 2022-03-25T12:08:39.481Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\places.sqlite-journal - ignoreIfUnused: true, fsync: 1, stat: 4, read: 1, write: 2, listedPath: ProfD:places.sqlite-journal
[task 2022-03-25T12:08:39.481Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\places.sqlite-wal - ignoreIfUnused: true, stat: 4, fsync: 3, read: 51, write: 178, listedPath: ProfD:places.sqlite-wal
[task 2022-03-25T12:08:39.481Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\places.sqlite-shm - condition: true, ignoreIfUnused: true, stat: 1, listedPath: ProfD:places.sqlite-shm
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\places.sqlite - ignoreIfUnused: true, fsync: 2, read: 4, stat: 3, write: 1324, listedPath: ProfD:places.sqlite
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\favicons.sqlite-journal - ignoreIfUnused: true, fsync: 2, stat: 7, read: 2, write: 7, listedPath: ProfD:favicons.sqlite-journal
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\favicons.sqlite-wal - ignoreIfUnused: true, fsync: 2, stat: 7, read: 7, write: 15, listedPath: ProfD:favicons.sqlite-wal
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\favicons.sqlite-shm - condition: true, ignoreIfUnused: true, stat: 2, listedPath: ProfD:favicons.sqlite-shm
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\favicons.sqlite - ignoreIfUnused: true, fsync: 3, read: 8, stat: 4, write: 1300, listedPath: ProfD:favicons.sqlite
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\key4.db-journal - condition: true, stat: 2, listedPath: ProfD:key4.db-journal
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\key4.db-wal - condition: true, stat: 2, listedPath: ProfD:key4.db-wal
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO -   C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner - condition: true, ignoreIfUnused: true, stat: 3, listedPath: ProfD:
[task 2022-03-25T12:08:39.482Z] 12:08:39     INFO - (PoisonIOInterposer) stat - C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\key4.db-journal
[task 2022-03-25T12:08:39.483Z] 12:08:39     INFO - Buffered messages finished
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup_mainthreadio.js | unexpected read on C:\Users\task_164820884654898\AppData\Local\Temp\tmp97rcgbrd.mozrunner\key4.db before becoming idle - 
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO - Stack trace:
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   nsIPK11TokenDB.getInternalKeyToken
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   init (resource://gre/modules/crypto-SDR.js:51:6)
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   LoginManagerCrypto_SDR (resource://gre/modules/crypto-SDR.js:16:31)
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   GetServiceByContractID @mozilla.org/login-manager/crypto/SDR;1
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   get _crypto (resource://gre/modules/storage-json.js:55:13)
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   initialize (resource://gre/modules/storage-json.js:81:12)
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   XPCWrappedJS method call
[task 2022-03-25T12:08:39.484Z] 12:08:39     INFO -   nsILoginManagerStorage.initialize
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   _initStorage (resource://gre/modules/LoginManager.jsm:93:14)
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   init (resource://gre/modules/LoginManager.jsm:80:6)
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   LoginManager (resource://gre/modules/LoginManager.jsm:42:21)
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   Services_Resolve logins
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   task (resource:///modules/BrowserGlue.jsm:2411:14)
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   _scheduleStartupIdleTasks/< (resource:///modules/BrowserGlue.jsm:2762:8)
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   ChromeUtils::IdleDispatch handler
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   Task ChromeUtils::IdleDispatch
[task 2022-03-25T12:08:39.485Z] 12:08:39     INFO -   XREMain::XRE_main
```