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 1hpefE-0005xq-GI for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2019 20:12:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpeeF-0003ZO-0I for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2019 20:11:03 +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 1hpeeE-0003ZF-K2 for pgsql-hackers@lists.postgresql.org; Mon, 22 Jul 2019 20:11:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hpeeC-0001K4-HZ for pgsql-hackers@postgresql.org; Mon, 22 Jul 2019 20:11:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6MKAwuk019775; Mon, 22 Jul 2019 16:10:58 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers , Alvaro Herrera , Dmitry Dolgov <9erthalion6@gmail.com>, Thomas Munro Subject: Re: errbacktrace In-reply-to: <14871.1563825935@sss.pgh.pa.us> References: <20190708162851.GA11054@alvherre.pgsql> <3814a094-7dcd-106b-d2ad-7ef78f563356@2ndquadrant.com> <14871.1563825935@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 22 Jul 2019 16:05:35 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19773.1563826258.1@sss.pgh.pa.us> Date: Mon, 22 Jul 2019 16:10:58 -0400 Message-ID: <19774.1563826258@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Just noticing that ExceptionalCondition has an "fflush(stderr);" > in front of what you added --- perhaps you should also add one > after the backtrace_symbols_fd call? It's not clear to me that > that function guarantees to fflush, nor do I want to assume that > abort() does. Oh, wait, it's writing to fileno(stderr) so it couldn't be buffering anything. Disregard ... regards, tom lane