Thread: Re: [HACKERS] Problems with SPI memory management
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 " Any ideas? Is there any file I should include during compilation? I couldn't find any HOW-TO or something. Regards, Ntinoas Katsaros
"Katsaros Kwn/nos" <ntinos@aueb.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