Re: BUG #6062: psql terminates on auto-complete - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6062: psql terminates on auto-complete
Date
Msg-id 18987.1308202780@sss.pgh.pa.us
Whole thread Raw
In response to BUG #6062: psql terminates on auto-complete  ("Sebastian" <skurscheid@gmail.com>)
List pgsql-bugs
"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

pgsql-bugs by date:

Previous
From: John R Pierce
Date:
Subject: Re: BUG #6062: psql terminates on auto-complete
Next
From: "Delorme, Yann"
Date:
Subject: Re: BUG #6061: Progresql.exe memory usage using HOLD cursor.