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 1gPIYY-0003qs-Ql for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Nov 2018 02:47:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gPIYX-0005yI-Ds for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Nov 2018 02:47:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPIYX-0005yB-3s for pgsql-bugs@lists.postgresql.org; Wed, 21 Nov 2018 02:47:57 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPIYT-0004fL-QK for pgsql-bugs@lists.postgresql.org; Wed, 21 Nov 2018 02:47:55 +0000 Received: from [192.168.127.1] (port=27658 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gPIYO-00056h-GL; Wed, 21 Nov 2018 02:47:48 +0000 Received: from [127.0.0.1] (port=52047 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gPIYN-0007x6-Q9; Wed, 21 Nov 2018 02:47:47 +0000 From: Andrew Gierth To: Haribabu Kommi Cc: 4321ip@gmail.com, pgsql-bugs@lists.postgresql.org, Tom Lane Subject: Re: BUG #15514: process fails on jsonb_populate_recordset query. see simple example below In-Reply-To: (Haribabu Kommi's message of "Wed, 21 Nov 2018 10:21:39 +1100") Message-ID: <87sgzvrvyg.fsf@news-spur.riddles.org.uk> References: <15514-59d5b4c4065b178b@postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Wed, 21 Nov 2018 02:47:47 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Haribabu" == Haribabu Kommi writes: Haribabu> when the data is NULL, there is no data to populate and the Haribabu> tupleDesc is not updated. Accessing of NULL pointer leads to Haribabu> crash. Attached quick simple patch fixes the problem. Yes, that's an oversight in 4984784f836 (from Tom) which fixed a _different_ crash here. Tom: I can take this one if you want? -- Andrew (irc:RhodiumToad)