ecpg core dump
ecpg core dump
Hi,
I am using Red Hat 6.0 + PostgreSQL 6.5.1, now I
have a problem in ecpg parsing.
Table definition:
CREATE TABLE mtr_name
(
recno int PRIMARY KEY, -- PRIMARY KEY
mtrid char(80), -- material id
mtrname char(20), -- material name(short)
full char(300), -- full material name
spare int
);
The program(mtr_name.pgc) in attachment include 4 C
functions:
1. sql_select_between
2. sql_update(int RECNO,char* field)
3. sql_update(int RECNO)
4. sql_delete(int RECNO)
When I executed
/usr/local/pgsql/bin/ecpg mtr_name.pgc
I got "Segmentation fault (core dumped)"
But if I commented either the C function 1
(sql_select_between) or 4 (sql_delete), and everything
seemed fine.Can anybody give me a hint?
Thanks
S.F.Lee
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.comRe: [INTERFACES] ecpg core dump
От:
Michael Meskes <meskes@postgresql.org>
Дата:
On Thu, Feb 10, 2000 at 10:58:38PM -0800, S.F. Lee wrote: > When I executed > /usr/local/pgsql/bin/ecpg mtr_name.pgc > I got "Segmentation fault (core dumped)" I just tried with the latest version of ecpg (2.7.0) and it seems to work fine. Do you have the complete postgresql source code? If so I could send you my actual source to try. Or else I could send you a binary but I would probably have to link it statically as my system uses glibc 2.1.3, libreadline4 and libncurses5. Michael -- Michael Meskes | Go SF 49ers! Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire! Tel.: (+49) 2431/72651 | Use Debian GNU/Linux! Email: Michael@Fam-Meskes.De | Use PostgreSQL!