DB2 - Problem description
Problem IT35987 | Status: Closed |
"114 ATTEMPT TO ACCESS ITEM BEYOND BOUNDS OF MEMORY" ERROR OCCURRED IN 32 BIT MODE. | |
product: | |
DB2 FOR LUW / DB2FORLUW / B50 - DB2 | |
Problem description: | |
After migration to V11.5.4, the sample static.sqb (in sqllib/cobol_mf folder) returned "114 Attempt to access item beyond bounds of memory" when executed in 32-bit mode. (The sample was compiled in 32-bit using the bldapp script provided by IBM. ) The problem occurs only in V11.5.4 and V11.5.5. There is no problem with V11.5.0 or earlier releases. Procedure to reproduce the issue. 1. Copied $DB2_HOME/samples/cobol_mf/* to the working directory. 2. Setup the environment for using Enterprise Developer as below. $ . /opt/microfocus/EnterpriseDeveloper/bin/cobsetenv 3. Set COBMODE to 32bit mode as below. $ export COBMODE=32 4. Build static.sqb by bldapp script. 5. Tried to build static.sqb by bldapp script, but it failed with error since bldapp script links 64-bit by default. (one may uncomment lines for "BITWIDTH=32" and "export COBMODE=32" in bldapp to trigger a 32 bit build). $ ./bldapp static LINE MESSAGES FOR static.sqb ------ ---------------------------------------------------------------- ---- SQL0060W The "COBOL" precompiler is in progress. SQL0091W Precompilation or binding was ended with "0" errors and "0" warnings. LINE? MESSAGES FOR static.bnd ------ ---------------------------------------------------------------- ---- SQL0061W The binder is in progress. SQL0091N Binding was ended with "0" errors and "0" warnings. DB20000I The SQL command completed successfully. DB20000I The TERMINATE command completed successfully. /usr/bin/ld: skipping incompatible /home/db2inst1/sqllib/lib64/libdb2.so when searching for -ldb2 /usr/bin/ld: cannot find -ldb2 /usr/bin/ld: skipping incompatible /home/db2inst1/sqllib/lib64/libdb2gmf.a when searching for -ldb2gmf /usr/bin/ld: cannot find -ldb2gmf collect2: error: ld returned 1 exit status 6. Linked the following command (32bit) $ cob -x -o static static.o checkerr.o -L$DB2_HOME/lib32 -ldb2 -ldb2gmf 7. Static failed with 114 error as following. $ ./static Sample COBOL program: STATIC Enter your user id (default none): db2inst1 Enter your password : password Execution Error: File 'static' ErrorCode: 114, pc=0, call=1, seg=0 114 Attempt to access item beyond bounds of memory (signal 11) | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * all * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Db2 11.5.5.1 or higher * **************************************************************** | |
Local Fix: | |
Solution | |
Workaround | |
**************************************************************** * USERS AFFECTED: * * all * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Db2 11.5.5.1 or higher * **************************************************************** | |
Comment | |
Upgrade to Db2 11.5.5.1 or higher | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 22.02.2021 01.04.2021 06.04.2021 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |