Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNiR6-0007mS-JM for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jun 2017 16:24:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dNiR6-0007Ju-67 for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Jun 2017 16:24:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dNiQP-00064H-8t for pgsql-bugs@postgresql.org; Wed, 21 Jun 2017 16:24:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dNiQM-0002Yq-80 for pgsql-bugs@postgresql.org; Wed, 21 Jun 2017 16:24:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v5LGO8oK002070; Wed, 21 Jun 2017 12:24:08 -0400 From: Tom Lane To: "Tom Turelinckx" cc: pgsql-bugs@postgresql.org Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc) In-reply-to: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be> References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be> Comments: In-reply-to "Tom Turelinckx" message dated "Wed, 21 Jun 2017 17:26:59 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2067.1498062248.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Jun 2017 12:24:08 -0400 Message-ID: <2069.1498062248@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "Tom Turelinckx" 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_nump= art_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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs