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 1maemp-0001oS-MF for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Oct 2021 13:59:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1maemo-0005EH-FR for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Oct 2021 13:59:14 +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 1maemn-0005E9-FD for pgsql-bugs@lists.postgresql.org; Wed, 13 Oct 2021 13:59:14 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maemk-0007x1-Dx for pgsql-bugs@lists.postgresql.org; Wed, 13 Oct 2021 13:59:13 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 457C95C00F2; Wed, 13 Oct 2021 09:59:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 13 Oct 2021 09:59:09 -0400 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:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=GkpyOQJDXFhIF0SGIHrJp0CJ6dCWmjZxlqCQ/q6TyHg=; b=YSnvlX3O nFFeDjNPhFX394Fhu9IYb0ig8/ebhfqSwtUoayblF3ZyOXR6MVao1OjBPFYdXtvy g6g2lYF1pEtIABmKOnf5e4+C6S+HMgjhV7K6w6LYNRvcf+lhNLzvUz2Yu9RpNX19 s8JOvv5zOUYnGTdIOJL/huMWhyc77YE8mxOwwglFIooQEaBF22q6Wdnpp4cvmkUI NfJqbEgk0hK6UTPxSnU+a9b5Q9ip+IZVfrxxxCcxPPGnDSIqBIle6GX/12hbMURP Xycr1SR1RR13oa57lyw23JTCtvRABlIhD6bYE0EjmWkijc+wsUn/AxBFqiBqejLB tC+++H+rt8xDZA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddutddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgjgesthekre dttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepudejveejffejve duudetvdekieeuiedtvdeileefkeevjedufeeguedvjefhueelnecuffhomhgrihhnpegv nhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Oct 2021 09:59:08 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 676C12A0780; Wed, 13 Oct 2021 10:59:06 -0300 (-03) Date: Wed, 13 Oct 2021 10:59:06 -0300 From: Alvaro Herrera To: bernddorn@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17227: segmentation fault with jsonb_to_recordset Message-ID: <202110131359.a6m35hpudkg7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <17227-5a28ed1512189fa4@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Oct-13, PG Bug reporting form wrote: > ``` > select * > from ( > select jsonb_path_query_array(module -> 'lectures', '$[*]') as > lecture > from unnest( > array[$${ > "lectures": [ > { > "id": "1" > } > ] > }$$::jsonb]) as unnested_modules(module) > ) as l, > jsonb_to_recordset(l.lecture) as (id text) > limit 1; > ``` Can you provide some sample data that would reproduce the crash? -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/ "It takes less than 2 seconds to get to 78% complete; that's a good sign. A few seconds later it's at 90%, but it seems to have stuck there. Did somebody make percentages logarithmic while I wasn't looking?"