Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8IHP-0005rx-U6 for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Apr 2018 04:31:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8IHM-00021f-Cc for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Apr 2018 04:31:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8IHM-00021W-6X for pgsql-bugs@lists.postgresql.org; Tue, 17 Apr 2018 04:31:40 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8IHE-00016n-GM for pgsql-bugs@lists.postgresql.org; Tue, 17 Apr 2018 04:31:39 +0000 Received: from [192.168.127.1] (port=25324 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 1f8IHA-000N0e-Q6; Tue, 17 Apr 2018 04:31:28 +0000 Received: from [127.0.0.1] (port=53523 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1f8IHA-000CFc-3H; Tue, 17 Apr 2018 04:31:28 +0000 From: Andrew Gierth To: Vitaly V. Voronov Cc: Tom Lane , Alvaro Herrera , Andres Freund , PostgreSQL mailing lists , Peter Geoghegan Subject: Re: BUG #15144: *** glibc detected *** postgres: postgres smsconsole [local] SELECT: double free or corruption (!pre In-Reply-To: <87y3hmee19.fsf@news-spur.riddles.org.uk> (Andrew Gierth's message of "Tue, 17 Apr 2018 04:48:14 +0100") Message-ID: <87tvsae9ph.fsf@news-spur.riddles.org.uk> References: <152296798225.31227.6026116154621550125@wrigleys.postgresql.org> <3343581523000521@web56o.yandex.ru> <1935021523893352@web12o.yandex.ru> <87y3hmee19.fsf@news-spur.riddles.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 17 Apr 2018 05:31:28 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Andrew" == Andrew Gierth writes: Andrew> Of course the weak point in this theory is that there seems to Andrew> be no reason at all why BufFileClose could possibly get called Andrew> twice ... the only other theory would be that something has Andrew> somehow reset the memory context _before_ we got here. ... and in this context I just noticed that pg_stat_statements is in play, which could be significant. -- Andrew (irc:RhodiumToad)