[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: netbsd-5: panic: ureadc: non-positive resid
On Sun, Oct 11, 2009 at 01:18:33AM -0400, Matthew Mondor wrote:
> Under some circumstances, the following panic occurs:
> panic: ureadc: non-positive resid
> Interestingly, I've been able to reproduce it in the following peculiar
> Using a program such as:
> #include <sys/types.h>
> #include <sys/uio.h>
> #include <unistd.h>
> int main(void)
> struct iovec iov;
> char buffer;
> iov.iov_base = buffer;
> iov.iov_len = 0;
> return preadv(0, iov, 1, 0);
> which of course, normally fails with EINVAL.
On my system (currentish i386 kernel) all the read calls return
immediately with 0.
Doesn't matter whether in the console, a pty or screen (probably a pty).
David Laight: david%l8s.co.uk@localhost
Main Index |
Thread Index |