Memory Corruption? Or Something Else?

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

 



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@xxxxxxxxxxxx       -- Webhosting Services
                                                                                                                  





[Index of Archives]     [Gcc Help]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Info]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux