Re: [HACKERS] Core dump in regression tests. - Mailing list pgsql-hackers

From Keith Parks
Subject Re: [HACKERS] Core dump in regression tests.
Date
Msg-id 199809010826.JAA10997@mtcc.demon.co.uk
Whole thread Raw
List pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us>
>
> > Thomas A. Szybist <szybist@boxhill.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.

I'm afraid I don't normally as I tend to take everything at it's default
and build/install without changes.

>
> 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.
>

I'm on the late shift this week so won't be home until 22:00 BST but
will endeavour to do something with this later this evening.

Keith.


pgsql-hackers by date:

Previous
From: Keith Parks
Date:
Subject: Re: [HACKERS] Core dump in regression tests.
Next
From: "Thomas A. Szybist"
Date:
Subject: Re: [HACKERS] Core dump in regression tests.