Closed Bug 1648850 Opened 5 years ago Closed 5 years ago

stderr & stdout are not inherited on Windows when mach is using python3 (since 3.7)

Categories

(Firefox Build System :: Mach Core, defect, P1)

All
Windows
defect

Tracking

(firefox-esr68 wontfix, firefox-esr78 wontfix, firefox77 wontfix, firefox78 wontfix, firefox79 wontfix, firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox-esr68 --- wontfix
firefox-esr78 --- wontfix
firefox77 --- wontfix
firefox78 --- wontfix
firefox79 --- wontfix
firefox80 --- fixed

People

(Reporter: bobowen, Assigned: bobowen)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Standard logging to the console does not work for the child process with the sandbox turned on.
If you redirect output to a file it does work ... or at least it used to some time ago and then it stopped.

I've finally found some time to track down the issue.
The sandbox inheritance was all working still, but when mozilla-build updated to python 3.7.1 the default for the subprocess.Popen close_fds param changed to True.
So the firefox launcher and main processes never inherit stdout/err.

Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/autoland/rev/7a91ee62007a Change Popen close_fds param in process.py to False when pass_thru set. r=glandium
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80

The patch landed in nightly and beta is affected.
:bobowen, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(bobowencode)

(In reply to Release mgmt bot [:sylvestre / :calixte / :marco for bugbug] from comment #4)

The patch landed in nightly and beta is affected.
:bobowen, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

This is mainly relevant to development builds, so I say wontfix.

Flags: needinfo?(bobowencode)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: