Re: SPI dumping core on large palloc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
Cc: "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: SPI dumping core on large palloc
Date: 2007-10-08 14:37:26
Message-ID: 18949.1191854246@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Merlin Moncure" <mmoncure(at)gmail(dot)com> writes:
> Am I doing anything wrong here?

Returning an already-pfree'd hunk of memory. I gather you are not
testing your code in an enable-cassert build (tut tut), else you'd
not think this worked for small allocations either. See
http://developer.postgresql.org/pgdocs/postgres/spi-memory.html

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message MargaretGillon 2007-10-08 15:45:53 Re: Database reverse engineering
Previous Message Merlin Moncure 2007-10-08 14:18:00 SPI dumping core on large palloc