Re: Function keys cause psql to segfault - Mailing list pgsql-general

From Tom Lane
Subject Re: Function keys cause psql to segfault
Date
Msg-id 14528.1127704250@sss.pgh.pa.us
Whole thread Raw
In response to Re: Function keys cause psql to segfault  (CSN <cool_screen_name90001@yahoo.com>)
Responses Re: Function keys cause psql to segfault
List pgsql-general
CSN <cool_screen_name90001@yahoo.com> writes:
> I did 'strace psql dbname' and this was the output
> after hitting F1:

> read(0, "\33", 1)                       = 1
> read(0, "O", 1)                         = 1
> read(0, "P", 1)                         = 1
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---

Hmm ... I don't have an F1 key, but I typed escape-O-P at a psql
running under Linux, and got this:

Process 28978 attached - interrupt to quit
read(0, "\33", 1)                       = 1
read(0, "O", 1)                         = 1
read(0, "P", 1)                         = 1
write(2, "\7", 1)                       = 1
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
read(0,

So it seems fine here.  I'm wondering if there's something broken
about your machine's readline library.

            regards, tom lane

pgsql-general by date:

Previous
From: CSN
Date:
Subject: Re: Function keys cause psql to segfault
Next
From: Klint Gore
Date:
Subject: Re: Function keys cause psql to segfault