Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvflk-0002Ko-0e for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Aug 2019 10:35:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvfli-0005aN-Q7 for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Aug 2019 10:35:38 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvfjU-0004Lx-Ie for pgsql-bugs@lists.postgresql.org; Thu, 08 Aug 2019 10:33:22 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvfjQ-00014F-Cn for pgsql-bugs@lists.postgresql.org; Thu, 08 Aug 2019 10:33:20 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A617920D98; Thu, 8 Aug 2019 06:33:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 08 Aug 2019 06:33:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=fm2; bh=iwsL6mY6zaEa8onvLb+ewHd40SdU46v/w/ULd49xaN4=; b=DZI7glgZ8EoS 8HzZE1CGxDBjA2ghxPFfktheJRK2S9/YKozjgf+YhgLhcMsT02rZACb/e2Z09g4P Qi8LpI8oTfvbjQgBDwlSy6IZyFfkkC8w68L8cej6NYBqtEBc2I3PLAPwu3LgzJ9b /73S4gFkEiL6WtHb+Kxm98qmTIh4vdUEbL+yx8j3nlvIbvwfTbBfUTUr0WaF/6dB X8SlWsKlRdRAfxLbz3RN7d3HYmXlujFoj20iZiUGDSPljwVulKLOK78phyiADLuQ 5ZYYkdhTkgGpe7JA3ppcRPfugRTVWS7+z9i2HGUyTm5rTxkRc6malFcnAdv64OGA Bt3FoUvOkA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=iwsL6mY6zaEa8onvLb+ewHd40SdU46v/w/ULd49xa N4=; b=Pg8Jk394BHEJDwUNN/jOKKxYH0CD2/ePFiYuLR5rkDnKiZEj5WHqUzw6K chzYO99tJAsFUTbfvY34qIgvyjZh+BfPOSvCDudPWxY9UzSktLOTNHymV6+BrSvu DqcxXIglM/z/AmZM/N0FUcGfb9aT9L71WVqo383VuT2MBjEnKjxaqjkIyzXIhV90 L0IjS14by1+X/GEOWUw6FnjKriPGUNMLintN5qx0L0F8hlyOuiGJj1UXvivqIGY3 JxmLWGsgmuEJCdoN9zj+p7dUVPnXoYgHSvtpmmtF8xwZ7ZcoCaZmT9XaviCdONnW 5VV0Sqc8pT1cRIC9rpd1qRsPfaSfg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudduhedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefffggjfhggtgfguffvhffksehtqh hmtddtreejnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegr nhgrrhgriigvlhdruggvqeenucfkphepudejvddrheekrddvvdelrddvheegnecurfgrrh grmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgenucevlhhu shhtvghrufhiiigvpedt X-ME-Proxy: Received: from [IPv6:2607:fb90:68f2:994c:843d:bfd8:5dee:e6d5] (unknown [172.58.229.254]) by mail.messagingengine.com (Postfix) with ESMTPA id 5E9AF380079; Thu, 8 Aug 2019 06:33:11 -0400 (EDT) Date: Thu, 08 Aug 2019 06:33:07 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <15943-c7232c75bb276d6c@postgresql.org> References: <15943-c7232c75bb276d6c@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: BUG #15943: Valgrind-detected error in SlruPhysicalWritePage To: exclusion@gmail.com,pgsql-bugs@lists.postgresql.org,PG Bug reporting form From: Andres Freund Message-ID: <902AFCEA-F078-4D47-AF53-1D2FD3022657@anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On August 8, 2019 12:44:43 AM EDT, PG Bug reporting form wrote: >The following bug has been logged on the website: > >Bug reference: 15943 >Logged by: Alexander Lakhin >Email address: exclusion@gmail=2Ecom >PostgreSQL version: 12beta2 >Operating system: Ubuntu 18=2E04 >Description: =20 > >When running under valgrind (sitting on the master branch): >printf "SELECT pg_notify('notify_async1',NULL); %=2E0s" `seq 2048` | psql > >I get the following error: >=3D=3D00:00:00:12=2E885 19648=3D=3D Syscall param write(buf) points to >uninitialised >byte(s) >=3D=3D00:00:00:12=2E885 19648=3D=3D at 0x5054281: write (write=2Ec:27) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x2687F0: SlruPhysicalWritePage >(slru=2Ec:851) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x268E95: SlruInternalWritePage >(slru=2Ec:543) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x2690F1: SlruSelectLRUPage >(slru=2Ec:1095) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x269777: SimpleLruZeroPage >(slru=2Ec:269) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x31DABA: asyncQueueAddEntries >(async=2Ec:1379) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x31F130: PreCommit_Notify >(async=2Ec:845) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x273C19: CommitTransaction >(xact=2Ec:2128) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x274A10: CommitTransactionComm= and >(xact=2Ec:2921) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x53BD7D: finish_xact_command >(postgres=2Ec:2597) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x53E2F3: exec_simple_query >(postgres=2Ec:1256) >=3D=3D00:00:00:12=2E885 19648=3D=3D by 0x540545: PostgresMain >(postgres=2Ec:4256) >=3D=3D00:00:00:12=2E885 19648=3D=3D Address 0xf4f95bf is in a rw- anonym= ous >segment >=3D=3D00:00:00:12=2E885 19648=3D=3D Uninitialised value was created by a= stack >allocation >=3D=3D00:00:00:12=2E885 19648=3D=3D at 0x31D967: asyncQueueAddEntries >(async=2Ec:1306) > >Increasing the count to 8192 produces another one, slightly different >stack: >=3D=3D00:00:00:29=2E999 19648=3D=3D Syscall param write(buf) points to >uninitialised >byte(s) >=3D=3D00:00:00:29=2E999 19648=3D=3D at 0x5054281: write (write=2Ec:27) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x2687F0: SlruPhysicalWritePage >(slru=2Ec:851) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x268E95: SlruInternalWritePage >(slru=2Ec:543) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x26A1BD: SimpleLruTruncate >(slru=2Ec:1234) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x31D5A5: asyncQueueAdvanceTail >(async=2Ec:2022) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x31F231: ProcessCompletedNotif= ies >(async=2Ec:1132) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x5403D1: PostgresMain >(postgres=2Ec:4176) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x4B16D9: BackendRun >(postmaster=2Ec:4431) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x4B481B: BackendStartup >(postmaster=2Ec:4122) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x4B4B32: ServerLoop >(postmaster=2Ec:1704) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x4B5F70: PostmasterMain >(postmaster=2Ec:1377) >=3D=3D00:00:00:29=2E999 19648=3D=3D by 0x406428: main (main=2Ec:228) >=3D=3D00:00:00:29=2E999 19648=3D=3D Address 0xf4fb5bf is in a rw- anonym= ous >segment >=3D=3D00:00:00:29=2E999 19648=3D=3D Uninitialised value was created by a= stack >allocation >=3D=3D00:00:00:29=2E999 19648=3D=3D at 0x31D967: asyncQueueAddEntries >(async=2Ec:1306) > >(It's also reproduced on REL_12_BETA3, REL9_6_15=2E) That seems likely to be padding=2E Probably easier to see if you enable re= ad-var-info and track-origins=2E Andres --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E