Discussion:
kassert
(too old to reply)
Pratik Mathur
2005-09-15 03:36:54 UTC
Permalink
What does Kassert do?
Am i allowed to comment out kassert, cause that gives some error when i
hae a background process cause the refCount set to 1 and the kassert is
trying to match it with 2.

--
Iulian Neamtiu
2005-09-17 04:37:27 UTC
Permalink
Post by Pratik Mathur
What does Kassert do?
Kassert is a nice way of telling you 'Your kernel has crashed'. It is
triggered on OS bugs or conditions under which the OS is in bad shape
and cannot continue. An informative error message that comes up
deterministically is way more helpful than a random crash.
Post by Pratik Mathur
Am i allowed to comment out kassert, cause that gives some error when i
hae a background process cause the refCount set to 1 and the kassert is
trying to match it with 2.
Commenting out Kassert's means prolonging the kernel's agony. Most
probably, you'll hit another Kassert or the kernel will crash in a
spectacular manner.

I'm not an official TA, so your mileage might vary. When I was a TA,
you would've lost points for commenting out Kassert's, rather than
finding and fixing the error in your program. It's like speeding and the
uprooting the speed limit sign to claim there was no restriction :)

Iulian

Loading...