Closed Bug 1663424 Opened 9 months ago Closed 9 months ago

mozilla-central / nightly PGO builds do not get profiling data from non-webcontent child processes

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox82 fixed)

RESOLVED FIXED
82 Branch
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.

Meant to needinfo for comment #0, oops...

Flags: needinfo?(nfroyd)
Flags: needinfo?(dmajor)

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.

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
Flags: needinfo?(dmajor)

(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...).

Flags: needinfo?(nfroyd)
Summary: PGO build "run" logs indicate we're not writing profiling data files (anymore?) → mozilla-central / nightly PGO builds do not get profiling data from non-webcontent child processes
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
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
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.