IBM Support

IC68709: RUNNING COBOL APPLICATION MAY FAIL WILL MEMORY BOUNDARY ERRORS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Cobol progrma worked fine in old environment. Moving to db2 v9.5
    fp4 and recompiled and now failing.
    
    After running the old module against the system it worked ok.
    After compiling the new module with Micro Focus on our system32
    they got the following error.
    
    Below is the error they are getting when running COBDB2. They
    have run the MicroFocus debug utility to determine that the
    error is occurring on the ?call sqlgcrea? statement.
    
    $ ./COBDB2 COLTEST,/data/db2/coltest
    CREATing database ...
    please wait... this will take a while ...
    
    Execution error : file 'COBDB2'
    error code: 114, pc=0, call=1, seg=0
    114     Attempt to access item beyond bounds of memory (Signal
    11)
    

Local fix

  • Modify sqlenv.cbl file to add $IF clause. For example, the
    modified file will look like this:
    
    (...)
          * default extent size
               05 SQLTSEXT               PIC S9(9) COMP-5.
    $IF P64 SET
               05 FILLER                    PIC X(4).
    $END
               05 SQLCATTS               USAGE IS POINTER.
               05 SQLUSRTS               USAGE IS POINTER.
    (...)
    
    
    instead of like this:
    
    (...)
          * default extent size
               05 SQLTSEXT               PIC S9(9) COMP-5.
    
               05 FILLER                    PIC X(4).
    
               05 SQLCATTS               USAGE IS POINTER.
               05 SQLUSRTS               USAGE IS POINTER.
    (...)
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The sqledbdesc structure is incompatible between             *
    * 32-bitcobolapplications and 64-bit db2. This leads to        *
    * memoryboundaryissues at run-time.See CRM 39121,344,000 for   *
    * details.Cobolprogrma worked fine in old environment. Moving  *
    * to db2v9.5fp4 and recompiled and now failing.After running   *
    * the oldmodule against the system it workedok.  After         *
    * compiling thenew module with Micro Focus on oursystem32 they *
    * got thefollowing error.Below is the error they are getting   *
    * whenrunning COBDB2.They  have run the MicroFocus debug       *
    * utilityto determinethat the error is occurring on the call   *
    * sqlgcreastatement../COBDB2                                   *
    * COLTEST,/data/db2/coltestCREATingdatabase ...please wait...  *
    * this will take a while...Execution error : file              *
    * 'COBDB2'error code: 114, pc=0,call=1, seg=0114    Attempt to *
    * access item beyond bounds ofmemory(Signal 11)                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 version 9.7 Fix Pack 3.                       *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 version 9.7 Fix Pack 3.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC68709

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-18

  • Closed date

    2010-08-24

  • Last modified date

    2010-08-24

  • APAR is sysrouted FROM one or more of the following:

    IZ69055

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R950 PSN

       UP

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
24 August 2010