Problem:
While attempting to compile a COBOL program to gnt on AIX, you receive an error similar to the following:
# cob -u -C trace myprog.cbl
 
Execution error : file 'cdi2'
error code: 114, pc=0, call=1, seg=0
114     Attempt to access item beyond bounds of memory (Signal 11)
cob32: error(s) in code generation: myprog.int
Resolution:
This problem can be caused by attempting to compile to gnt when the /proc filesystem is not mounted on AIX. Please ensure the /proc filesystem is correctly mounted, and try the compile again. You can determine whether the /proc filesystem is mounted by using the following command:
df -k
The following is a sample output from the above command. Notice that the /proc filesystem is listed:
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4         52428800  52091832    1%    13618     1% /
/dev/hd2         26214400  22404200   15%    80332     2% /usr
/dev/hd9var      20971520  18467484   12%    11457     1% /var
/dev/hd3         10485760   4408132   58%    10855     2% /tmp
/dev/fwdump       1048576   1045944    1%        6     1% /var/adm/ras/platform
/dev/hd1        157286400  66847692   58%   523032     4% /home
/dev/hd11admin      524288    523864    1%        5     1% /admin
/proc                   -         -    -         -     -  /proc
/dev/hd10opt     19922944  17120872   15%    33406     1% /opt
/dev/livedump      524288    523880    1%        4     1% /var/adm/ras/livedump
/dev/fslv00     262144000   7331100   98%   613931    26% /home1

