IBM Support

IV85130: CORRUPT OBJECT FILES/DWARF DEBUG INFO WITH LARGE SOURCE FILES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling large source files using the DWARF debug format,
    corrupted XCOFF object files are produced that are not accepted
    by AIX utilities, including the linker and the ar archive tool.
    
    Tools such as ar might encounter internal errors due to the
    corrupted object file, while the linker might output errors such
    as:
    
    
    ld: 0711-599 SEVERE ERROR: Section header 5 (.dwinfo) in object
    /tmp/3998512_0.o:
            Fields in the header are invalid:
            s_scnptr = 4175648; s_size = 8608238
    
    ld: 0711-599 SEVERE ERROR: Section header 6 (.dwabrev) in object
    /tmp/3998512_0.o:
            Fields in the header are invalid:
            s_scnptr = 13704128; s_size = 2051
    
    ld: 0711-599 SEVERE ERROR: Section header 7 (.dwarnge) in object
    /tmp/3998512_0.o:
            Fields in the header are invalid:
            s_scnptr = 13706192; s_size = 67184
    
    ld: 0711-599 SEVERE ERROR: Section header 8 (.dwpbnms) in object
    /tmp/3998512_0.o:
            Fields in the header are invalid:
            s_scnptr = 13857344; s_size = 922451
    
    ld: 0711-599 SEVERE ERROR: Section header 9 (.dwpbtyp) in object
    /tmp/3998512_0.o:
            Fields in the header are invalid:
            s_scnptr = 14779824; s_size = 178544
    

Local fix

  • Use the stabstring debug format instead of DWARF.
    

Problem summary

  • PROBLEM DESCRIPTION:
    When compiling large files with -g and -qdbgfmt=dwarf, the
    resulting object file is corrupted.  The DWARF debug section is
    overwriting the XCOFF scnum value.
    
    USERS AFFECTED:
    Users of DWARF debug information with large source files.
    

Problem conclusion

  • The issue has been corrected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV85130

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-05-27

  • Closed date

    2016-05-27

  • Last modified date

    2016-05-27

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

    IV82692

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

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
19 August 2024