Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPrqD-0000At-QK for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jun 2017 14:51:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dPrqC-000155-WD for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jun 2017 14:51:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dPpFM-0002fb-1h for pgsql-bugs@postgresql.org; Tue, 27 Jun 2017 12:05:32 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dPpFH-0000EA-Lj for pgsql-bugs@postgresql.org; Tue, 27 Jun 2017 12:05:30 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 064B221A79; Tue, 27 Jun 2017 08:05:26 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 27 Jun 2017 08:05:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=turelinckx.be; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=smy 08HD9NYV5UrgUv07vGX9pVgFkBNS2arzhcTeA0Yo=; b=Ihb0VBtLkw1bm71WKZx IKD0UGczNGPwYYKDTBLIz0wWss0sTpFC84rWw8y4crmQj9HfJSJ7lOx3PC4vXmN6 mGgddFN+ylFvYx7GzoD+Lh1dQjDwSyleoQ7+2kVifEhjONacB7Bi+dDIxYKiz6sA a6M1TyV+qvUc8zXzQihQkQ9Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=smy08HD9NYV5UrgUv07vGX9pVgFkBNS2arzhcTeA0Yo=; b=W6joRIag Xi/RCsyTmEO9MeQuYRbcdxf695rCnkbvgQoVliT4pLYbJnhPKcg9DzEqkM9DAQVl HVz0MuFFrWMQEczoIj2LDC7plgAY5B9pGhZ7GgnxPFQxBdN2DrwYbJbcjA5htODM GQoGip06BacwQG82HKkkR74LxqVtNknFOSyVogWEc1kqcECcAjNA54Z2SZ6RKqUj FdR5kLekAB7mb6EB5JYLzrRElImH/y4kb8SIMA5bBYIyjMvaC7k2FDcahxtFRpVX HvVHbkE6rt2NuCkjGjnUiwsR/WAahdmf8NsGgm1Bc+p63xbaVnqd6oN0gRE0OXJ2 o2MWcmnR72Nldw== X-ME-Sender: X-Sasl-enc: nzsjXP+AYXz506ZqxQ4uPk+MahyoiqIdUXXpHeSxiLnD 1498565125 Received: from tureltolaptop (213.219.188.53.adsl.dyn.edpnet.net [213.219.188.53]) by mail.messagingengine.com (Postfix) with ESMTPA id 365EF7E429; Tue, 27 Jun 2017 08:05:25 -0400 (EDT) From: "Tom Turelinckx" To: "'Tom Lane'" , "'Greg Stark'" Cc: "'PostgreSQL Bugs'" References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be> In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHt+Xivo1Vy1iljmvBavilwHB6KPwHYEnwiofPHQQA= Content-Language: en-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 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), w= ith 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_add= ress 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 spa= rc. 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs