From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: mzhao@insight-tec.co.jp <mzhao@insight-tec.co.jp>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15076: postmaster crashes unexpectedly when using up arrow key in psql command
Date: Wed, 21 Feb 2018 23:06:49 -0500
Message-ID: <18417.1519272409@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwa9r_P+zminmPFJAs2nydDAmTD8Dvzx4EUcUpdQE_-Lgg@mail.gmail.com>
References: <151926215049.3890.7661985951683590330@wrigleys.postgresql.org>
<CAKFQuwa9r_P+zminmPFJAs2nydDAmTD8Dvzx4EUcUpdQE_-Lgg@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> 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-17174454eb6d%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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, mzhao@insight-tec.co.jp
Subject: Re: BUG #15076: postmaster crashes unexpectedly when using up arrow key in psql command
In-Reply-To: <18417.1519272409@sss.pgh.pa.us>
References: <151926215049.3890.7661985951683590330@wrigleys.postgresql.org> <CAKFQuwa9r_P+zminmPFJAs2nydDAmTD8Dvzx4EUcUpdQE_-Lgg@mail.gmail.com> <18417.1519272409@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox