IBM Support

IV85633: 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

    IV85633

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D13

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-06-10

  • Closed date

    2016-06-10

  • Last modified date

    2016-06-10

  • 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

  • RD13 PSY

       UP



Document information

More support for: XL C for AIX
Compiler

Software version: D13

Reference #: IV85633

Modified date: 10 June 2016