Re: [HACKERS] Indixing problems... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Indixing problems...
Date
Msg-id 28308.905350448@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Indixing problems...  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
Responses Re: [HACKERS] Indixing problems...
List pgsql-hackers
"Thomas G. Lockhart" <lockhart@alumni.caltech.edu> writes:
> Sadly, that is still true also. As I mentioned earlier, the actual
> segfault happens when memory is free'd toward the end of a query. But of
> course there is some problem earlier when the memory was allocated...

Has anyone tried building the backend with a debugging malloc library?

dbmalloc, or Electric Fence, or Purify would probably help smoke out
any remaining coding errors of this kind (using already-freed space,
writing past the end of a malloc'd block, etc).

Purify is a commercial product, but the other two are freeware and
shouldn't be hard to find on the net.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] new return value of PQfsize
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Indixing problems...