]> granicus.if.org Git - postgresql/commit
Get still more info about Windows can't-reattach-to-shared-memory errors.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Apr 2018 00:41:19 +0000 (20:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Apr 2018 00:41:19 +0000 (20:41 -0400)
commiteb16011f4c08a8c2ddfbf0637b862ee1918dd9b2
tree1e50905f82e728ad76881bf0b947456b87547a3e
parent6bdf1303b34bc630e8945ae3407ec7e8395c8fe5
Get still more info about Windows can't-reattach-to-shared-memory errors.

After some thought about the info captured so far, it seems possible
that MapViewOfFileEx is itself causing some DLL to get loaded into
the space just freed by VirtualFree.  The previous commit here didn't
capture enough info to really prove the case for that, so let's add
one more VirtualQuery in between those steps.  Also, be sure to
capture the post-Map state before we emit any log entries, just in
case elog() is invoking some code not previously loaded.

Discussion: https://postgr.es/m/25495.1524517820@sss.pgh.pa.us
src/backend/port/win32_shmem.c