Re: TRAP 0000 in OS2KRNL



Paul Ratcliffe writes:

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. But shouldn't the system protect itself from such a crash by
testing for the exception and avoiding it?

.



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: 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 ... Further proof that you are a troll, ...
    (comp.os.os2.bugs)
  • 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: 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)