IBM Support

IZ53534: pthread key destructors may be re-entered if they call pthread_s elf or mutex functions

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Another team using the SSM pthread library on Windows is seeing
    pthread key destructors called twice when they should only occur
    once. This results in data corruption and potential crashes.
    While we do not think this bug can affect SSM 4.0, the problem
    and it's solution is still being documented here.
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    No SSM users are affected at the moment.
    ****************************************************************
    PROBLEM DESCRIPTION:
    Another product using the SSM pthread library on Windows is
    seeing pthread key destructors called twice when they should
    only occur once. This results in data corruption and potential
    crashes.
    
    While we do not think this bug can affect SSM 4.0, the problem
    and it's solution is still being documented here because the
    library is maintained and included in SSM 4.0.
    ****************************************************************
    RECOMMENDATION:
    Upgrade to Fix Pack 8 for SSM 4.0.
    ****************************************************************
    

Problem conclusion

  • Set thread-specific key value to NULL before calling the
    destructor. That's what the specification requires, and it also
    stops the destructor from being called twice. If for some reason
    the destructor re-initializes the key value then destructor
    calls are made repeatedly (up to four attempts) as per the
    pthread specification.
    http://www.opengroup.org/onlinepubs/009695399/functions/pthread_
    key_create.html
    
    The fix for this APAR is contained in the following maintenance
    packages:
    | fix pack | 4.0.0-TIV-SSM-FP0008
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ53534

  • Reported component name

    NETCOOL SYS SVC

  • Reported component ID

    5724P4300

  • Reported release

    400

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2009-06-17

  • Closed date

    2009-07-27

  • Last modified date

    2009-07-27

  • 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

    NETCOOL SYS SVC

  • Fixed component ID

    5724P4300

Applicable component levels

  • R400 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCP7NT","label":"Netcool System Service Monitor"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"400","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
27 July 2009