IBM Support

IV63305: TPROF DUMPS CORE ON DEMANGLE APPLIES TO AIX 7100-04

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Invocation of /usr/bin/tprof -Call -skeuz -r trace
    resulted in a core dump.
    The tprof crashes when it processes huge trace data. The
    crash happened in the C++ demangler code.
    
    
    (dbx) t
    Qualifier::Qualifier(Qualifier::Class**,unsigned
    long,bool,bool)() at 0x90000000088b428
    ValidQualifier(char*,unsigned
    long&,bool,ClassName::ObjectModelKind&,bool)() at
    0x90000000088dad4
    ValidQualifier(char*,unsigned long&,bool,bool)() at
    0x90000000088d89c
    BufferedDemangle(char*,char*&,unsigned long)() at
    0x90000000088a65c
    Demangle(char*,char*&,unsigned long)() at
    0x90000000088ecec
    DeMangle@AF23_1(??, ??, ??) at 0x90000000114b7bc
    ReportProfile(0x9001000a0449f70, 0x0, 0x2198de6b0) at
    0x100025dd0
    PrintReport(0x2198de6b0) at 0x100039108
    
    tprof is multi threaded program which invoke c++'s
    demangle function without serializing call to demangle.
    As the demangle library is not thread safe core dump
    occurred with above stack.
    

Local fix

Problem summary

  • Invocation of /usr/bin/tprof -Call -skeuz -r trace resulted in
    a core dump. The tprof crashes when it processes huge trace
    data. The crash happened in the C++ demangler code.
    
    
    (dbx) t Qualifier::Qualifier(Qualifier::Class**,unsigned
    long,bool, bool)() at 0x90000000088b428
    ValidQualifier(char*,unsigned long&,bool,ClassName::
    ObjectModelKind&,bool)() at 0x90000000088dad4
    ValidQualifier(char*,unsigned long&,bool,bool)() at
     0x90000000088d89c BufferedDemangle(char*,char*&,unsigned
    long)() at 0x90000000088a65c Demangle(char*,char*&,unsigned
    long)() at 0x90000000088ecec DeMangle@AF23_1(??, ??, ??) at
    0x90000000114b7bc ReportProfile(0x9001000a0449f70, 0x0,
    0x2198de6b0) at 0x100025dd0 PrintReport(0x2198de6b0) at
    0x100039108
    
    tprof is multi threaded program which invoke c++'s demangle
    function without serializing call to demangle. As the demangle
    library is not thread safe core dump occurred with above
    stack.
    

Problem conclusion

  • Modified the tprof code to serialize the calls to demangle
    function.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV63305

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-08-06

  • Closed date

    2014-08-06

  • Last modified date

    2016-05-11

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

    IV62981

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

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U861540

       UP15/11/22 I 1000

PTF to Fileset Mapping

[{"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":"710","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":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11R","label":"AIX 7.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
11 May 2016