Re: "could not reattach to shared memory" on buildfarm member dory
Stephen Frost <sfrost@snowman.net>
Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Noah Misch <noah@leadboat.com> writes: > > On Tue, Apr 24, 2018 at 11:37:33AM +1200, Thomas Munro wrote: > >> Maybe try asking what's mapped there with VirtualQueryEx() on failure? > > > +1. An implementation of that: > > https://www.postgresql.org/message-id/20170403065106.GA2624300%40tornado.leadboat.com > > Not seeing any other work happening here, I pushed a little bit of > quick-hack investigation code. This is based on noting that > VirtualAllocEx is documented as rounding the allocation up to a page > boundary (4K), but there's nothing specific about whether or how much > CreateFileMapping or MapViewOfFileEx might round up. The observed > failures could be explained if those guys might eat more virtual > address space for the same request size as VirtualAllocEx does. > This is a stretch, for sure, but given the lack of any other theories > we might as well check it. Sounds good to me. Just as an FYI, there are a couple folks taking a look at the system and trying to figure out what's going on. We've seen an Event ID 1530 error in the Windows Event log associated with vctip.exe which Visual Studio was running with the build, but only sometimes. When vctip.exe is being run and then finishes, it goes and cleans things up which seems to be what's triggering the 1530 and that appears to correllate with the failures, but hard to say if that's really a smoking gun or is just coincidence. Thanks! Stephen
Commits
-
Avoid "could not reattach" by providing space for concurrent allocation.
- 203886d3ae22 9.4.22 landed
- f5989b379cef 10.8 landed
- 7a5677818556 9.5.17 landed
- 57ebbbb8f15a 9.6.13 landed
- e45a8ff87149 11.3 landed
- 617dc6d299c9 12.0 landed
-
Assert that pgwin32_signal_initialize() has been called early enough.
- ab9ed9be2378 12.0 landed
-
Remove investigative code for can't-reattach-to-shared-memory errors.
- bcbf2346d69f 11.0 landed
-
Does it help to wait before reattaching?
- 23078689a992 11.0 landed
-
Map and unmap the shared memory block before risking VirtualFree.
- 73042b8d136f 11.0 landed
-
Further effort at preventing memory map dump from affecting the results.
- ce07aff48f15 11.0 landed
-
Remove Windows module-list-dumping code.
- f7df8043f08a 11.0 landed
-
Dump full memory maps around failing Windows reattach code.
- 6ba0cc4bd3a6 11.0 landed
-
Get still more info about Windows can't-reattach-to-shared-memory errors.
- eb16011f4c08 11.0 landed
-
Get more info about Windows can't-reattach-to-shared-memory errors.
- 68e7e973d222 11.0 landed
-
Try to get some info about Windows can't-reattach-to-shared-memory errors.
- 63ca350ef9f5 11.0 landed