pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ecpg core dump
3+ messages / 2 participants
[nested] [flat]

* ecpg core dump
@ 2000-02-11 06:58 S.F. Lee <sflee_tw@yahoo.com>
  2000-02-12 12:12 ` Re: [INTERFACES] ecpg core dump Michael Meskes <meskes@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: S.F. Lee @ 2000-02-11 06:58 UTC (permalink / raw)
  To: pgsql-interfaces

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

Attachments:

  mtr_name.pgc (application/octet-stream, 4.6K) download

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

* Re: [INTERFACES] ecpg core dump
  2000-02-11 06:58 ecpg core dump S.F. Lee <sflee_tw@yahoo.com>
@ 2000-02-12 12:12 ` Michael Meskes <meskes@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Meskes @ 2000-02-12 12:12 UTC (permalink / raw)
  To: S.F. Lee <sflee_tw@yahoo.com>; +Cc: pgsql-interfaces

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!



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

* Re: [INTERFACES] ecpg core dump
@ 2000-02-13 07:46 S.F. Lee <sflee_tw@yahoo.com>
  0 siblings, 0 replies; 3+ messages in thread

From: S.F. Lee @ 2000-02-13 07:46 UTC (permalink / raw)
  To: pgsql-interfaces

> Michael Meskes <meskes@postgreSQL.org> wrote:

> 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.
ƒÞ 
ƒÞ Yes, I installed the latest postgresql 6.5.3 source
code yesterday. But I found ecpg is still of version
2.6.0. Please send me the new one.
ƒÞ 
Thanks,
ƒÞ                      S.F.Lee

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com



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


end of thread, other threads:[~2000-02-13 07:46 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-02-11 06:58 ecpg core dump S.F. Lee <sflee_tw@yahoo.com>
2000-02-12 12:12 ` Michael Meskes <meskes@postgresql.org>
2000-02-13 07:46 Re: [INTERFACES] ecpg core dump S.F. Lee <sflee_tw@yahoo.com>

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