From: Tom Turelinckx <tom@turelinckx.be>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
To: 'Greg Stark' <stark@mit.edu>
Cc: 'PostgreSQL Bugs' <pgsql-bugs@postgresql.org>
Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
Date: Tue, 27 Jun 2017 14:05:18 +0200
Message-ID: <00a501d2ef3d$a59dc730$f0d95590$@turelinckx.be> (raw)
In-Reply-To: <CAM-w4HOAWmN3h7iVN_fEMr0oFnCWTZb0rBELUuEX1uiJLA0kcw@mail.gmail.com>
References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be>
<CAM-w4HOAWmN3h7iVN_fEMr0oFnCWTZb0rBELUuEX1uiJLA0kcw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Tom Lane wrote:
> Or perhaps there's a different gcc version you could use?
Greg Stark wrote:
> What version of GCC are you testing with?
Wheezy on sparc has gcc-4.4 (4.4.7), gcc-4.6 (4.6.3) and gcc-4.7 (4.7.2), with gcc-4.6 being the default hence the one I was using.
Switching to gcc-4.7 resolved this issue, as well as the failing object_address test against 9.6.3. So, with gcc-4.7 postgresql-9.4.12, postgresql-9.6.3 and postgresql-10~beta1 all build successfully and pass all tests on sparc.
Switching to gcc-4.7 does not solve the alignment issue in 9.4.7 (resolved in 9.4.8) discussed here:
https://www.postgresql.org/message-id/20160413094117.GC21485@msg.credativ.de
Tom Lane wrote:
> 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.
I can reproduce that crash against 9.4.7 with both gcc-4.6 and gcc-4.7, and will try to provide the relevant assembly snippets.
Best regards,
Tom Turelinckx
--
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: tom@turelinckx.be, tgl@sss.pgh.pa.us, stark@mit.edu
Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
In-Reply-To: <00a501d2ef3d$a59dc730$f0d95590$@turelinckx.be>
References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be> <CAM-w4HOAWmN3h7iVN_fEMr0oFnCWTZb0rBELUuEX1uiJLA0kcw@mail.gmail.com> <00a501d2ef3d$a59dc730$f0d95590$@turelinckx.be>
* 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