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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Seltenreich <seltenreich(at)gmx(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: RemoveLocalLock pfree'ing NULL when out-of-memory
Date: 2015-09-20 20:12:53
Message-ID: 16045.1442779973@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andreas Seltenreich <seltenreich(at)gmx(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2015-09-20 21:35:46 Re: row_security GUC, BYPASSRLS
Previous Message Andreas Seltenreich 2015-09-20 18:39:03 RemoveLocalLock pfree'ing NULL when out-of-memory