|
From: | Harald Cordes | ITGAIN |
Subject: | [Bug-GnuCOBOL] Compiler crashes in empty perform when debugging mode was specified |
Date: | Thu, 13 Apr 2017 08:47:19 +0000 |
Hi, I’m evaluating the usability of the GNU-COBOL-compiler for our purposes. It looks good. I’ve found some issues we have to cope with,
e.g. where the compiler does not tolerate some minor flaws
and I’ve found a real bug. It’s a very minor one but I’d like to report it. Adding a simple continue within the body of the inline-perform solves the problem. The following program causes a crash of the GNU-COBOL-compiler: SOURCE-COMPUTER. IBM-390 WITH DEBUGGING MODE. PERFORM VARYING IND1 FROM 10 BY -1 UNTIL TST(IND1:1) NOT = SPACE END-PERFORM. Message: attempt to reference unallocated memory (signal SIGSEGV) cobc: aborting compile of PERFFAIL.cbl at line 16 I’m using GNU-COBOL: Built Apr 12 2017 11:00:55 Packaged Nov 06 2016 22:36:19 UTC C version "4.3.2 [gcc-4_3-branch revision 141291]" Operating-System – uname -a: Linux j2u-devel-hc 2.6.27.54-0.2-default #1 SMP 2010-10-19 18:40:07 +0200 x86_64 x86_64 x86_64 GNU/Linux Best regards / mit freundlichem Gruß Harald Cordes IT-Berater Mobil: +49 152 0785 4210
ITGAIN Consulting Gesellschaft für IT-Beratung mbH Essener Str. 1 30173 Hannover Tel.: +49 511 51 51 3700 Fax.: +49 511 51 51 3800
Sitz: Hannover Geschäftsführer: Thomas Kalb, Per Stricker, Norbert Wilkening eingetragen beim Amtsgericht Hannover unter HRB 59246
Ust-IDNr. DE214508933 |
PERFFAIL.cbl
Description: PERFFAIL.cbl
[Prev in Thread] | Current Thread | [Next in Thread] |