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 1eoi9u-0005Yx-3G for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Feb 2018 04:07:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoi9s-0004x3-KW for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Feb 2018 04:07:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eoi9s-0004wu-3x for pgsql-bugs@lists.postgresql.org; Thu, 22 Feb 2018 04:07:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoi9k-0004d3-OU for pgsql-bugs@lists.postgresql.org; Thu, 22 Feb 2018 04:06:58 +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 w1M46nLY018418; Wed, 21 Feb 2018 23:06:49 -0500 From: Tom Lane To: "David G. Johnston" cc: "mzhao@insight-tec.co.jp" , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #15076: postmaster crashes unexpectedly when using up arrow key in psql command In-reply-to: References: <151926215049.3890.7661985951683590330@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Wed, 21 Feb 2018 20:29:00 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18415.1519272409.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Feb 2018 23:06:49 -0500 Message-ID: <18417.1519272409@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: >> The following bug has been logged on the website: >> (4) press up arrow key to try to execute the previous SQL of the step(2= ) >> again >> (5) Occasionally, it will show you nothing about the SQL, then you can = try >> to input a character ';' and press Enter key, the PostgreSQL will crash >> unexpectedly > It would help to explain what you actually see in step 5 instead of just > saying crash. In particular is the "failure" in the server or client? I'd lay long odds that what's being described is a psql crash not a server crash, and furthermore that the problem is in libreadline (which is what would be handling up-arrow response). We've heard reports before of flaky readline behavior on Windows. I failed to find an exact match to this report in a moment's worth of trawling the archives, though I did find for instance https://www.postgresql.org/message-id/flat/6a2534f3-4359-617d-d314-1717445= 4eb6d%40orange.fr I think the questions to ask are around where did this copy of psql.exe come from, and what version of readline is included in it, and whether that's up-to-date. regards, tom lane