IBM Support

IZ77484: BAD C++ STABSTRING

Fixes are available

September 2010 PTF for XL C for AIX, V11.1
September 2010 PTF for XL C/C++ for AIX, V11.1
January 2011 PTF for XL C/C++ for AIX, V11.1
May 2011 PTF for XL C for AIX, V11.1
May 2011 PTF for XL C/C++ for AIX, V11.1
August 2011 PTF for XL C/C++ for AIX, V11.1
November 2011 PTF for XL C/C++ for AIX, V11.1
January 2012 PTF for XL C for AIX, V11.1
January 2012 PTF for XL C/C++ for AIX, V11.1
April 2012 PTF for XL C for AIX, V11.1
April 2012 PTF for XL C/C++ for AIX, V11.1
July 2012 PTF for XL C/C++ for AIX, V11.1
October 2012 PTF for XL C for AIX, V11.1
October 2012 PTF for XL C/C++ for AIX, V11.1
February 2013 PTF for XL C for AIX, V11.1
February 2013 PTF for XL C/C++ for AIX, V11.1
XL C/C++ for AIX Fix Pack 14 (May 2013 PTF) for 11.1
XL C for AIX Fix Pack 14 (May 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 15 (August 2013 PTF) for 11.1
XL C for AIX Fix Pack 15 (August 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 16 (November 2013 PTF) for 11.1
XL C for AIX Fix Pack 17 (February 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 17 (February 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 22 (September 2015 PTF) for 11.1
XL C for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C for AIX Fix Pack 24 (September 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 24 (September 2016 PTF) for 11.1
January 2011 PTF for XL C for AIX, V11.1
August 2011 PTF for XL C for AIX, V11.1
November 2011 PTF for XL C for AIX, V11.1
July 2012 PTF for XL C for AIX, V11.1
XL C for AIX Fix Pack 16 (November 2013 PTF) for 11.1
XL C for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C for AIX Fix Pack 22 (September 2015 PTF) for 11.1

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When running dbx on the code below, dbx crashes due to the
    incorrect generation of a stab string.
    
    The following shows the stab string that is produced for
    class 'd'
    
    [132] m 0x00000000 debug 0 decl
    d:T3=Y8ci805581560:4(i:d1:-1,32,32;u[ci:__ct__1dFv:16;;
    
    _______________________________
    Test Case:
    ----------
    
    class a
    {
      private:
        int a1;
    
      public:
        a(){ a1=1; }
    };
    
    class d : private a
    {
      private:
        int d1;
    
      public:
        d(){ d1=1; }
    };
    
    static int dummy = 0;
    int foo( int parm )
    {
       d bar = *(new d);
       dummy++;
       return 7;
    }
    
    int main(void)
    {
       int arg = 4;
       int result = foo( arg );
    }
    _______________________________
    
    Actual Output:
    --------------
    [1] stop in foo(int)
    [1] stopped in foo(int) at line 22
       22      d bar = *(new d);
    stopped in foo(int) at line 23
       23      dummy++;
    internal error: stack overflow at line 1588 in file
    cplusplus.c
    internal error: stack overflow at line 1546 in file
    cplusplus.c
        a:(internal error: stack overflow at line 2106 in file
    cplusplus.c
    a1 = internal error: stack overflow at line 6270 in file
    eval.c
    ./testcase-1[56]: 1220624 Segmentation fault(coredump)
    
    Expected Output:
    ----------------
    [1] stop in foo(int)
    [1] stopped in foo(int) at line 21
       21   {
    stopped in foo(int) at line 22
       22      d bar = *(new d);
        a:(a1 = 0)
    (d1 = -559038737)
    

Local fix

  • N/A
    

Problem summary

  • PROBLEM DESCRIPTION:
    Uninitalised variable in Tobey
    
    USERS AFFECTED:
    Potetnially any one using -g (stabs)
    

Problem conclusion

  • Fix
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ77484

  • Reported component name

    XL C/C++ AIX

  • Reported component ID

    5724X1300

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-06-14

  • Closed date

    2010-09-10

  • Last modified date

    2010-09-24

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

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

    LI75807

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5724X1200

Applicable component levels

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1"}]

Document Information

Modified date:
06 October 2021