IBM Support

IJ58299: AWK USING STRING FUNCTIONS ON RECORD THEN ON FIELD LEAK

 

APAR status

  • Closed as program error.

Error description

  • example of awk command that will leak :
    dd if=/dev/random|od -x|awk
    '{gsub("a","z");$2="ab";print}'
    will return error like :
    awk: Internal software error in the tostring function
    on...
    It might fail also with error :
    awk: 0602-561 There is not enough memory available now.
    
    It can happen when using any string function instead of
    gsub().
    

Local fix

Problem summary

  • AWK scripts using gsub() or field assignments fail with
    memory exhaustion when processing large files. The process is
    killed with "Out of Memory" error.
    

Problem conclusion

  • The AWK memory management is corrected to properly free
    previously allocated memory during record rebuild operations.
    This prevents memory leaks.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ58299

  • Reported component name

    AIX V7.3

  • Reported component ID

    5765CD300

  • Reported release

    730

  • Status

    CLOSED PER

  • HIPER

    NoHIPER

  • Submitted date

    2026-05-13

  • Closed date

    2026-05-13

  • Last modified date

    2026-05-13

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

    IJ57601

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

Fix information

  • Fixed component name

    AIX V7.3

  • Fixed component ID

    5765CD300

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SG11T","label":"AIX 7.3 HIPERS- APARs and Fixes"},"Platform":[{"code":"PF053","label":"Power Systems"}],"Version":"730","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
13 May 2026