Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-199

[XLC++ 8.0/Linux/PPC] SIGSEGV throwing an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1.3
    • None
    • External
    • None

    Description

      PMR 02264,K78,000

      When compiled and linked with XLC++ 8.0 using the specified command line options the program below exits abnormally. The same program runs successfully to
      completion when compiled and linked with gcc on the same machine (using gcc -g -m64 t.cpp -lsupc++).

      $ cat t.cpp && xlc -qversion && xlc t.cpp -q64 -g -lxlopt -lxl -libmc++ -lsupc++ -lgcc -lgcc_eh && ./a.out
      struct A { };

      void foo ();
      void bar () throw (A)

      { return foo (); }

      int foobar ()
      {
      try

      { bar (); return 1; }

      catch (A)

      { return 0; }

      catch (...) { }
      return 2;
      }

      int main ()
      {
      return foobar ();
      }

      void foo ()
      {
      struct B: A { };

      B b;

      throw b;
      }
      IBM XL C/C++ Advanced Edition V8.0 for Linux
      Version: 08.00.0000.0000
      Segmentation fault

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebor Martin Sebor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: