Subject: graceful recovery?!?
From: Jesper Skov (jskov@redhat.com)
Date: Sun Jun 04 2000 - 02:50:46 CDT
>>>>> "sam" == sam th <sam@uchicago.edu> writes:
[snip]
sam> So, if we assert on line 964
sam> 	UT_ASSERT(NULL != pRun);
sam> We are going to segfault, no matter what.  This is bad.
Just to follow up on this - what should be done? Is there a graceful
way to exit? The assert is a dead end - I could do this instead:
 if (!pRun)
 {
     UT_ASSERT(UT_SHOULD_NOT_HAPPEN)
     x = 0;
     y = 0;
     return NULL;
 }
But it's likely to cause a crash immediately after the return since
the caller may be using the returned pointer for calls.
Jesper
This archive was generated by hypermail 2b25 : Sun Jun 04 2000 - 02:50:52 CDT