#: 8264 S12/OS9/68000 (OSK)
17-Nov-90 01:21:01
Sb: #8154-Reading 68000 disks
Fm: Robert Heller 71450,3432
To: Greg Law 72130,23 (X)
Greg:
I know how those stray pointers/indexes can really screw you up in
interesting and bizzare ways. I wrote this program to run on our DECStations
and the program had a bogus array index problem. The wierdness was this: when
the program was compiled and run on a Sun4, it appeared to work ok. It also
worked on the DECStations, when I was writing to a NFS mounted VMS disk, but
trashed the output file when writing to either a local DECStation disk or a NFS
mounted DECStation disk (differently trashed). The problem was my bogus index
was walking on the buffer allocated and used by fwrite() and a different amount
of buffering was being used for different logical output devices and I was
randomly lucking out on the Sun and when writing to the VMS disk.
Robert
|