Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B7B7A1337B98 for ; Mon, 24 Jan 2011 19:41:02 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 22374-10 for ; Mon, 24 Jan 2011 23:41:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 19EE61337B94 for ; Mon, 24 Jan 2011 19:41:01 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p0ONf1kZ063544 for ; Mon, 24 Jan 2011 23:41:01 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p0ONf1pC063543; Mon, 24 Jan 2011 23:41:01 GMT (envelope-from www) Date: Mon, 24 Jan 2011 23:41:01 GMT Message-Id: <201101242341.p0ONf1pC063543@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred From: "David E. Wheeler" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201101/176 X-Sequence-Number: 29198 The following bug has been logged online: Bug reference: 5846 Logged by: David E. Wheeler Email address: david@kineticode.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", where "" 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