Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc) - Mailing list pgsql-bugs

From Tom Turelinckx
Subject Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
Date
Msg-id 00a501d2ef3d$a59dc730$f0d95590$@turelinckx.be
Whole thread Raw
In response to Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)  (Greg Stark <stark@mit.edu>)
Responses Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)  (Greg Stark <stark@mit.edu>)
List pgsql-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
Iwas 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

pgsql-bugs by date:

Previous
From: Rares Aioanei
Date:
Subject: Re: [BUGS] libpq.so.5 dependancy error installing pgsql onto linux 6.
Next
From: devrim@gunduz.org
Date:
Subject: Re: [BUGS] libpq.so.5 dependancy error installing pgsql onto linux 6.