Re: psql crash on 9.6.16

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Scot Kreienkamp <Scot(dot)Kreienkamp(at)la-z-boy(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: psql crash on 9.6.16
Date: 2020-03-16 21:09:14
Message-ID: 6f72315f-cc56-83c5-77d7-114ebd73f3ef@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/16/20 12:32 PM, Scot Kreienkamp wrote:

>
> Scot Kreienkamp <Scot(dot)Kreienkamp(at)la-z-boy(dot)com> writes:
>> I was using psql to connect to the local database for a simple update this morning and it crashed. Here's what was printed out after the crash. I was not able to re-create it.
>
> Hm, the backtrace says the problem is somewhere inside libreadline,
> which means it has nothing to do with any SQL-level concepts, but
> rather with editing your input text. Did you do anything unusual
> while typing that line of input --- say, recall it from history,
> or edit it in a way that you don't usually do, or even mistype
> some control character you don't usually type?
>
> Sadly, the visible evidence here doesn't tell us much of anything
> about what provoked the crash :-(
>
> FWIW, there's a pretty good chance that this isn't psql's fault
> per se, but a libreadline bug. You might check to see if you can
> get a newer readline version installed.
>
> regards, tom lane
>
> [Scot Kreienkamp]
> Nothing unusual that I can think of. I typed it in by hand, the update succeeded, and I was able to recall it and run it again from history with no crash.
>

How did you get to the SELECT statement that ultimately crashed the session?

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Björn Lundin 2020-03-16 21:28:54 Re: Order by and timestamp
Previous Message Andres Freund 2020-03-16 20:29:53 Re: unexpected chunk number 2 (expected 0) for toast value ... in pg_toast_18536