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

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rudolf Leitgeb <r(dot)leitgeb(at)x-pin(dot)com>
Cc: Euler Taveira de Oliveira <euler(at)timbira(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4397: crash in tab-complete.c
Date: 2008-09-08 13:03:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Rudolf Leitgeb <r(dot)leitgeb(at)x-pin(dot)com> writes:
> Sorry for the delay, here are the compile warnings
> I got when I compiled tab-complete.c for x86_64:

> =========================================================
> tab-complete.c: In function psql_completion:
> tab-complete.c:601: warning: implicit declaration of function  
> completion_matches
> tab-complete.c:601: warning: assignment makes pointer from integer  
> without a cast

Well, that nicely explains a crash in a 64-bit build, so the question
is what happened to your declaration of completion_matches().  It's
certainly there on my Mac:

tgl$ grep completion_matches /usr/include/readline/readline.h
char           **completion_matches(const char *, CPFunction *);

I'm still suspicious that you've got something bogus under
/usr/local/include that is masking the correct include file.

			regards, tom lane

In response to


pgsql-bugs by date

Next:From: Rudolf LeitgebDate: 2008-09-08 13:56:28
Subject: Re: BUG #4397: crash in tab-complete.c
Previous:From: Rudolf LeitgebDate: 2008-09-08 12:31:01
Subject: Re: BUG #4397: crash in tab-complete.c

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