mozilla-central / nightly PGO builds do not get profiling data from non-webcontent child processes
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox82 fixed)
| Tracking | Status | |
|---|---|---|
| firefox82 | --- | fixed |
People
(Reporter: Gijs, Assigned: Gijs)
References
Details
Attachments
(1 file)
It looks like child processes are not able to output profiling data, despite the profiling script disabling the sandbox. Output on linux, mac and windows includes variations of the following error messages:
LLVM Profile Error: Failed to write file "default_582_random_23848062398498425_0.profraw": Permission denied
LLVM Profile Error: Failed to write file "default_6216_random_15823529472270747130_0.profraw": Operation not permitted
LLVM Profile Error: Failed to write file "default_476_random_12898274460901853933_0.profraw": No error
It's not clear to me what the consequences here are, but I imagine they're not good? I'm also not 100% sure how to investigate... :dmajor or :froydnj, can you help? My changes in bug 1196094 originally tripped up talos at various points, so I'd be surprised if this didn't have a performance impact...
It would appear these messages have been here since at least May (unsure exactly how far back our logs/artifact retention goes and if we can find out when this changed), so if it's a regression it's not a recent one, and it's not clear if there is/was a corresponding change in talos or other perf test output at any point.
| Assignee | ||
Comment 1•9 months ago
|
||
Meant to needinfo for comment #0, oops...
Comment 2•9 months ago
|
||
I was wondering if it could be related to the upgrade to clang 11, but it turns out it's not: the error messages are there in the logs before the landing of the clang upgrade. It would be good to find when they appeared first.
Comment 3•9 months ago
|
||
It's there in the oldest log I could find on mozilla-central: https://firefoxci.taskcluster-artifacts.net/DszLDlyoQSmMA2H1IL5zog/0/public/build/profile-run-2.log
Does it still complain if you set all of the following?
MOZ_DISABLE_CONTENT_SANDBOX
MOZ_DISABLE_RDD_SANDBOX
MOZ_DISABLE_SOCKET_PROCESS_SANDBOX
MOZ_DISABLE_GPU_SANDBOX
MOZ_DISABLE_GMP_SANDBOX
MOZ_DISABLE_NPAPI_SANDBOX
MOZ_DISABLE_VR_SANDBOX
| Assignee | ||
Comment 5•9 months ago
|
||
(In reply to :dmajor from comment #4)
Does it still complain if you set all of the following?
MOZ_DISABLE_CONTENT_SANDBOX MOZ_DISABLE_RDD_SANDBOX MOZ_DISABLE_SOCKET_PROCESS_SANDBOX MOZ_DISABLE_GPU_SANDBOX MOZ_DISABLE_GMP_SANDBOX MOZ_DISABLE_NPAPI_SANDBOX MOZ_DISABLE_VR_SANDBOX
Good point... Trypush: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f65fed9fdf48039307c2a1cc0ccb0175c0fa43ce
I did already go and check, and these same warnings aren't showing up on beta and release builds, so that might lend weight to your suggestion (and is good because it means whatever it is likely isn't affecting beta/release users...).
| Assignee | ||
Comment 6•9 months ago
|
||
Yup, https://firefoxci.taskcluster-artifacts.net/AA0_viN6QaGtlUiTS8scdQ/0/public/build/profile-run-2.log does not show these errors anymore.
| Assignee | ||
Comment 7•9 months ago
|
||
Updated•9 months ago
|
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/7d8764be7899 fix pgo file writing from non-webcontent child processes in PROFILE_GENERATE runs, r=dmajor
Comment 9•9 months ago
|
||
| bugherder | ||
Description
•