aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-01-31 21:31:08 -0500
committerRobert Haas <rhaas@postgresql.org>2014-01-31 21:31:08 -0500
commitd1981719adbcc05fa15f540e8fc4327907991fc6 (patch)
treeed3c080d0c1ce36ca7ed0e1c32f92965c058f97b /src/backend/utils/adt/arrayfuncs.c
parent637fab6e575b36d3a4368e7c2b923231c5504035 (diff)
downloadpostgresql-d1981719adbcc05fa15f540e8fc4327907991fc6.tar.gz
postgresql-d1981719adbcc05fa15f540e8fc4327907991fc6.zip
Clear MyProc and MyProcSignalState before they become invalid.
Evidence from buildfarm member crake suggests that the new test_shm_mq module is routinely crashing the server due to the arrival of a SIGUSR1 after the shared memory segment has been unmapped. Although processes using the new dynamic background worker facilities are more likely to receive a SIGUSR1 around this time, the problem is also possible on older branches, so I'm back-patching the parts of this change that apply to older branches as far as they apply. It's already generally the case that code checks whether these pointers are NULL before deferencing them, so the important thing is mostly to make sure that they do get set to NULL before they become invalid. But in master, there's one case in procsignal_sigusr1_handler that lacks a NULL guard, so add that. Patch by me; review by Tom Lane.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions