IBM Support

IC98010: STALE POINTER IN CURSOR HANDLING CODE CAN LEAD TO A CRASH IN FUNCTION CSMGETNEWCDBBUFFER

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When there is a mixture of CLI statements being executed on one
    connection, if one statement retrieves LOB data whilst another
    statement is still retrieving a result set via SQLFetch, then
    there is a possibility that a stale pointer will write data into
    a cached DB2 server side cursor buffer.
    This can lead to a crash in function csmGetNewCDBBuffer as the
    code reuses the buffer.
    
    As a secondary symptom, it can also lead to a wrong
    interpretation of data leading to unexpected symptoms during the
    SQLFetch e.g. error -30020 , or a "data truncation warning" or
    different as the code will not have written data to the right
    location and whatever data happens to be in memory will be read
    instead.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade the database server to v9.7 Fix Pack 10 or higher.   *
    ****************************************************************
    

Problem conclusion

  • This problem was first fixed in v9.7 Fix Pack 10
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC98010

  • 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

    2013-11-28

  • Closed date

    2014-12-08

  • Last modified date

    2014-12-08

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

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

    IT02434 IT02435

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC98010

Modified date: 08 December 2014