Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHxlu-0006sv-EP for pgsql-committers@arkaria.postgresql.org; Thu, 23 Nov 2017 20:06:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHxlt-0007l7-Mk for pgsql-committers@arkaria.postgresql.org; Thu, 23 Nov 2017 20:06:53 +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 1eHxlt-0007kx-Ez for pgsql-committers@lists.postgresql.org; Thu, 23 Nov 2017 20:06:53 +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.89) (envelope-from ) id 1eHxlp-0003rP-Pa for pgsql-committers@postgresql.org; Thu, 23 Nov 2017 20:06:51 +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 vANK6gHW021044; Thu, 23 Nov 2017 15:06:42 -0500 From: Tom Lane To: Andres Freund cc: Simon Riggs , Tomas Vondra , pgsql-committers , Andrew Dunstan Subject: Re: pgsql: Generational memory allocator In-reply-to: <20171123193936.fncfnar5wkpx56mw@alap3.anarazel.de> References: <20171123001649.y2nf7422iay6cw3v@alap3.anarazel.de> <20171123193936.fncfnar5wkpx56mw@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 23 Nov 2017 11:39:36 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <21042.1511467602.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Nov 2017 15:06:42 -0500 Message-ID: <21043.1511467602@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2017-11-23 20:57:10 +1100, Simon Riggs wrote: >> On 23 November 2017 at 11:16, Andres Freund wrote: >>> Looks like it's not quite valgrind clean: >>> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dskink&dt=3D2= 017-11-22%2022%3A30%3A01 >> It doesn't report anything useful that would allow me to fix this. > Uh. It reports a failure, and you can go from there. The error output > actually is in postmaster.log but for some reason the buildfarm code > didn't display that in this case. I think it's a legitimate complaint that postmaster.log wasn't captured in this failure, but that's a buildfarm script oversight and hardly Andres' fault. In any case, valgrind failures are generally easy enough to reproduce locally. Meanwhile, over on = https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dsnapper&dt=3D201= 7-11-23%2013%3A56%3A17 we have ccache gcc-4.7 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-af= ter-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security = -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard -g -g -O2 -fsta= ck-protector --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-secur= ity -I../../../../src/include -D_FORTIFY_SOURCE=3D2 -D_GNU_SOURCE -I/usr= /include/libxml2 -I/usr/include/mit-krb5 -c -o generation.o generation.c generation.c: In function =E2=80=98GenerationContextCreate=E2=80=99: generation.c:206:7: error: static assertion failed: "padding calculation i= n GenerationChunk is wrong" make[4]: *** [generation.o] Error 1 Looks to me like GenerationChunk imagines that 3*sizeof(pointer) must be a maxaligned quantity, which is wrong on platforms where MAXALIGN is bigger than sizeof(pointer). regards, tom lane