Re: Segmentation fault with core dump - Mailing list pgsql-general

From Tom Lane
Subject Re: Segmentation fault with core dump
Date
Msg-id 17271.1515606060@sss.pgh.pa.us
Whole thread Raw
In response to Re: Segmentation fault with core dump  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Segmentation fault with core dump  (Glauco Torres <torres.glauco@gmail.com>)
List pgsql-general
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Tom Lane wrote:
>> Hm.  I'm not normally one to jump to the conclusion that something is a
>> compiler bug, but it's hard to explain this stack trace any other way.
>> The value of "n" passed to the inner invocation of pg_qsort should not
>> have been more than 29914, but working from either the value of d or the
>> value of pn leads to the conclusion that it was 0x7f6fa9f3a470, which
>> looks a lot more like an address in the array than a proper value of n.

> Hmm, is this something that can be explained by using a different
> postgres executable in GDB than the one that produced the core file?

That would result in nonsensical gdb output, most likely; but Glauco's
trace is internally consistent enough that I doubt gdb is lying to us.
In any case, the crash is an observable fact :-(

            regards, tom lane


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Segmentation fault with core dump
Next
From: Alvaro Herrera
Date:
Subject: Re: Segmentation fault with core dump