tech-kern archive
[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
> way.
>
> Using a program such as:
>
> #include <sys/types.h>
> #include <sys/uio.h>
> #include <unistd.h>
>
> int main(void)
> {
> struct iovec iov[1];
> char buffer[1024];
>
> iov[0].iov_base = buffer;
> iov[0].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
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index