Exception handling & Purify
Marc Dionne
dionne@cs.wisc.edu
Thu Jun 17 07:13:00 GMT 1999
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
More information about the Gcc
mailing list