IBM Support

IT29629: APPLICATION CAN GET CAUGHT IN ENDLESS LOOP IN BSORTINITCNTSRTSTACKINFO IF APPLHEAPSZ = 2147483647

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When running SQL we can get caught in an endless loop in
    bsortInitCntSrtStackInfo if APPLHEAPSZ = 2147483647.
    
    The EDU stack can look like the following:
    
    Stack:
    ======================
    
    0x090000004090BE00
    bsortInitCntSrtStackInfo__FP8sqeAgentP23SQLS_BSORT_CNTSRT_STACK
    + 0xA0
    0x09000000408FEC3C
    sqlsBinSort__FP8sqeAgentP10SQLS_SLDESP10SQLS_SORTS + 0xC7C
    0x09000000409019F0
    sqlsBinSortIncremental__FP8sqeAgentP10SQLS_SLDESP10SQLS_SORTSi +
    0x410
    0x09000000408D9AC8
    sqlsopen__FP8sqeAgentiT2P10SQLD_DPREDT2PP8SQLD_CCBPcPUcP12sqlri_
    vectorPP10SQLD_VALUE + 0x3748
    0x090000004078D818
    IPRA.$sqldInsertTQ__FP8sqeAgentPcPP10SQLD_VALUET3P15SQLI_SUBAGNT
    _CB + 0x118
    0x090000004078BFDC sqldParScanSort__FP8sqeAgent + 0x9DC
    0x0900000040C3E7FC IPRA.$sqleSubRequestRouter__FP8sqeAgentPUiPUl
    + 0x159C
    0x0900000040C37AB8 sqleProcessSubRequest__FP8sqeAgent + 0x2C38
    0x090000003C12C8AC RunEDU__8sqeAgentFv + 0x9EC
    0x090000003C106C40 EDUDriver__9sqzEDUObjFv + 0x300
    0x090000003BFE8280 sqloEDUEntry + 0x360
    

Local fix

  • Look to reduce the APPLHEAPSZ value below the maximum
    value(2147483647)
    
    eg.
    
    db2 update db cfg for SAMPLE using APPLHEAPSZ 10000 AUTOMATIC
    
    This should be done before you hit this issue.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1 Mod 4 Fixpack 5 or higher                *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 11.1 Mod 4 Fixpack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT29629

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-07-05

  • Closed date

    2020-01-20

  • Last modified date

    2020-01-20

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

  • 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

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
20 January 2020