Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xKANm-00000000gwV-2fiK for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Oct 2026 08:12:11 +0000 Received: from localhost ([127.0.0.1]:35978 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xKANm-0000000F6ms-0k5t for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Oct 2026 08:12:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xJabg-00000006Rx6-2IqS for pgsql-bugs@lists.postgresql.org; Wed, 21 Oct 2026 18:00:08 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xJabe-00000000GaR-1rq4 for pgsql-bugs@lists.postgresql.org; Wed, 21 Oct 2026 18:00:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=9qlH3pLWL0nAoRLClQ8fRWTi73m28PAMrb7HG2idtg4=; b=TOFnVD5ikO3a44y4PPu/m7mxTH 99WtDV4P5kj5wKMBinbOb7HWqwY6zmg8LhIv+82KIobZb4NNSgOXiUhD6YnSwf/du3HklblCHMWH0 TQqJ3K485THdgu/G1DlCgEqGwMo8rOL0O6W9M5pVobkUFIJ4yEw4CUD8ZWHDbIlm0jWF/AqYgwxVY gt1acC2fKk9kZA7qfr6UTrUxWu3A5epRhV++ceznL9r24sHEkr59Gzid14KbenPwVaMsVCEDx0Nn+ EtJtjBV4N+f4S94TlPyeCJLEVZc6CU/ifnK/+kzX88dorOE4Rzb8FqYEKRbEOH/sghknCFzA2coZC GflF33tA==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xJabe-00000000gNz-0Nph for pgsql-bugs@lists.postgresql.org; Wed, 21 Oct 2026 18:00:06 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xJabc-0000000220T-2LIb for pgsql-bugs@lists.postgresql.org; Wed, 21 Oct 2026 18:00:04 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19780: gtsvector_picksplit() reads uninitialized data when called with three entries To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: exclusion@gmail.com Reply-To: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Date: Wed, 21 Oct 2026 18:00:01 +0000 Message-ID: <19780-93fb5c0e4ec2af18@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19780 Logged by: Alexander Lakhin Email address: exclusion@gmail.com PostgreSQL version: 19rc1 Operating system: Ubuntu 24.04 Description: =20 The following script: CREATE TABLE t (i tsvector, j tsvector); CREATE INDEX t_idx ON t USING gist (i tsvector_ops (siglen =3D '1800'), j tsvector_ops); INSERT INTO t SELECT (SELECT string_agg(g::text, ' ')::tsvector FROM generate_series(1, 200) g), 'x'::tsvector FROM generate_series(1, 4); INSERT INTO t SELECT (SELECT string_agg(g::text, ' ')::tsvector FROM generate_series(1, 200) g) || 'a', 'x'::tsvector; being executed under Valgrind, triggers: =3D=3D00:00:00:57.066 1678143=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D00:00:00:57.066 1678143=3D=3D at 0x48CBC35: gtsvector_picksplit (tsgistidx.c:685) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x493208E: FunctionCall2Coll (fmg= r.c:1163) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x41409A3: gistUserPicksplit (gistsplit.c:433) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x414127B: gistSplitByKey (gistsplit.c:697) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x4141504: gistSplitByKey (gistsplit.c:747) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x4134199: gistSplit (gist.c:1483) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x4131D58: gistplacetopage (gist.= c:316) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x4133D6D: gistinserttuples (gist= .c:1310) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x4133CC7: gistinserttuple (gist.= c:1263) =3D=3D00:00:00:57.066 1678143=3D=3D by 0x413310D: gistdoinsert (gist.c:8= 92) =3D=3D00:00:00:57.067 1678143=3D=3D by 0x41319E7: gistinsert (gist.c:191) =3D=3D00:00:00:57.067 1678143=3D=3D by 0x4184D62: index_insert (indexam.= c:231) =3D=3D00:00:00:57.067 1678143=3D=3D Reproduced on REL_14_STABLE .. master.