IBM Support

PK58045: MSBS NOT GETTING FREED

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A storage leak is occurring with an MSB (Mutex Status Block).
    The 128-byte MSBs are not getting freed in the users HANC,
    causing progressive storage growth in Sp2 Key8 storage.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of C/C++ multithreaded applications    *
    *                 that use the freopen() function specifying   *
    *                 an empty string for the filename parameter.  *
    ****************************************************************
    * PROBLEM DESCRIPTION: When a file is opened in a              *
    *                      multithreaded environment a mutex is    *
    *                      assigned to the file and represented    *
    *                      by an MSB control block. When the       *
    *                      freopen() function is invoked with      *
    *                      an empty string specified for the       *
    *                      filename, a new MSB control block is    *
    *                      obtained and the original MSB control   *
    *                      block is not freed causing a storage    *
    *                      leak.                                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See problem description.
    

Problem conclusion

  • The freopen() flow was corrected to free the MSB control
    blocks at the appropriate time.
    

Temporary fix

Comments

  • ×**** PE10/05/28 FIX IN ERROR. SEE APAR PM13172  FOR DESCRIPTION
    ×**** AE10/08/19 FIX IN ERROR. SEE APAR PM20821  FOR DESCRIPTION
    ×**** PE10/10/28 FIX IN ERROR. SEE APAR PM20821  FOR DESCRIPTION
    

APAR Information

  • APAR number

    PK58045

  • Reported component name

    LE FOR MVS & VM

  • Reported component ID

    568819801

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2007-12-11

  • Closed date

    2008-04-25

  • Last modified date

    2010-10-28

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

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

    UK35878 UK35879 UK35880 UK35881

Modules/Macros

  • CELHREOP CELQREOP EDC4005D
    

Fix information

  • Fixed component name

    LE C LIBRARY

  • Fixed component ID

    568819805

Applicable component levels

  • R720 PSY UK35878

       UP08/05/10 P F805

  • R730 PSY UK35879

       UP08/05/10 P F805

  • R740 PSY UK35880

       UP08/05/10 P F805

  • R750 PSY UK35881

       UP08/05/29 P F805

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVSBD","label":"Runtime"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":null,"label":null},"Product":{"code":"SG19O","label":"APARs - MVS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
28 October 2010