ECPG segmentation fault

From: Antonio Sergio de Mello e Souza <asergioz(at)bol(dot)com(dot)br>
To: meskes(at)postgresql(dot)org
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: ECPG segmentation fault
Date: 2001-10-19 23:10:45
Message-ID: 3BD0B2F5.2030602@bol.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi all,

ECPG is causing a segmentation fault when compiling source code with
this statement:

EXEC SQL AT db
GRANT INSERT, UPDATE, SELECT ON table TO "user";

Output from gdb:

$ gdb /usr/local/pgsql/bin/ecpg core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Core was generated by `ecpg -t -I ../h -o auxprocbn.c auxprocbn.ec'.
Program terminated with signal 11, Falha de segmentação.
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x8048e2f in cat2_str ()
(gdb) where
#0 0x8048e2f in cat2_str ()
#1 0x8048e9c in cat_str ()
#2 0x804bc56 in yyparse ()
#3 0x80560af in main ()
#4 0x400b79cb in __libc_start_main (main=0x8055c34 <main>, argc=7,
argv=0xbffff994, init=0x8048a34 <_init>, fini=0x805726c <_fini>,
rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbffff98c)
at ../sysdeps/generic/libc-start.c:92
(gdb) quit

I'm using PostgreSQL 7.1.2 and my system is a:

Linux version 2.2.16-13cl (root(at)mapi2(dot)conectiva(dot)com(dot)br) (gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 seg jun 26 17:15:04
BRST 2000
Detected 398201 kHz processor.
Memory: 127848k/131008k available (1028k kernel code, 416k reserved,
1648k data, 68k init)
CPU: Intel Celeron (Mendocino) stepping 05
.

Regards,

Antonio Sergio

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2001-10-19 23:50:12 Re: ECPG segmentation fault
Previous Message John McLaughlin 2001-10-19 02:46:46 JDBC Newbie Question