IBM Support

IV60172: KSH93 SET -- CALL IN A FUNCTION CAN CORRUPT SHELL ARGUMENTS APPLIES TO AIX 6100-08

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Running the following script :
    #!/bin/ksh93
    aaaaaaaaaa()
    {
    aaa="b c"
    bbb=$(set -- $a)
    print "p1=$1"
    print $bbb | T=":" read LIST DUMB
    print "p1=$1"
    }
    aaaaaaaaaa $1
    # ./test.ksh93 param1
    p1=param1
    p1=
    ?       <<== $1 is garbaged
    
    That problem can be exhibited in several HACMP scripts
    including process_resources
    

Local fix

  • avoid using set -- in functions.
    

Problem summary

  • KSH93 SET -- CALL IN A FUNCTION CAN CORRUPT SHELL ARGUMENTS
    

Problem conclusion

  • Modified the code so as not to incorrectly de-allocate the
    memory.
    

Temporary fix

Comments

  • 6100-08 - use AIX APAR IV60172
    6100-09 - use AIX APAR IV62432
    6100-09 - use AIX APAR IV62432
    7100-02 - use AIX APAR IV64160
    7100-03 - use AIX APAR IV62380
    7100-04 - use AIX APAR IV62494
    

APAR Information

  • APAR number

    IV60172

  • Reported component name

    AIX 610 STD EDI

  • Reported component ID

    5765G6200

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-05-07

  • Closed date

    2014-07-08

  • Last modified date

    2016-05-11

Fix information

  • Fixed component name

    AIX 610 STD EDI

  • Fixed component ID

    5765G6200

Applicable component levels

  • R610 PSY U867309

       UP15/01/18 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSLLZP","label":"AIX Standard Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSAUMY","label":"IBM AIX Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11Q","label":"AIX 6.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11R","label":"APARs - AIX 7.1 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
11 May 2016