Re: [HACKERS] Problems with SPI memory management

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Katsaros Kwn/nos" <ntinos(at)aueb(dot)gr>
Cc: Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: [HACKERS] Problems with SPI memory management
Date: 2004-09-16 18:12:40
Message-ID: 29194.1095358360@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

"Katsaros Kwn/nos" <ntinos(at)aueb(dot)gr> writes:
> On Wed, 2004-09-15 at 19:51, Tom Lane wrote:
>> You'd be well advised to be doing this sort of hackery in a build with
>> --enable-cassert. That turns on CLOBBER_FREED_MEMORY which makes
>> misuse of freed memory a whole lot more obvious.

> I did this but when I try do create a function the following message is
> displayed:

> " ERROR: could not load library
> "/usr/local/pgsql2/PLANSandTESTS/libtimes.so":
> /usr/local/pgsql2/PLANSandTESTS/libtimes.so: undefined symbol:
> assert_enabled "

You need to rebuild the whole backend, not just your function.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jerome Lyles 2004-09-16 19:03:37 Re: Spacing in output
Previous Message Alvaro Herrera 2004-09-16 16:37:10 Re: Strange UTF-8 behaviour

Browse pgsql-hackers by date

  From Date Subject
Next Message Gaetano Mendola 2004-09-16 22:16:25 problem permission on view
Previous Message Tom Lane 2004-09-16 17:56:34 Re: pg_dump --exclude-schema=foo