gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memory Corruption? Or Something Else?


From: Robert Heller
Subject: Memory Corruption? Or Something Else?
Date: Wed, 3 Jul 2024 09:31:54 -0400 (EDT)

I have written a simple little COBOL program (as a demo), but something
strange is going on that I just cannot figure out.

For some reason a field in a structure is getting extra characters in it from
some unknown source when I assign (via MOVE) to that field. It is a TABLE
item. Also, when I write the structure out to a file, the data that is written
is scrambled some as well (for no appearent reason).

I am using gnucobol4 on a Raspberry Pi 5 (Debian 12.5):

ii  gnucobol4         4.0~early~20200606-6+b1 arm64        COBOL compiler
ii  libcob5:arm64     4.0~early~20200606-6+b1 arm64        COBOL compiler - 
runtime library
ii  libcob5-dev:arm64 4.0~early~20200606-6+b1 arm64        COBOL compiler - 
development files

The code is available on GitHub here:
https://github.com/RobertPHeller/PiggyBank
There is just one source file (there is a simple Makefile there as well).

It *looks* like a compiler or runtime bug, but it is possible there is
something wrong with my code (but I am not seeing it).

--
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services




reply via email to

[Prev in Thread] Current Thread [Next in Thread]