pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Emmanuel <tuco@pasteur.fr>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5890: malloc error
Date: Wed, 16 Feb 2011 17:46:52 -0500
Message-ID: <6008.1297896412@sss.pgh.pa.us> (raw)
In-Reply-To: <201102162153.p1GLr9hB068759@wwwmaster.postgresql.org>
References: <201102162153.p1GLr9hB068759@wwwmaster.postgresql.org>

"Emmanuel" <tuco@pasteur.fr> writes:
> Operating system:   Mac OSX 10.6.6

> When I type a select query and then push the 'tab' key for table name
> completion (without) schema name, if there more than one table starting with
> the same prefix, I get this error:

> legiobiblio=# select pmid from pub<tab>
> psql(41402) malloc: *** error for object 0x4: pointer being freed was not
> allocated

This is a known and oft-reported bug in OS X's libedit --- it stomps on
memory that doesn't belong to it anytime the number of possible
completions is exactly 9 + 10*N, for any N>=0.  Complain to Apple:
the fix was applied upstream quite some time ago, and they are being
derelict by not adopting it.  In the meantime, you might consider
building psql with readline instead of libedit.  (Note you need real GNU
readline, as /usr/lib/libreadline.dylib is just a link to libedit.)

			regards, tom lane



view thread (2+ messages)

Message-ID: <6008.1297896412@sss.pgh.pa.us>
Permalink:  ../6008.1297896412@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6008.1297896412@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tuco@pasteur.fr
  Subject: Re: BUG #5890: malloc error
  In-Reply-To: <6008.1297896412@sss.pgh.pa.us>
  References: <201102162153.p1GLr9hB068759@wwwmaster.postgresql.org> <6008.1297896412@sss.pgh.pa.us>

* 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