pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Turelinckx <tom@turelinckx.be>
To: 'Greg Stark' <stark@mit.edu>
Cc: 'Tom Lane' <tgl@sss.pgh.pa.us>
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: Thu, 29 Jun 2017 12:31:35 +0200
Message-ID: <000001d2f0c2$e2d335a0$a879a0e0$@turelinckx.be> (raw)
In-Reply-To: <CAM-w4HNvPdg9xHYqP5V6SWks71ESCYZxjbbVCHfbiZh_ZEbrFw@mail.gmail.com>
References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be>
	<CAM-w4HOAWmN3h7iVN_fEMr0oFnCWTZb0rBELUuEX1uiJLA0kcw@mail.gmail.com>
	<00a501d2ef3d$a59dc730$f0d95590$@turelinckx.be>
	<CAM-w4HNvPdg9xHYqP5V6SWks71ESCYZxjbbVCHfbiZh_ZEbrFw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Greg Stark wrote:

> I revived build farm member burbot which is an Ultra 5 -- also running wheezy

Thanks for that!

> and it didn't report any issues. It's using gcc 4.6 as well:

With default settings, the latest (2017-06-13) buildfarm client builds REL9_4_STABLE successfully for me as well (on wheezy on sparc), passing all tests, with gcc 4.6.

However, I was building from the Debian source packages in the pgdg repository (https://wiki.postgresql.org/wiki/Apt) and their default settings are different from those of the buildfarm client. I've been trying to reconfigure a build farm client such that it would build binaries identical to the Debian source package build (on wheezy on sparc), but I haven't quite succeeded yet.

I did, however, figure out the minimal change to the buildfarm client default settings that makes the numeric regression test fail:

inline patch 1: build-farm.conf.fails.minimal (+0/-1 lines) download inline-1.patch*** build-farm.conf.sample 2017-06-13 17:32:45.000000000 +0200 --- build-farm.conf.fails.minimal 2017-06-29 11:43:40.000000000 +0200 *************** *** 188,194 **** config_opts =>[ qw( - --enable-cassert --enable-debug --enable-nls --with-perl --- 188,193 ----
With gcc 4.6, building without --enable-cassert will make the numeric regression test fail, while building with --enable-cassert will make the build pass all tests. With gcc 4.7, the build will pass all tests in both cases. Tested against REL9_4_STABLE only for the moment. FWIW, this is where I've gotten with getting the buildfarm client to build as close as possible to the Debian source package (9.4.12 on wheezy on sparc), but it's not quite identical yet:
inline patch 2: build-farm.conf.debian (+19/-6 lines) download inline-2.patch*** build-farm.conf.sample 2017-06-13 17:32:45.000000000 +0200 --- build-farm.conf.debian 2017-06-29 10:29:26.000000000 +0200 *************** *** 176,181 **** --- 176,184 ---- # comment out if not using ccache CC => 'ccache gcc', + PYTHON => '/usr/bin/python', + CFLAGS => '-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -I/usr/include/mit-krb5 -DLINUX_OOM_SCORE_ADJ=0 -D_FORTIFY_SOURCE=2', + LDFLAGS => '-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib/sparc-linux-gnu/mit-krb5', }, # don't use --prefix or --with-pgport here *************** *** 188,204 **** config_opts =>[ qw( ! --enable-cassert ! --enable-debug ! --enable-nls --with-perl --with-python ! --with-tcl ! --with-gssapi --with-openssl - --with-ldap --with-libxml --with-libxslt ) ], --- 191,217 ---- config_opts =>[ qw( ! --with-tcl --with-perl --with-python ! --with-pam --with-openssl --with-libxml --with-libxslt + --with-tclconfig=/usr/lib/tcl8.5 + --with-includes=/usr/include/tcl8.5 + --enable-nls + --enable-integer-datetimes + --enable-thread-safety + --enable-tap-tests + --enable-debug + --disable-rpath + --with-uuid=e2fs + --with-gnu-ld + --with-system-tzdata=/usr/share/zoneinfo + --with-krb5 + --with-gssapi + --with-ldap ) ],
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 Patches: download all (2 files, .tar.gz)

view thread (14+ messages)

Message-ID: <000001d2f0c2$e2d335a0$a879a0e0$@turelinckx.be>
Permalink:  ../000001d2f0c2$e2d335a0$a879a0e0$@turelinckx.be/
Also on:    postgresql.org/message-id/000001d2f0c2$e2d335a0$a879a0e0$@turelinckx.be

 ·  · 

reply

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, stark@mit.edu, tgl@sss.pgh.pa.us
  Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
  In-Reply-To: <000001d2f0c2$e2d335a0$a879a0e0$@turelinckx.be>
  References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be> <CAM-w4HOAWmN3h7iVN_fEMr0oFnCWTZb0rBELUuEX1uiJLA0kcw@mail.gmail.com> <00a501d2ef3d$a59dc730$f0d95590$@turelinckx.be> <CAM-w4HNvPdg9xHYqP5V6SWks71ESCYZxjbbVCHfbiZh_ZEbrFw@mail.gmail.com> <000001d2f0c2$e2d335a0$a879a0e0$@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