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 1nQ3dy-0000Of-DA for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Mar 2022 08:50:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nQ3dw-00036P-Bz for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Mar 2022 08:50:32 +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 1nQ3dw-00036G-2n for pgsql-hackers@lists.postgresql.org; Fri, 04 Mar 2022 08:50:32 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nQ3dq-0006m3-K7 for pgsql-hackers@lists.postgresql.org; Fri, 04 Mar 2022 08:50:30 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 4AB6B3200FA9; Fri, 4 Mar 2022 03:50:23 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 04 Mar 2022 03:50:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=BOKk39doyoBSU9lsW9P1AoyZjIOdhkHd9Qxdfl5ya oE=; b=PVYQ/8+RZLEh5ARsqmSenoFFgzVewfX4ePqpBezGWabY3d8bsL4rF+kWE AR+VmYRvdA676wnHoQ9ighO7k/oVAUdsYfH/WrnX4MtaCUPgDoZaEfGWnctZ4J18 fY95a95AcmDNcGCiQPYDqc7UUIV9Ig8JrMd/eTf3obNBcU7MlV/zRoiZS7j4mUkG 8tM1O/T7Lwo8W3lQeWQW+sZOsAHaTs9hdXWCC/A6jvrvt9ZUn/CDB+kIvxH0QjfT AMUK0IQtiVSAXq5OP4KdUTRerA1IKxpWivEeND7W3urZIPwe4ntuvlOqYHsAXiOI eOv+m9HIN8yl3mstTDF/ZoXpAULCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddtjedguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveev udelueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Mar 2022 03:50:21 -0500 (EST) Message-ID: <805c0496-d60d-802b-3d61-73fed38dea16@enterprisedb.com> Date: Fri, 4 Mar 2022 09:50:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: psql - add SHOW_ALL_RESULTS option Content-Language: en-US To: Fabien COELHO Cc: "pgsql-hackers@lists.postgresql.org" References: <18c78a01-4a34-9dd4-f78b-6860f1420c8e@enterprisedb.com> <6954328d-96f2-77f7-735f-7ce493a40949@enterprisedb.com> <2570e2ae-fa0f-aac9-f72f-bb59a9983a20@enterprisedb.com> <46259d13-5f90-1475-3c85-d7a597a2b862@enterprisedb.com> <20220113054433.wdjhidtm7gvyhfts@alap3.anarazel.de> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 15.01.22 10:00, Fabien COELHO wrote: >> The reason this test constantly fails on cfbot windows is a >> use-after-free >> bug. > > Indeed! Thanks a lot for the catch and the debug! > > The ClearOrSaveResult function is quite annoying because it may or may > not clear the result as a side effect. > > Attached v14 moves the status extraction before the possible clear. I've > added a couple of results = NULL after such calls in the code. Are you planning to send a rebased patch for this commit fest?