Re: TRAP 0000 in OS2KRNL



NB <nobuyout@xxxxxxxxx> writes:

Paul Ratcliffe wrote:

Steven Levine wrote:

Why only user programs ? It's perfectly possible that there is a bug in
OS2KRNL whre it attempts to divide by zero due to a non-expected divisor
value ...

I've always found the naming of trap 0 interesting. My experience that it
occurs more often when the dividend is too large.

When the dividend is too large and/or the divisor is too small.
Remember the old Borland runtime library error 200 on faster (of the day) CPUs?
That was a 'divide by zero' error where it wasn't dividing by zero.

The meaning of the exception is actually 'divide overflow' - it's just that
it is usually caused by dividing by zero because that always generates that
exception.

I can see user programs doing that, and they can crash without taking down
the system.

What you see is irrelevant, Tholen.

Further proof that you are a troll, nobuyout. You're so obsessed that
you're following me around to another newsgroup.

But shouldn't the system protect itself from such a crash by
testing for the exception and avoiding it?

Only if the software engineers programmed such a test into the system,
Tholen.

Classic begging of the question. But not unexpected from a troll who
has no real intent of addressing the issue at hand.


.



Relevant Pages

  • Re: fexception handling in C
    ... > I am using C on linux and performed a 1/0 operation i.e a divide by ... > zero using integer variables/constants.it gives me a floating point ... Interesting that you got a floating-point exception ...
    (comp.lang.c)
  • Re: fft2 and ifft2 outputs
    ... Dave Robinson ... ./ is this element by element divide? ... whereas correlation requires the conjugation of the second vector. ... The reason that you are getting a divide by zero error is because you ...
    (comp.soft-sys.matlab)
  • Re: DataType Conversion Speed
    ... Then divide by zero to conver to percent. ... > - if either field contains a value, that's the discount, ... > Then divide by zero to conver to percent. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Exceptions are not raised
    ... you're expecting a "divide by zero" exception, but it will not occur, ... dividing by zero is not an illegal operation. ... Dim num1, num2 As Short ...
    (microsoft.public.dotnet.general)
  • Re: TRAP 0000 in OS2KRNL
    ... That was a 'divide by zero' error where it wasn't dividing by zero. ... The meaning of the exception is actually 'divide overflow' - it's just that ... But shouldn't the system protect itself from such a crash by ...
    (comp.os.os2.bugs)