BUG #12344: libcurses issue with psql binary of Solaris package - Mailing list pgsql-bugs

From egoitz@sarenet.es
Subject BUG #12344: libcurses issue with psql binary of Solaris package
Date
Msg-id 20141226101635.11499.86889@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #12344: libcurses issue with psql binary of Solaris package
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      12344
Logged by:          Egoitz Aurrekoetxea
Email address:      egoitz@sarenet.es
PostgreSQL version: 9.4.0
Operating system:   Solaris 11.2 (5.11 11.2 i86pc i386 i86pc)
Description:

Good morning,

I'm giving a try to
https://ftp.postgresql.org/pub/binary/v9.4.0/solaris/solaris11/i386/postgresql-9.4.0-S11.i386-64.tar.bz2
under Solaris 11.2. All seems to be running fine although I have found an
issue running the psql binary. It generates a core if you hit for example
CTRL+A after writting an amount of text. I do paste here the test content
and the core in order to fixed...



    pgsql@themachine:~$ /usr/postgres/9.4-pgdg/bin/psql
theconnectingdatabase
    psql (9.4.0)
    Type "help" for help.

    theconnectingdatabase=#
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaSegmentation Fault
(`core' generado)

(you write the aaaaas and later CTRL+A)

    pgsql@themachine:~$
    pgsql@themachine:~$
    pgsql@themachine:~$
    pgsql@themachine:~$ gdb /usr/postgres/9.4-pgdg/bin/psql core
    GNU gdb (GDB) 7.6
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
    and "show warranty" for details.
    This GDB was configured as "i386-pc-solaris2.11".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/postgres/9.4-pgdg/bin/psql...done.
    [New LWP 1]
    [New LWP 1]
    [Thread debugging using libthread_db enabled]
    [New Thread 1 (LWP 1)]
    Core was generated by `/usr/postgres/9.4-pgdg/bin/psql
theconnectingdatabase'.
    Program terminated with signal 11, Segmentation fault.
    #0  0xffff80ffbd5636b1 in tputs () from /lib/64/libcurses.so.1
    (gdb) bt
    #0  0xffff80ffbd5636b1 in tputs () from /lib/64/libcurses.so.1
    #1  0x00000000004612fb in term_move_to_char ()
    #2  0x000000000045f366 in re_refresh_cursor ()
    #3  0x000000000045e39f in el_gets ()
    #4  0x00000000004561d0 in readline ()
    #5  0x0000000000425f75 in gets_interactive ()
    #6  0x0000000000426c0b in MainLoop ()
    #7  0x000000000042bd89 in main ()
    (gdb)

    uname -ar
    SunOS themachine 5.11 11.2 i86pc i386 i86pc

The server part seems to be running fine.

Thank you so much,
Best regards

pgsql-bugs by date:

Previous
From: pawelkokoszkiewicz@gmail.com
Date:
Subject: BUG #12321: problem with installation
Next
From: digoal@126.com
Date:
Subject: BUG #12324: database's age less then max(relAGE) , and stream standby diff with master