pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: L Bayuk <lbayuk@pobox.com>
To: pgsql-interfaces@postgresql.org
Subject: BCC-built psql does not work
Date: Tue, 2 Jan 2007 20:22:32 -0500
Message-ID: <20070103012232.GA389@mail.mindspring.com> (raw)

On Mon, Jan 01, 2007 at 09:50:18PM +0000, Mark Morgan Lloyd wrote:
> 
> Do you find the resulting psql reliable? I got it built for 8.1
> but found it very flaky and ended up doing that sort of work
> using an ssh session to the (Linux) server.

I worked some more with BCC-built psql (PostgreSQL 8.2.0). Yes,
it is very broken. One way I can get it to crash is just by
repeating "\h set" 6 times. That's right, 5 times OK, 6th crashes.

I eventually figured out how to get a stack back-trace, of sorts, but I
don't know if it is reliable.  It seems to indicate the crash is in
psql_scan_finish(), calling yy_delete_buffer(), calling yy_flex_free().
But if I take that part out, it crashes somewhere else.  My best guess is
that it scribbled on memory and messed up the malloc/free heap areas.
Since I don't know any good way to debug this on Windows, and I don't
really need BCC-built psql anyway, I am probably going to just drop it.
All I need is libpq, and that seems fine with BCC.



Message-ID: <20070103012232.GA389@mail.mindspring.com>
Permalink:  ../20070103012232.GA389@mail.mindspring.com/
Also on:    postgresql.org/message-id/20070103012232.GA389@mail.mindspring.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: lbayuk@pobox.com
  Subject: Re: BCC-built psql does not work
  In-Reply-To: <20070103012232.GA389@mail.mindspring.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox