|
From: Jim M. <ji...@by...> - 2005-08-10 09:06:51
|
I have a program that crashes with a Segmentation error. (I have checked it carefully for unbalanced Quotes this time =EF=81=8A ) I compiled it on Red Hat Linux using TC version 0.62.0 I compiled it with the following command: htcobol -c -g -t -C -D -F -P -I $COBCPY -I $IO gltest.cbl I tracked the problem back to the statement =E2=80=9CCOPY GLBAL-IO-WS=E2=80= =9D. If I comment out this COPY statement, then the program compiles. If I leave the COPY statement in the program, but delete every single=20 line from the copybook (so it is empty) then the compiler crashes. If I rename another copybook (one that compiles) to GLBAL-IO-WS, then it=20 crashes. If I rename GLBAL-IO-WS to STUFF2, then the program compiles. I deleted every line I could to come up with a small example. Attached=20 is the result. It has two copybooks =E2=80=93 the offending GLBAL-IO-WS a= nd=20 =E2=80=9CSTUFF=E2=80=9D. If the copybook =E2=80=9CSTUFF=E2=80=9D is remov= ed, the compiler works and=20 reports an error. If STUFF is present, the compiler crashes. I have attached gltest.cbl, STUFF and GLBAL-IO-WS Any ideas? Jim |