IBM Support

IC89855: DB2 MAY ABEND WHEN USING DB2 TEXT EXTENDERS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • A rare timing condition involving loading/unloading of the DB2
    client library when using DB2 text extenders may cause a DB2
    instance to shutdown abnormally (trap).   The trap symptoms may
    vary and are similar to memory corruption.  Examples:
    
    _getpwnam_shadow_r
    _posix_getpwnam_shadow_r
    osshomepath.getpwnam_r
    ossBuildHomeDirectoryRelativePath
    GlobalReg.GetGlobalRegPathnameInternal
    GlobalReg::init
    GlobalReg::GlobalReg
    ossOpenInstanceList
    EnvRegRefresh
    EnvRegOpen
    sqloPRegQueryDefaultValue
    EnvGetDB2SysVar
    EnvQueryDB2SystemVariables
    sqloInitEnvironment
    .sqloAppLibInit
    mod_init1
    usl_init_mods
    uload
    load1
    load
    loadAndInit
    dlopen
    sqloAIXLoadModuleTryShr
    sqloLoadModule
    sqlerLibraryLoad
    .sqlerRoutineLoad
    .sqlriOneTimeInitRtn1Trusted
    sqlriOneTimeInitRtn
    ...
    
    sqleAddToFreeCtxList
    sqleFreeTrustedCtxInternal
    sqleUCtrustedRtnTerm
    sqlerLibraryTrueUnload
    sqlerLibraryUnloadAll
    sqlri_close_udf_eog
    sqlrr_appl_term
    ...
    

Local fix

  • A workaround is to invoke a trusted routine over a persistent
    connection.  This will keep the client library loaded in the db2
    server process, thus avoiding the timing condition.
    db2 connect to <database>
    db2 "values dayofyear(current timestamp)"
    < leave this connection open continuously >
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Systems using DB2 text extenders                             *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 9                        *
    ****************************************************************
    

Problem conclusion

  • Problem first fixed in DB2 Version 9.7 Fix Pack 9
    

Temporary fix

  • See Local Fix
    

Comments

APAR Information

  • APAR number

    IC89855

  • 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-01-25

  • Closed date

    2013-12-18

  • Last modified date

    2013-12-18

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

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

    IC89859

Modules/Macros

  • sqo
    

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 #: IC89855

Modified date: 18 December 2013