Search Postgresql Archives

Re: Function keys cause psql to segfault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Douglas McNaught wrote:

CSN <cool_screen_name90001@xxxxxxxxx> writes:

Hmm, in putty (Terminal->Keyboard) I changed "the
function keys and keypad" from "ESC[n~" to "Linux".
Hitting F1-5 in psql outputs "ABCDE" - no segfaults!
Setting it to "Xterm R6" also results in function keys
1-4 causing segfaults (there are also options for
"VT400", "VT100+", and "SCO" - haven't tried those).

Sounds like it might be useful to compile psql with debugging symbols
and get a backtrace from the crash.
Just an oddball theory:

Do we really know what data is being sent with the function keys from XP? If Putty is doing passthrough encoding, this might be the problem.

The od output doesn't look right to me.  One should try:
od -c
F1F2F3F4 ctrl-D
When I try this on a gterm, I get:
^[OQ^[OR^[OS0000000 033   O   Q 033   O   R 033   O   S
0000011
My guess is that Windows is sending some data (maybe embedded nulls) in the data from the Fn key sequences that is causing Readline to crash.

In that case it would be a readline bug not something correctable in psql I'm afraid.

Best Wishes,
Chris Travers
Metatron Technology Consultingp

-Doug

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq




---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

              http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux