Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCQNt-0000Zw-5X for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Apr 2018 13:59:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCQNr-00067W-KI for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Apr 2018 13:59:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCQNr-00067M-DM for pgsql-hackers@lists.postgresql.org; Sat, 28 Apr 2018 13:59:27 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCQNo-0005H2-4l for pgsql-hackers@lists.postgresql.org; Sat, 28 Apr 2018 13:59:26 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6BD535F79F; Sat, 28 Apr 2018 09:59:23 -0400 (EDT) Date: Sat, 28 Apr 2018 09:59:23 -0400 From: Stephen Frost To: Tom Lane Cc: Noah Misch , Thomas Munro , PostgreSQL Hackers Subject: Re: "could not reattach to shared memory" on buildfarm member dory Message-ID: <20180428135923.GO27724@tamriel.snowman.net> References: <25495.1524517820@sss.pgh.pa.us> <20180423231855.GK27724@tamriel.snowman.net> <20180424070646.GA2693533@rfd.leadboat.com> <31967.1524881212@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WGa0pNfzs0PLTWhP" Content-Disposition: inline In-Reply-To: <31967.1524881212@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --WGa0pNfzs0PLTWhP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Noah Misch 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? >=20 > > +1. An implementation of that: > > https://www.postgresql.org/message-id/20170403065106.GA2624300%40tornad= o.leadboat.com >=20 > 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 --WGa0pNfzs0PLTWhP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJa5H47AAoJEO1sijiDR2RVyNoQALAPuD40RtOaNoDHGuYj0kNU MvXMditz+0Yf9Y1q2/arWofdIgyzgwBkss91z6FZY9lbRGT5u5SWcjyjUemvIZlQ 5k0CVGEVKPc3gHHOEu1hmq8toN6obqGDH3nuamQDZ435EFj3dF9WrJD613z8PeWr LTsbK7io3QHjdNiFFYxWarlI/QHMH0Ui9bjpG2XexDYiIRXNYSdnOm+sPmpYlaRI KUYjnlPMoWjkuVWPcDtEuqdaLOWb+pPJmwgj28fAx5h0zmaOEJ+84tDVTJPuLoqG 52UAsAaGnYOVYALghNXkJxpmcMJvMVWsXJ9AoT1rzeJxQvu+1uq/Q1c1qooy1MNp O+nAsmakQg5nGj4C7ksGOMKO70l8PJoi6jtjn4Ctd1aB/BM/kQq1T420iqOr0rhL vYRLfGmp6EVTBHW13I+wqubB620dCz4MvFI+QhyZpIlEIjNoXCNeHUc9K77LPiwx dc6iduR9/W0ggPcFM9DMVSIP8as7n9anPKICG+F5Q2W3xWY7T2nuGRrwwq9/kMCD B40WrgXRong4vdC47M26P/0N2ezjpkKXCXOndkKriLUwSrNMmz9rBCwvTQKmWgf9 PQRk6mkybPzXVAGybD2uDyMfbo9TaC+HsZp6/K96asj95IESdThQ48I0VdBOULwE 2uuHzBeno3rSi3i+2Wsf =hsGk -----END PGP SIGNATURE----- --WGa0pNfzs0PLTWhP--