PM74689: 0C4 IN MVS31FRE WHEN FREEING A BUFFER IN THE I/O STORAGE POOL WHICH IS ALREADY FREED

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • mvs31fre cannot tolerate an element passed in to free from the
    I/O pool structure, which does not have a proper alloc header
    and thus the pgm check. Underneath that, there is a double free
    for a buffer. During fclose processing, through the I/O peg a
    call is made to osfree. osfree+BC frees mbufptr->buffer  then
    later in the same routine osfree+EA frees fcb->savedbuf. When
    these two fields invalidly point to the same buffer, the
    double free occurs.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: C/C++ applications using fixed or variable   *
    *                 datasets with type=record and                *
    *                 multibuffering.                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: C/C++ applications using type=record    *
    *                      datasets with multibuffering may see a  *
    *                      program check in mvs31fre.              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See problem description.
    

Problem conclusion

  • The code was changed to
    fix the problem.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM74689

  • Reported component name

    LE C LIBRARY

  • Reported component ID

    568819805

  • Reported release

    770

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-10

  • Closed date

    2013-02-05

  • 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:

    UK91402 UK91403

Modules/Macros

  • CELHP074 CELHP082 CELQP074 CELQP082 EDC4004F
    EDC40050
    

Fix information

  • Fixed component name

    LE C LIBRARY

  • Fixed component ID

    568819805

Applicable component levels

  • R770 PSY UK91402

       UP13/02/20 P F302

  • R780 PSY UK91403

       UP13/02/20 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:

770

Operating system(s):

MVS, z/OS

Reference #:

PM74689

Modified date:

2013-03-04

Translate my page

Machine Translation

Content navigation