Closed Bug 1371714 Opened 9 years ago Closed 9 years ago

Immediately killing content process after GetProcessBaseAddress returns nullptr

Categories

(Core :: Security: Process Sandboxing, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1368600

People

(Reporter: mconley, Unassigned)

References

Details

Attachments

(1 file)

milan has been hitting this about 20% of the time after applying Nightly updates since upgrading to the Creators Edition of Windows 10 64-bit. The behaviour seems to be that any content process that he attempts to start is immediately killed shortly after launching. After some debugging, we found out that this is roughly where the problem is: http://searchfox.org/mozilla-central/rev/a798ee4fc323f9387b7576dbed177859d29d09b7/security/sandbox/chromium/sandbox/win/src/win_utils.cc#475-505 GetProcessBaseAddress is returning nullptr anytime he tries to launch a subprocess. This seems to be because we (at least) never seem to get MEM_IMAGE as the Type in mem_info after calling VirtualQueryEx. When milan gets into this state, it seems that the only way to resolve it is to restart the operating system. Otherwise, he gets this failure any time he tries to launch a content process.
(In reply to Mike Conley (:mconley) from comment #0) > ... > > This seems to be because we (at least) never seem to get MEM_IMAGE as the > Type in mem_info after calling VirtualQueryEx. I lied about this one; I had the breakpoint with the wrong value (0x100000 instead of 0x1000000). So, we could be hitting the right type, but failing in GetImageFilePath or EqualPath calls. Given that it's a "restart Firefox" situation, that seems more likely a scenario - that we're somehow getting the wrong path, and that it requires larger changes to get it going again. > When milan gets into this state, it seems that the only way to resolve it is > to restart the operating system. Otherwise, he gets this failure any time he > tries to launch a content process. And I just realized that I didn't try just logging out and logging back in. Given the frequency of failures, I expect to hit this soon enough, I'll verify the two things I got wrong above.
This is sounding very much like bug 1368600. Can you check to see if process_path and image_path differ in the same way next time?
Flags: needinfo?(milan)
Will do, and yes, it does sound like bug 1368600.
Flags: needinfo?(milan)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: