This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Exception handling & Purify


I presume that this is likely to be a Purify issue (since the code runs
fine on its own), but I was wondering if anyone here would have any
insight.

Attempts to run this bit of code:

#include <iostream>
int main(int argc, char *argv[])
{
    try
    {
        throw(1);
    }
    catch (int &i)
    {
        cout << "I caught an int." << endl;
    }
    cout << "Exiting." << endl;
    return 0;
}

under Purify results in a core dump with the following messages:

      Purify instrumented ./t (pid 11461 at Thu Jun 17 09:06:00 1999)
      ABR: Array bounds read
      ABR: Array bounds read
      ABR: Array bounds read
      ABR: Array bounds read
      MSE: Memory segment error
      COR: Fatal core dump

It runs fine on its own.  This is consistent with any egcs version, and
any gcc 2.8.* version, but works ok with gcc 2.7.2.  Is Purify known not
to play nice with this type of code?

Thanks,
Marc


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]