bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is ``access (NULL, whatever)'' supposed to do?


From: Roland McGrath
Subject: Re: What is ``access (NULL, whatever)'' supposed to do?
Date: Mon, 9 Apr 2007 20:02:32 -0700 (PDT)

It is supposed to crash.  Hopefully it does not hold locks while doing so,
and we should make sure that it doesn't.  But anything that returns EFAULT
on Linux has every right to crash with SIGSEGV or SIGBUS there too, and on
the Hurd we explicitly intend that bad addresses cause crashes and not
errors that might be ignored.  If it's undefined behavior, crashing quickly
is the most humane way to treat the disadvantaged programmer who made an
error or truly didn't know better before.  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]