Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIgcm-0008QF-5A for pgsql-committers@arkaria.postgresql.org; Sat, 25 Nov 2017 20:00:28 +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 1eIgcl-0004Hn-IG for pgsql-committers@arkaria.postgresql.org; Sat, 25 Nov 2017 20:00:27 +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 1eIgck-0004Hd-Vk for pgsql-committers@lists.postgresql.org; Sat, 25 Nov 2017 20:00:27 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eIgcd-0006Z9-A7 for pgsql-committers@postgresql.org; Sat, 25 Nov 2017 20:00:26 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4FDD3206E2; Sat, 25 Nov 2017 15:00:16 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 25 Nov 2017 15:00:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=Djo4vyMepN1ZXEq2IbIb+swAsPAuB poG8ebFKxnWSuA=; b=esv6g3NOIHBq8tNsU4O13HSXtvngAchrMhFh2043cqb0x thYupuy8fmnY2MQVAOm6U5YZ5OleWWSK8NGSFX2+P2nStXAzUQjteeV4fJvvliWq /l8TnuPsE0sVj5VGD3Vo0Ov4CcKw3sMb7UyadwtHFxQzoxwipnAbejCf7kEsw+iE /LJIBSdF50IWLQoKMeJ9X3CnjezIdw1mXTr/OLUM6EfPu2+6VuQW0aknmfnLXSte XPpOaVx4WmycDJybr/7IWs3J8EzjTnHjkRKliQTyVfFGuQI40uHhngktPGDFej5N Ng4ukN2+LHXYW0cR0l/Vw4A8zo+xThEzyKGl+faWw== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A1C22470E; Sat, 25 Nov 2017 15:00:16 -0500 (EST) Date: Sat, 25 Nov 2017 12:00:15 -0800 From: Andres Freund To: Tom Lane Cc: Tomas Vondra , Simon Riggs , pgsql-committers Subject: Re: pgsql: Generational memory allocator Message-ID: <20171125200014.qbewtip5oydqsklt@alap3.anarazel.de> References: <20171123001649.y2nf7422iay6cw3v@alap3.anarazel.de> <16449.1511548313@sss.pgh.pa.us> <4618.1511573138@sss.pgh.pa.us> <6189.1511587105@sss.pgh.pa.us> <8991.1511639441@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8991.1511639441@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2017-11-25 14:50:41 -0500, Tom Lane wrote: > I wrote: > > Tomas Vondra writes: > >> BTW I also see these failures in hstore: > > >> ==15168== Source and destination overlap in memcpy(0x5d0fed0, 0x5d0fed0, 40) > >> ==15168== at 0x4C2E00C: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018) > >> ==15168== by 0x15419A06: hstoreUniquePairs (hstore_io.c:343) > >> ==15168== by 0x15419EE4: hstore_in (hstore_io.c:416) > > > Huh ... > > I tried to duplicate this on my RHEL6 workstation, and failed to, > even though adding an assertion easily proves that the hstore > regression test does exercise the case. So apparently the answer > as to why skink isn't reporting this is just "not all versions of > valgrind check it". I suspect that the issue rather is that the compiler will sometimes replace the memcpy() with an in-line member-by-member version. That'll not be visible as a memcpy to valgrind. > Meanwhile, skink has come back with a success as of 0f2458f, rendering > the other mystery even deeper --- although at least this confirms the > idea that the crashes we are seeing predate the generation.c patch. Hm, wonder whether that could be optimization dependent too. Greetings, Andres Freund