Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] double free corruption?

From: Tom Lane <tgl(at)sss.pgh.pa.us>
Date: Fri Dec 28 2007 - 11:49:42 EST


marcelo Cortez <jmdc_marcelo@yahoo.com.ar> writes:
> sorry i forgot to mention
> i'm developing one c external program, may be fault is
> my code , but surprise to me the message, what bad
> practice generate this behavior?
> fail seems to be not to reproducible all times,

> i'm using beta3 version, it's this important?

What it looks like to me is something clobbering memory, eg writing more data into a palloc'd memory chunk than will fit; which results in overwriting malloc's own data structures, causing malloc to complain when it notices.

Whether it's your bug or something wrong in the beta is hard to say.

> pd: gdb can help? ( for debugging my own code)

--enable-cassert would probably help more, since it would turn on some clobber-detection support in PG.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly
Received on Fri Dec 28 11:51:10 2007

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 23:00:09 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library