segmentation fault in psql - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject segmentation fault in psql
Date
Msg-id 200103312311.f2VNBGV38159@hub.org
Whole thread Raw
Responses Re: segmentation fault in psql
List pgsql-bugs
David George (david@onyxsoft.com) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
segmentation fault in psql

Long Description
System info: Sparc Solaris 2.7 with GCC 2.95.2
I have compiled Postgresql 7.1RC1 without any problems.
initdb, createuser, createdb work fine.  psql works, I can create a table, and insert data into that table, but if I
tryto select anything I get a core dump.  I even tried just a 'select CURRENT_USER;'.  Here is the output from gdb with
abacktrace: 

GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7"...
Core was generated by `psql test'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/local/lib/libpq.so.2...done.
Loaded symbols for /usr/local/lib/libpq.so.2
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,UltraSPARC-IIi-Engine/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,UltraSPARC-IIi-Engine/lib/libc_psr.so.1
#0  0x274a8 in putc ()
(gdb) bt
#0  0x274a8 in putc ()
#1  0x21044 in print_aligned_text ()
#2  0x23360 in printTable ()
#3  0x23a44 in printQuery ()
#4  0x18820 in SendQuery ()
#5  0x1b044 in MainLoop ()
#6  0x1d5a8 in main ()
(gdb)


Sample Code


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: unix_socket_directory isn't used by all bin tools
Next
From: Tom Lane
Date:
Subject: Re: segmentation fault in psql