IBM Support

IV94370: XARGS COMMAND DOES NOT HANDLE -L PARAMETER CORRECTLY APPLIES TO AIX 6100-09

A fix is available

 

APAR status

  • Closed as program error.

Error description

  • xargs command -L paramater accept any positive integer
    value, but whatever value is used, the limit is hardcoded
    to have a maximum of 1024 lines per command.
    Depending on the -L size and the number of input args
    line
    the xargs might coredump in stack like :
    
    Segmentation fault in _cat_hard_close at 0xd017a474
    0xd017a474 (_cat_hard_close+0x134) 7c64c02e lwzx
    r3,r4,r24
    (dbx) where
    _cat_hard_close(??) at 0xd017a474
    catgets@AF7_6(??, ??, ??, ??) at 0xd017c0a0
    lcall(??, ??) at 0x10001ac0
    main(??, ??, ??) at 0x10000b1c
    

Local fix

  • Only local fix is not to use -L option if it is suitable
    for the command you are passing args to.
    

Problem summary

  • xargs command used with -L , might core or prints garbage
    value in output.
    

Problem conclusion

  • Fixed the code to handle L flag correctly.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV94370

  • Reported component name

    AIX 610 STD EDI

  • Reported component ID

    5765G6200

  • Reported release

    61E

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2017-03-19

  • Closed date

    2017-07-21

  • Last modified date

    2018-09-21

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

    IV93485

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

Fix information

  • Fixed component name

    AIX 6.1 EXT SUP

  • Fixed component ID

    5765G6299

Applicable component levels

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SG11Q","label":"AIX 6.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"61E","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SG11Q","label":"AIX 6.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"61E","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
17 December 2021