From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tom Turelinckx <tom@turelinckx.be>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
Date: Wed, 21 Jun 2017 12:24:08 -0400
Message-ID: <2069.1498062248@sss.pgh.pa.us> (raw)
In-Reply-To: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be>
References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"Tom Turelinckx" <tom@turelinckx.be> writes:
> I was trying to compile 9.4.12 on sparc from the debian source package
in the pgdg repo, but it's failing multiple regression tests.
Hm. What else fails besides the crash you're showing? It's not very
easy to deduce what's wrong there, but maybe some other symptom would
be more transparent.
> It seems this issue was introduced in 9.4.9: 9.4.9, 9.4.10, 9.4.11 and 9.4.12 all crash at the same test at the same line in formatting.c, but 9.4.8 builds successfully and passes all tests. It also seems that both NUM_numpart_to_char and the failing test have not been touched for, eh, decades, so the root cause must be somewhere else.
Alvaro's right that there was a change in 9.4.9 in formatting.c, but
that seems unrelated. And if you're seeing issues elsewhere, a more
global root cause seems what to postulate.
> A potentially similar issue was introduced in 9.4.7 and resolved in 9.4.8:
> https://www.postgresql.org/message-id/20160413094117.GC21485@msg.credativ.de
We never did get a clear explanation of why that crashed on Sparc.
I hypothesized over-aggressive compiler assumptions about alignment,
but there was no convincing evidence for that. It might be worth taking
a look at the assembly code immediately around the crash point, especially
if you could also get the corresponding code from 9.4.8.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, tom@turelinckx.be
Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
In-Reply-To: <2069.1498062248@sss.pgh.pa.us>
References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be> <2069.1498062248@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox