IBM Support

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

    IV82692

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-03-16

  • Closed date

    2016-06-21

  • Last modified date

    2016-06-21

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

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

    IV85130 IV85633

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RC10 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCFQM8","label":"Compiler"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
21 June 2016