pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred
4+ messages / 2 participants
[nested] [flat]

* BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred
@ 2011-01-24 23:41 David E. Wheeler <david@kineticode.com>
  2011-01-24 23:49 ` Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: David E. Wheeler @ 2011-01-24 23:41 UTC (permalink / raw)
  To: pgsql-bugs


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<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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred
  2011-01-24 23:41 BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred David E. Wheeler <david@kineticode.com>
@ 2011-01-24 23:49 ` Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-24 23:50   ` Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred David E. Wheeler <david@kineticode.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2011-01-24 23:49 UTC (permalink / raw)
  To: David E. Wheeler <david@kineticode.com>; +Cc: pgsql-bugs

"David E. Wheeler" <david@kineticode.com> writes:
> 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

This has been reported before, most recently last week.  It's a libedit
bug (and yes it's been reported to Apple, but another complaint directed
there wouldn't hurt).

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred
  2011-01-24 23:41 BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred David E. Wheeler <david@kineticode.com>
  2011-01-24 23:49 ` Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-01-24 23:50   ` David E. Wheeler <david@kineticode.com>
  2011-01-25 00:12     ` Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: David E. Wheeler @ 2011-01-24 23:50 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

On Jan 24, 2011, at 3:49 PM, Tom Lane wrote:

> This has been reported before, most recently last week.  It's a libedit
> bug (and yes it's been reported to Apple, but another complaint directed
> there wouldn't hurt).

Oh. I've probably complained to them myself. First noticed it quite some time ago. Anyone got a test case that doesn't involve building PostgreSQL?

Thanks,

David





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred
  2011-01-24 23:41 BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred David E. Wheeler <david@kineticode.com>
  2011-01-24 23:49 ` Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred Tom Lane <tgl@sss.pgh.pa.us>
  2011-01-24 23:50   ` Re: BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred David E. Wheeler <david@kineticode.com>
@ 2011-01-25 00:12     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2011-01-25 00:12 UTC (permalink / raw)
  To: David E. Wheeler <david@kineticode.com>; +Cc: pgsql-bugs

"David E. Wheeler" <david@kineticode.com> writes:
> Oh. I've probably complained to them myself. First noticed it quite some time ago. Anyone got a test case that doesn't involve building PostgreSQL?

Per the prior discussion, all you need is an example where there are
exactly 9 + 10*N (N>=0) possible completions.  I haven't tried, but if
their shell uses libedit you could probably provoke a coredump with a
command-line TAB in a suitably-set-up directory, no test case code at all.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2011-01-25 00:12 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 23:41 BUG #5846: Segfault Postgresql Built with --lib-libedit-preferred David E. Wheeler <david@kineticode.com>
2011-01-24 23:49 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-01-24 23:50   ` David E. Wheeler <david@kineticode.com>
2011-01-25 00:12     ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox