Re: [HACKERS] RemoveLocalLock pfree'ing NULL when out-of-memory

2015-09-20 Thread Tom Lane
Andreas Seltenreich writes: > a memory-starved instance of sqlsmith just caught RemoveLocalLock > pfree'ing a NULL in locallock->lockOwners. I think what happened is > that it was called to clean up after LockAcquireExtended's > MemoryContextAlloc failed. The content of errordata seems consisten

[HACKERS] RemoveLocalLock pfree'ing NULL when out-of-memory

2015-09-20 Thread Andreas Seltenreich
Hi, a memory-starved instance of sqlsmith just caught RemoveLocalLock pfree'ing a NULL in locallock->lockOwners. I think what happened is that it was called to clean up after LockAcquireExtended's MemoryContextAlloc failed. The content of errordata seems consistent with this. Caught in master a