Re: clients segfault on 9.2 - Mailing list pgsql-bugs

From Grégoire Hubert
Subject Re: clients segfault on 9.2
Date
Msg-id CAO6H_SCz4mk7Rgyv1RXo_cUvwo3L=amwdD_=85U-gjDBuS9sWQ@mail.gmail.com
Whole thread Raw
In response to clients segfault on 9.2  (Grégoire Hubert <gregoire.hubert@knplabs.com>)
List pgsql-bugs
2012/8/2 Grégoire Hubert <gregoire.hubert@knplabs.com>:
> Hi,
>
> I have cloned a fresh pg9.2 from github release 7c0fecd and compiled it with
>
> ./configure --prefix=$HOME/local --with-openssl && make && make install
>
> The compilation went like a charm in a LXC container running a debian
> 6.0 with  following kernel
>
> Linux java 3.0.0-21-generic #35-Ubuntu SMP Fri May 25 17:58:20 UTC
> 2012 i686 GNU/Linux
>
> (system that hosts the LXC is an ubuntu).
>
> I have successfuly run initdb and pg_ctl launched the database server
> as usual. When I wanted to use any client to the database (psql,
> createdb), they segfaulted whatever I used the TCP/IP or unix socket,
> all with « trust » authentication in the pg_hba.conf.

Hi again,

I forgot to say I got postgres from the master branch.

I ran gdb, here is the stack trace :

~:$ gdb local/bin/psql
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/greg/local/bin/psql...(no debugging symbols
found)...done.
(gdb) where
No stack.
(gdb) run
Starting program: /home/greg/local/bin/psql
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x001457dc in resetPQExpBuffer () from /home/greg/local/lib/libpq.so.5
(gdb) where
#0  0x001457dc in resetPQExpBuffer () from /home/greg/local/lib/libpq.so.5
#1  0x0013b41f in pqPrepareAsyncResult () from /home/greg/local/lib/libpq.so.5
#2  0x0013c5f0 in PQgetResult () from /home/greg/local/lib/libpq.so.5
#3  0x00136506 in PQconnectPoll () from /home/greg/local/lib/libpq.so.5
#4  0x00137800 in connectDBComplete () from /home/greg/local/lib/libpq.so.5
#5  0x001387c4 in PQconnectdbParams () from /home/greg/local/lib/libpq.so.5
#6  0x08058ef5 in main ()
(gdb)


Cheers
--
Grégoire HUBERT


pgsql-bugs by date:

Previous
From: Grégoire Hubert
Date:
Subject: clients segfault on 9.2
Next
From: Tom Lane
Date:
Subject: Re: clients segfault on 9.2