memory bug debugging

From: Markus Schiltknecht <markus(at)bluegap(dot)ch>
To: pgsql-hackers(at)postgresql(dot)org
Subject: memory bug debugging
Date: 2005-10-04 11:11:41
Message-ID: 1128424301.19122.10.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

The backend's report is:

WARNING: problem in alloc set MessageContext: req size > alloc size for
chunk 0x8383ca8 in block 0x83834a0

Investigating a little I have found out that chunk size is 8, but
requested size is: 1912602626 (more than 1GB???). This certainly
doesn't make sense.

What tools or debugging options exist to find memory leaks / overrides?
I've read the utils/mmgr/README, which leads me to the conclusion that I
cannot use valgrind or similar tools.

It would be very helpful to know what chunk it is, or better: where it
got allocated.

Thank you for your help

Markus

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2005-10-04 11:22:50 Re: Tuning current tuplesort external sort code for 8.2
Previous Message Peter Eisentraut 2005-10-04 11:01:41 New pg_config behavior