Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id FAA03954 for postgres-dist; Sat, 12 Mar 1994 05:15:58 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199403121315.FAA03954@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from uga.cc.uga.edu (uga.cc.uga.edu [128.192.1.5]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id FAA03945 for <postgres@postgres.berkeley.edu>; Sat, 12 Mar 1994 05:15:57 -0800
Received: from gis.lislab.uga.edu by uga.cc.uga.edu (IBM VM SMTP V2R2) with TCP;
   Sat, 12 Mar 94 08:16:21 EST
Received: by gis.lislab.uga.edu (4.1/SMI-4.1)
	id AA12316; Sat, 12 Mar 94 08:05:40 EST
Date: Sat, 12 Mar 94 08:05:40 EST
From: perera@gis.lislab.uga.edu (Niranjan Perera)
Message-Id: <9403121305.AA12316@gis.lislab.uga.edu>
To: postgres@postgres.Berkeley.EDU
Resent-To: postgres-dist@postgres.Berkeley.EDU
Resent-Date: Sat, 12 Mar 94 05:15:58 -0800
Resent-XMts: smtp


Hi:

I am trying to interface a program to the postgres backend. I am using
flex, bison, libpq, and gcc 2.5.8.

PROBLEM:
I get a core dump :( when I try to yyparse(). The problem reported by
gdb is that it occurs in malloc() ( inside the lex generated code ).

I can get the program to run using lex, yacc, and cc ( K&R C ), but would
prefer to use ANSI C.

QUESTION:
Has anybody been able to use flex, bison, and gcc 2.5.8 to compile against
the backend ? If so, How does one get around the malloc() problem ? I even
tried using palloc().

Any suggestions or hints ?

-- Niranjan

p.s The version of postgres is 4.1, and it is a precompiled sparc binary.


