Skip site navigation (1) Skip section navigation (2)

BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred
Date: 2011-01-24 23:41:01
Message-ID: 201101242341.p0ONf1pC063543@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5846
Logged by:          David E. Wheeler
Email address:      david(at)kineticode(dot)com
PostgreSQL version: 9.0.1
Operating system:   Mac OS X 10.6.6
Description:        Segfault Postgresql Built with --lib-libedit-preferred
Details: 

Been meaning to report this for a while.

* Build PostgreSQL on Mac OS X using --with-libedit-preferred.
* Connect to the server from psql
* type "\d feat<tab>", where "<tab>" is the tab key, an attempt to
autocomplete
 * Output for me:

try=# \d mls_fepsql(69838) malloc: *** error for object 0x6: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
zsh: abort      psql corp_schema

YOW! I *assume* it's something funky with libedit, but in case you can't
reproduce it with just the libedit option, I configure my server with:

    ./configure --with-libedit-preferred --with-bonjour --with-perl
PERL=$PERL \
    --with-openssl --with-pam --with-krb5 --with-libxml --with-ldap \
    --with-ossp-uuid --with-includes=/usr/local/include \
    --enable-integer-datetimes --with-zlib \
    --with-libs=/usr/local/lib 

Best,

David

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2011-01-24 23:49:35
Subject: Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred
Previous:From: Kasia TuszynskaDate: 2011-01-24 19:48:21
Subject: BUG #5845: Postgres does not seem to handle unquoted upper cased object identifiers

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group