"Ian Harding" <ianh(at)tpchd(dot)org> writes:
> test=# create function crash () returns int as '
> test'# return_null
> test'# ' language 'pltcl';
> CREATE
> test=# select crash();
> ERROR: AllocSetFree: cannot find block containing chunk 0xbfbfcc48
> test=#
Hmm. WorksForMe (on both 7.2.3 and CVS tip) ...
regression=# select crash();
crash
-------
(1 row)
regression=# select crash() is null;
?column?
----------
t
(1 row)
regression=#
A stack backtrace from the elog() call might prove enlightening.
regards, tom lane