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: "'Greg Stark'" <stark(at)mit(dot)edu>
Cc: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "'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-29 10:31:35
Message-ID: 000001d2f0c2$e2d335a0$a879a0e0$@turelinckx.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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:

*** 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:

*** 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Merlin Moncure 2017-06-29 13:08:51 Re: [HACKERS] Segmentation fault in libpq
Previous Message Michal Novotny 2017-06-29 09:01:17 Segmentation fault in libpq