Re: [HACKERS] Indixing problems...

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: lockhart(at)alumni(dot)caltech(dot)edu, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Indixing problems...
Date: 1998-09-09 18:07:57
Message-ID: 199809091807.OAA10916@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> "Thomas G. Lockhart" <lockhart(at)alumni(dot)caltech(dot)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.

Good suggestion.

We did have someone use Purify six months ago, and he came up with some
nice stuff. Electic Fence is good for over-runs and using already
free'ed memory, and was thinking of trying that here, but the idea that
this is was some type of alignment problem had me moving in another
direction.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-09-09 18:08:55 Re: [HACKERS] Indixing problems...
Previous Message Brook Milligan 1998-09-09 17:30:48 regression test errors: netbsd 1.3.2/i386