NetBSD-Bugs archive

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

Re: lib/45572: EFAULT from time(3)



The following reply was made to PR lib/45572; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, lib-bug-people%netbsd.org@localhost, 
        gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
jruohonen%iki.fi@localhost
Cc: 
Subject: Re: lib/45572: EFAULT from time(3)
Date: Sat, 5 Nov 2011 22:18:20 -0400

 On Nov 5,  6:40pm, dholland-bugs%netbsd.org@localhost (David Holland) wrote:
 -- Subject: Re: lib/45572: EFAULT from time(3)
 
 |  If the stars are aligned just so, it *can* fail and return EFAULT.
 
 How?
 
 |  Also, based on this text in errno(2) I think it would be better to
 |  change the man page back:
 |  
 |       14 EFAULT Bad address.  The system detected an invalid address in
 |               attempting to use an argument of a call.  The reliable 
detection
 |               of this error cannot be guaranteed and when not detected may
 |               result in the generation of a signal, indicating an address 
vio-
 |               lation, which is sent to the process.
 |  
 |  I have argued in the past that all syscalls returning EFAULT should
 |  also post SIGSEGV; there are a number of reasons that's desirable.
 
 And the siginfo information should point to what PC? How is the debugger
 supposed to behave?
 
 christos
 


Home | Main Index | Thread Index | Old Index