Re: 7.4RC1 et al: cannot find block containing chunk - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 7.4RC1 et al: cannot find block containing chunk
Date
Msg-id 10136.1068420338@sss.pgh.pa.us
Whole thread Raw
In response to 7.4RC1 et al: cannot find block containing chunk  (greimel@ing.iac.es (Robert Greimel))
List pgsql-bugs
greimel@ing.iac.es (Robert Greimel) writes:
> using PostgreSQL-7.2.2 and several user defined C function - dynamically loaded
> from one .so file - I (sometimes) see the following error message doing the
> following query:

> ERROR:  AllocSetFree: cannot find block containing chunk 0x83a5300

This indicates that somebody is pfree'ing a pointer that did not come
from palloc, or possibly pfree'ing the same pointer twice.  It could be
that the bad pfree is the indirect result of an earlier memory clobber,
too.

Given that you are using user-defined C functions it seems highly likely
that the bug is in your code and not Postgres.  If you can reproduce the
bug without any of your own C functions having been executed, please
send along a script that does it ...


            regards, tom lane

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: 7.4RC1 et al: cannot find block containing chunk
Next
From: Gaetano Mendola
Date:
Subject: Re: Autocomplete on Postgres7.4beta5 not working?