Re: BUG #4397: crash in tab-complete.c

From: Rudolf Leitgeb <r(dot)leitgeb(at)x-pin(dot)com>
To: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4397: crash in tab-complete.c
Date: 2008-09-04 09:59:46
Message-ID: 1CFD9694-865D-40B2-AB51-5170AA94BC3A@x-pin.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Yes, libedit is used. On Mac OSX libreadline is a soft link
to libedit, so that's what's used regardless of configure settings.

Here are the version numbers:

$ ll /usr/lib/libreadline.dylib
lrwxr-xr-x 1 root wheel 15 2 Apr 18:51 /usr/lib/libreadline.dylib -
> libedit.2.dylib

$ ll /usr/lib/libedit.2.dylib
-rwxr-xr-x 1 root wheel 578704 24 Sep 2007 /usr/lib/libedit.2.dylib

$ otool -D /usr/lib/libedit.2.dylib
/usr/lib/libedit.2.dylib:
/usr/lib/libedit.2.dylib

$ otool -L /usr/lib/libedit.2.dylib
/usr/lib/libedit.2.dylib:
/usr/lib/libedit.2.dylib (compatibility version 2.0.0, current
version 2.9.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current
version 5.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.0.0)

$ file /usr/lib/libedit.2.dylib
/usr/lib/libedit.2.dylib: Mach-O universal binary with 4 architectures
/usr/lib/libedit.2.dylib (for architecture ppc7400): Mach-O
dynamically linked shared library ppc
/usr/lib/libedit.2.dylib (for architecture ppc64): Mach-O 64-bit
dynamically linked shared library ppc64
/usr/lib/libedit.2.dylib (for architecture i386): Mach-O dynamically
linked shared library i386
/usr/lib/libedit.2.dylib (for architecture x86_64): Mach-O 64-bit
dynamically linked shared library x86_64

Am 03.09.2008 um 17:38 schrieb Euler Taveira de Oliveira:

> Rudolf Leitgeb escreveu:
>> - Compile psql for x86_64. This can be easily done with the following
>> commands:
>>
>> CFLAGS="-Os -arch x86_64" LDFLAGS="-arch x86_64" ./configure
>> --disable-depend --with-pam --with-openssl
>> --prefix=/Users/rleitgeb/pq_x86_64
>>
> Are you using libedit, right? What is the exact version? Looking at
> the
> backtrace, it seems to be a libedit problem. Try to update your
> version
> or use readline instead.
>
>
> --
> Euler Taveira de Oliveira
> http://www.timbira.com/

--

DI. Dr. Rudolf Leitgeb
Chief Technological Officer
x-pin.com GmbH
Linke Wienzeile 4, Stiege 2, Tür 5
A-1060 Vienna/Austria/Europe
FN 255.127m, UID: ATU61232222
[mobile] +43-664-583-2419
[telefax] +43-1-587-70-84
[e-mail] r(dot)leitgeb(at)x-pin(dot)com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Rainer 2008-09-04 11:56:56 BUG #4398: Backslashes get escaped despite of backslash_quote=off
Previous Message Stephen Cuppett 2008-09-03 18:11:22 Re: BUG #4396: Trigger event fired "UPDATE" when "DELETE" happening via foreign key