View Single Post

   
  #2 (permalink)  
Old 04-11-2008, 06:05 AM
Martijn van Oosterhout
 
Posts: n/a
Default Re: memory bug debugging

On Tue, Oct 04, 2005 at 01:11:41PM +0200, Markus Schiltknecht wrote:
> Hello hackers,
>
> I'm fiddling around with the backend and have created a memory bug. I
> guess I'm overriding a palloced chunk, but can't figure out where.


There are some defines (MEMORY_CONTEXT_CHECKING and
CLOBBER_FREED_MEMORY) which can help find leaks. Valgrind works too,
with a bit of attention. I was going to add some directives to allow
Valgrind to handle PostgreSQL's memory allocator, but have got there
yet.

--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFDQnF9IB7bNG8LQkwRAns7AJ9RhGWX7D0Z1tAnVQ5JeJ oGFCxr+QCfZ232
jrjJ50wzhjSzAlYSXLgQOT4=
=nwP5
-----END PGP SIGNATURE-----

Reply With Quote