Re: RemoveLocalLock pfree'ing NULL when out-of-memory - Mailing list pgsql-hackers

From Tom Lane
Subject Re: RemoveLocalLock pfree'ing NULL when out-of-memory
Date
Msg-id 16045.1442779973@sss.pgh.pa.us
Whole thread Raw
In response to RemoveLocalLock pfree'ing NULL when out-of-memory  (Andreas Seltenreich <seltenreich@gmx.de>)
List pgsql-hackers
Andreas Seltenreich <seltenreich@gmx.de> 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 consistent
> with this.

Ooops.  Looks to have been my bug originally.  Will fix, thanks!
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andreas Seltenreich
Date:
Subject: RemoveLocalLock pfree'ing NULL when out-of-memory
Next
From: Stephen Frost
Date:
Subject: Re: row_security GUC, BYPASSRLS