Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWqK-0002ZK-Dr for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Jun 2021 14:48:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltWqJ-00046k-Bs for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Jun 2021 14:48:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWqJ-00046Z-3m for pgsql-hackers@lists.postgresql.org; Wed, 16 Jun 2021 14:48:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWqE-00016G-Kf for pgsql-hackers@lists.postgresql.org; Wed, 16 Jun 2021 14:48:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15GEmOFx648021; Wed, 16 Jun 2021 10:48:24 -0400 From: Tom Lane To: Amit Kapila cc: Dilip Kumar , Alvaro Herrera , Andres Freund , Ashutosh Bapat , Peter Eisentraut , Petr Jelinek , PostgreSQL Hackers , Tomas Vondra Subject: Re: Decoding speculative insert with toast leaks memory In-reply-to: References: <202106091529.d24gsfbiaeut@alvherre.pgsql> Comments: In-reply-to Amit Kapila message dated "Tue, 15 Jun 2021 16:48:37 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <648019.1623854904.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 16 Jun 2021 10:48:24 -0400 Message-ID: <648020.1623854904@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Amit Kapila writes: > Pushed! skink reports that this has valgrind issues: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dskink&dt=3D2021-= 06-15%2020%3A49%3A26 2021-06-16 01:20:13.344 UTC [2198271][4/0:0] LOG: received replication co= mmand: IDENTIFY_SYSTEM 2021-06-16 01:20:13.384 UTC [2198271][4/0:0] LOG: received replication co= mmand: START_REPLICATION SLOT "sub2" LOGICAL 0/0 (proto_version '1', publi= cation_names '"pub2"') 2021-06-16 01:20:13.454 UTC [2198271][4/0:0] LOG: starting logical decodi= ng for slot "sub2" 2021-06-16 01:20:13.454 UTC [2198271][4/0:0] DETAIL: Streaming transactio= ns committing after 0/157C828, reading WAL from 0/157C7F0. 2021-06-16 01:20:13.488 UTC [2198271][4/0:0] LOG: logical decoding found = consistent point at 0/157C7F0 2021-06-16 01:20:13.488 UTC [2198271][4/0:0] DETAIL: There are no running= transactions. ... =3D=3D2198271=3D=3D VALGRINDERROR-BEGIN =3D=3D2198271=3D=3D Conditional jump or move depends on uninitialised valu= e(s) =3D=3D2198271=3D=3D at 0x80EF890: rel_sync_cache_relation_cb (pgoutput.= c:833) =3D=3D2198271=3D=3D by 0x666AEB: LocalExecuteInvalidationMessage (inval= .c:595) =3D=3D2198271=3D=3D by 0x53A423: ReceiveSharedInvalidMessages (sinval.c= :90) =3D=3D2198271=3D=3D by 0x666026: AcceptInvalidationMessages (inval.c:68= 3) =3D=3D2198271=3D=3D by 0x53FBDD: LockRelationOid (lmgr.c:136) =3D=3D2198271=3D=3D by 0x1D3943: relation_open (relation.c:56) =3D=3D2198271=3D=3D by 0x26F21F: table_open (table.c:43) =3D=3D2198271=3D=3D by 0x66D97F: ScanPgRelation (relcache.c:346) =3D=3D2198271=3D=3D by 0x674644: RelationBuildDesc (relcache.c:1059) =3D=3D2198271=3D=3D by 0x674BE8: RelationClearRelation (relcache.c:2568= ) =3D=3D2198271=3D=3D by 0x675064: RelationFlushRelation (relcache.c:2736= ) =3D=3D2198271=3D=3D by 0x6750A6: RelationCacheInvalidateEntry (relcache= .c:2797) =3D=3D2198271=3D=3D Uninitialised value was created by a heap allocation =3D=3D2198271=3D=3D at 0x6AC308: MemoryContextAlloc (mcxt.c:826) =3D=3D2198271=3D=3D by 0x68A8D9: DynaHashAlloc (dynahash.c:283) =3D=3D2198271=3D=3D by 0x68A94B: element_alloc (dynahash.c:1675) =3D=3D2198271=3D=3D by 0x68AA58: get_hash_entry (dynahash.c:1284) =3D=3D2198271=3D=3D by 0x68B23E: hash_search_with_hash_value (dynahash.= c:1057) =3D=3D2198271=3D=3D by 0x68B3D4: hash_search (dynahash.c:913) =3D=3D2198271=3D=3D by 0x80EE855: get_rel_sync_entry (pgoutput.c:681) =3D=3D2198271=3D=3D by 0x80EEDA5: pgoutput_truncate (pgoutput.c:530) =3D=3D2198271=3D=3D by 0x4E48A2: truncate_cb_wrapper (logical.c:797) =3D=3D2198271=3D=3D by 0x4EFDDB: ReorderBufferCommit (reorderbuffer.c:1= 777) =3D=3D2198271=3D=3D by 0x4E1DBE: DecodeCommit (decode.c:637) =3D=3D2198271=3D=3D by 0x4E1F31: DecodeXactOp (decode.c:245) =3D=3D2198271=3D=3D = =3D=3D2198271=3D=3D VALGRINDERROR-END regards, tom lane