IBM Support

IV82080: SEGMENTATION FAULT IN RULESCFGSET IF MOTD BIGGER THAN 1024 CHARS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The rulescfgset command may produce a "Segmentation
    fault"
    issue when /etc/motd file is bigger than 1024 characters.
    If core dump file is produced, the stack trace will show
    something similar to :
     (dbx) where
     .() at 0xf050
     fread_unlocked(??, ??, ??, ??) at 0xd01228d8
     fread@AF5_4(??, ??, ??, ??) at 0xd0122bf8
     vioReadEntireFile(??, ??, ??) at 0xd55145b4
     vioRemoveMsgFromFile(??, ??, ??) at 0xd55147bc
     rulescfgset_clear_motd(??) at 0xd122876c
     main(??, ??) at 0x1000057c
    

Local fix

  • Decrease the number of characters in motd file
    under 1024 bytes.
    

Problem summary

  • When rulescfgset is run, it tries to clear the alert it put
    in /etc/motd.
    If /etc/motd is larger than 1024 characters, then this part
    of the operation can core dump before it has a chance to
    remove the message from /etc/motd.
    
    However it will have successfully updated the system settings
    before the core dump, so the motd edit is the only thing left
    undone.
    

Problem conclusion

  • Change the way we read in the motd prior to removing our
    message so that it can successfully read in a motd larger than
    1024 chars without core dump.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV82080

  • Reported component name

    VIRTUAL I/O SER

  • Reported component ID

    5765G3400

  • Reported release

    220

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-03-03

  • Closed date

    2016-03-03

  • Last modified date

    2016-03-03

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

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

Fix information

  • Fixed component name

    VIRTUAL I/O SER

  • Fixed component ID

    5765G3400

Applicable component levels

[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SSAVPM","label":"PowerVM VIOS Standard Edition"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"220"}]

Document Information

Modified date:
05 August 2024