Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E7B9CB5DC29 for ; Thu, 16 Jun 2011 02:39:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 71179-04-2 for ; Thu, 16 Jun 2011 05:39:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 682ADB5DC1A for ; Thu, 16 Jun 2011 02:39:41 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p5G5deKE018988; Thu, 16 Jun 2011 01:39:40 -0400 (EDT) To: "Sebastian" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6062: psql terminates on auto-complete In-reply-to: <201106151922.p5FJMGue044731@wwwmaster.postgresql.org> References: <201106151922.p5FJMGue044731@wwwmaster.postgresql.org> Comments: In-reply-to "Sebastian" message dated "Wed, 15 Jun 2011 19:22:16 +0000" Date: Thu, 16 Jun 2011 01:39:40 -0400 Message-ID: <18987.1308202780@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/120 X-Sequence-Number: 30499 "Sebastian" 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