Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc) - Mailing list pgsql-bugs

From Tom Turelinckx
Subject Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
Date
Msg-id 000001d2f0c2$e2d335a0$a879a0e0$@turelinckx.be
Whole thread Raw
In response to Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)  (Greg Stark <stark@mit.edu>)
List 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
wheezyon 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)
andtheir default settings are different from those of the buildfarm client. I've been trying to reconfigure a build
farmclient such that it would build binaries identical to the Debian source package build (on wheezy on sparc), but I
haven'tquite succeeded yet. 

I did, however, figure out the minimal change to the buildfarm client default settings that makes the numeric
regressiontest 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-cassertwill make the build pass all tests. With gcc 4.7, the build will pass all tests in both cases. Tested
againstREL9_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




--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Michal Novotny
Date:
Subject: [BUGS] Segmentation fault in libpq
Next
From: Merlin Moncure
Date:
Subject: Re: [BUGS] [HACKERS] Segmentation fault in libpq