This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Exception handling & Purify
- To: egcs at egcs dot cygnus dot com
- Subject: Exception handling & Purify
- From: Marc Dionne <dionne at cs dot wisc dot edu>
- Date: Thu, 17 Jun 1999 09:13:07 -0500
- Organization: University of Wisconsin
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