help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc3.2.3 : exception caught, but still segment fault


From: red floyd
Subject: Re: gcc3.2.3 : exception caught, but still segment fault
Date: Wed, 18 May 2005 22:13:02 GMT
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

linq936@hotmail.com wrote:
Hi,
  I am using gcc3.2.3 as the compiler for my c++ code on Red Hat Linux
Enterprise 3. I find that even an exception is caught, "Segment Fault"
is still thrown out and program crashes.

  Here is my code,
int func0(){
   ...
   if (...some condition...){
     throw MyException();
   }
}

char* func(){
   try{
      ...
      func0();
   }
   catch (MyException& ){
      cout << "Hey catch exception" << endl;
      return NULL;
   }
}

  In running the code, I can see that "Hey catch exception", and then
"Segment Fault", it never returns to the caller of func().

  Is this a known problem?

Thanks.


I had a similar problem.  By any chance do you have MATLAB installed?

Note: Followup set to gnu.g++.help, since this is OT for c.l.c++. Please continue reading this thread there.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]