pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sebastian <skurscheid@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6062: psql terminates on auto-complete
Date: Thu, 16 Jun 2011 01:39:40 -0400
Message-ID: <18987.1308202780@sss.pgh.pa.us> (raw)
In-Reply-To: <201106151922.p5FJMGue044731@wwwmaster.postgresql.org>
References: <201106151922.p5FJMGue044731@wwwmaster.postgresql.org>

"Sebastian" <skurscheid@gmail.com> writes:
> Operating system:   Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST
> 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386

> When using the auto-complete function (TAB) to complete the name of a
> particular set of tables when writing a SELECT statement, psql crashes with
> following error:

> "malloc: *** error for object 0x2: pointer being freed was not allocated
> *** set a breakpoint in malloc_error_break to debug
> Abort trap"

Yeah, this is a known bug in Apple's version of libedit.  See our
archives, eg here:
http://archives.postgresql.org/pgsql-bugs/2010-04/msg00127.php

Aside from pestering Apple to fix it, there's not much you can do except
install GNU libreadline and link against that instead.

			regards, tom lane



view thread (3+ messages)

Message-ID: <18987.1308202780@sss.pgh.pa.us>
Permalink:  ../18987.1308202780@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18987.1308202780@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, skurscheid@gmail.com
  Subject: Re: BUG #6062: psql terminates on auto-complete
  In-Reply-To: <18987.1308202780@sss.pgh.pa.us>
  References: <201106151922.p5FJMGue044731@wwwmaster.postgresql.org> <18987.1308202780@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