Closed Bug 1460995 Opened 7 years ago Closed 7 years ago

Bootstrap process: CreateProcess call failing on Windows 7

Categories

(Firefox :: General, enhancement, P1)

Unspecified
Windows 7
enhancement

Tracking

()

RESOLVED FIXED
Firefox 62
Tracking Status
firefox62 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

References

(Blocks 1 open bug)

Details

(Whiteboard: inj+)

Attachments

(1 file)

CreateProcess fails with ERROR_NO_SYSTEM_RESOURCES on Windows 7. It looks like the reason why is because PROC_THREAD_ATTRIBUTE_HANDLE_LIST doesn't like console handles. We can fix this by only setting that policy (and its associated inheritable handles) when there is one or more standard handles that are *not* console handles. Note that if all handles are console handles, we don't need to pass STARTF_USESTDHANDLES either, since they'll automatically be set to the current console.
Attachment #8975175 - Flags: review?(mhowell) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0eaeadece13c52e5be48ce42e37a5679205f5a10 Bug 1460995: Bootstrap process - Ensure only file and pipe handles are passed in the PROC_THREAD_ATTRIBUTE_HANDLE_LIST; r=mhowell
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: