Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)

From: "Tom Turelinckx" <tom(at)turelinckx(dot)be>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "'Greg Stark'" <stark(at)mit(dot)edu>
Cc: "'PostgreSQL Bugs'" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
Date: 2017-06-27 12:05:18
Message-ID: 00a501d2ef3d$a59dc730$f0d95590$@turelinckx.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message devrim 2017-06-27 12:36:56 Re: libpq.so.5 dependancy error installing pgsql onto linux 6.
Previous Message Rares Aioanei 2017-06-27 11:57:31 Re: libpq.so.5 dependancy error installing pgsql onto linux 6.