Catching the fault with sigaction does not give you much opportunity to correct and continue. In fact it seems that you cannot continue from the signal handler. I don't have access to a Linux system, but I tried ignoring the fault on our z/OS Unix system, and the process went into an infinite loop. I suspect it retries the operation. One would need to be able to tell the system to skip the operation.
I am not up on ESTAE. On Windows you don't have a way to catch this that I know of. Perhaps some undocumented API function allows this. The problem with laying this at the feet of the application programmer is that they are not perfect, and when the program fails it actually the end user that suffers. -----Original Message----- From: McKown, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: Re: Perpetuating Myths about the zSeries > -----Original Message----- > From: Fargusson.Alan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 28, 2003 12:49 PM > To: [EMAIL PROTECTED] > Subject: Re: Perpetuating Myths about the zSeries > > <snip> > > If I may ramble on a bit: one thing I have noticed is that > all systems I have worked with have one common problem, which > is programs that try to access memory regions outside of the > allocated virtual memory for the process. On Windows this > results in the famous general protection fault, on Unix it > results in the famous segmentation fault, and on z/OS it is > the famous SOC4. I wonder if there isn't a better way to > deal with this problem then just aborting the program. Users > find this problem really annoying. > Well, with UNIX (sigaction()) and z/OS programs (ESTAE / ESPIE), the programmer can "catch" this error and attempt to recover. I am not very Windows literate, but I'd lay odds it has something similar. I don't know what the OS itself could do to automatically "fix" this. I'd say this problem can be laid at the feet of the application programmer. -- John McKown Senior Systems Programmer UICI Insurance Center Applications & Solutions Team +1.817.255.3225 This message (including any attachments) contains confidential information intended for a specific individual and purpose, and its' content is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this transmission, or taking any action based on it, is strictly prohibited.
