PM79618: MEMORY LEAK IN SWPRINTF() IN MULTI-THREADED APPLICATION

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Multi-threaded applications using swprintf() may experience an
    out of storage condition.
    
    EXTERNAL SYMPTOMS
    A memory leak of 32k byte buffers in user heap storage will be
    evident in Memcheck VHM (CEL4MCHK) and HEAPCHK tracing.
    
    VERIFICATION STEPS
    Run the HEAPCHK diagnostic report option to verify that there is
    an unmatched allocate of 32768 bytes in swprintf().
    
    KEYWORDS
    swprintf_a
    swprintf
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All multi-threaded applications that use     *
    *                 swprintf() or vswprintf() functions.         *
    ****************************************************************
    * PROBLEM DESCRIPTION: A storage leak may be encountered in    *
    *                      a multi-threaded application.  Storage  *
    *                      associated with the use of swprintf()   *
    *                      function is not released during         *
    *                      thread termination. This storage is     *
    *                      reclaimed during application            *
    *                      termination.  Long running/heavily      *
    *                      threaded applications using swprintf()  *
    *                      or vswprintf() may encounter            *
    *                      storage constraints.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See problem description.
    

Problem conclusion

  • Code has been modified to release storage associated with
    swprintf() and vswprintf() during thread termination.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM79618

  • Reported component name

    LE C LIBRARY

  • Reported component ID

    568819805

  • Reported release

    780

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-20

  • Closed date

    2013-02-14

  • Last modified date

    2013-03-04

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

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

    UK91661 UK91662

Modules/Macros

  • CELHTTRM CELQTTRM EDC40081
    

Fix information

  • Fixed component name

    LE C LIBRARY

  • Fixed component ID

    568819805

Applicable component levels

  • R770 PSY UK91661

       UP13/02/27 P F302

  • R780 PSY UK91662

       UP13/02/27 P F302

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.



Rate this page:

(0 users)Average rating

Document information


More support for:

z/OS XL C/C++
Runtime

Software version:

780

Operating system(s):

MVS, z/OS

Reference #:

PM79618

Modified date:

2013-03-04

Translate my page

Machine Translation

Content navigation