Re: [HACKERS] Core dump in regression tests.

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: emkxp01(at)mtcc(dot)demon(dot)co(dot)uk
Cc: hackers(at)postgreSQL(dot)org (PostgreSQL-development)
Subject: Re: [HACKERS] Core dump in regression tests.
Date: 1998-09-01 06:23:55
Message-ID: 199809010623.CAA00709@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Thomas A. Szybist <szybist(at)boxhill(dot)com>
> >
> > >
> > > If I compile backend/catalog with -O2 then the table creation is
> > ^^^
> > > OK. So it looks like it may be indexing.c, even with Bruce's
> > > recent fixes.
> >
> > Do you mean -O0 here?
> >
>
> Yes, a typo, I used -O0 for this dir.

One idea is to track heapDescriptor from CatalogIndexInsert() all the
way down into the lower functions.

Compile with assert checking, which I assume you are already doing.

Add this "Assert(heapDescriptor->natts != 0)" to the function, and in
lower functions substitute heapDescriptor with the new variable name it
took as a function parameter.)

When the assert fails, we can see where it is getting messed up.

--
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-01 06:40:28 I am done
Previous Message Bruce Momjian 1998-09-01 06:19:56 Re: [HACKERS] Core dump in regression tests.