Re: core dump in Pro*C
Date: Fri, 5 Nov 1993 13:51:52 GMT
Message-ID: <CG0uIH.BKt_at_argus.mh.nl>
In article <ALAW.93Nov2090826_at_ap221sun.oracle.com> alaw_at_oracle.com (Alvin W. Law) writes:
In article <1993Nov1.150709.591_at_tybrin.com> carey_at_tybrin.com (Joseph Carey) writes:
> We are getting core dumps when we run a Pro*C program with a global
> int variable 'stat' declared.
>
> The variable name 'stat' is not documented as reserved. Has anyone else
> come across this problem?
>
> We are running Oracle V6.0.36.5.1 and Pro*C 1.4.8.2.2.
'stat' is not a Pro*C reserved word; 'stat' is a UNIX system call. The fouling party is your C compiler, no Pro*C. The core dump occurs when you try to run stat() with NULL pointers as arguments.
To 'beat' situations like this, use lint. It points out that you're redeclaring a sytem call !
Penguin (Felix)
-- Felix Th[e Penguin]. Rijnierse (ryn_at_mh.nl) Multihouse Automatisering BV. Tel: +31 1820 62911 Fx: +31 1820 62500 Doesburgweg 7 2803 PL Gouda Do____You____Always____Trust____Your____First____Initial____Feeling____?Received on Fri Nov 05 1993 - 14:51:52 CET