Thread: psql always ends with a SEGV:

psql always ends with a SEGV:

From
Renaud Thonnart
Date:
Hello,

We are starting to run PGSQL V7.1  on Solaris 7. It seems to work but
psql binary always ends with a SEGV.
Did somebody already see this problem?

> psql test701
Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

test701=# \q
Segmentation fault (core dumped)
>

gdb get the following trace:

Program received signal SIGSEGV, Segmentation fault.
0xff363b68 in __do_global_dtors_aux () from
/usr/local/pgsql/lib/libpq.so.2
(gdb) where
#0  0xff363b68 in __do_global_dtors_aux () from
/usr/local/pgsql/lib/libpq.so.2
#1  0xff3728dc in _fini () from /usr/local/pgsql/lib/libpq.so.2
#2  0xff3b9f5c in ?? ()
#3  0xff0a00d0 in _exithandle () from /usr/lib/libc.so.1
#4  0xff116814 in exit () from /usr/lib/libc.so.1


Thanks
RT


Re: psql always ends with a SEGV:

From
Tom Lane
Date:
Renaud Thonnart <thonnart@amwdb.u-strasbg.fr> writes:
> We are starting to run PGSQL V7.1  on Solaris 7. It seems to work but
> psql binary always ends with a SEGV.

Paul McGarry just reported in pgsql-bugs that updating to gcc 2.95.3
made a similar problem go away for him.

            regards, tom lane

Re: psql always ends with a SEGV:

From
Renaud Thonnart
Date:
OK but we don't use this version as that command shows :
PROMPT> gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs

gcc version 2.95.2 19991024 (release)

Renaud THONNART

Tom Lane wrote:

> Renaud Thonnart <thonnart@amwdb.u-strasbg.fr> writes:
> > We are starting to run PGSQL V7.1  on Solaris 7. It seems to work but
> > psql binary always ends with a SEGV.
>
> Paul McGarry just reported in pgsql-bugs that updating to gcc 2.95.3
> made a similar problem go away for him.
>
>                         regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


Re: psql always ends with a SEGV:

From
Tom Lane
Date:
Renaud Thonnart <thonnart@amwdb.u-strasbg.fr> writes:
> OK but we don't use this version as that command shows :
> PROMPT> gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
> gcc version 2.95.2 19991024 (release)

Precisely.  Try updating to 2.95.3 to see if the problem goes away.

            regards, tom lane