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

recv buf and EFAULT



Hi,

I have a program that uses "recv".
The buffer size is 64000 bytes and
the buffer is allocated on the stack.
I get an EFAULT error.

If I change the buffer to be heap allocated
(malloc) the problem goes away. Similarly, if
I reduce the stack allocated buffer to
be 4000 bytes it works too.

The original version worked fine on
Linux, AIX, HP-UX, Solaris etc - why
not on OpenBSD ?

Am I missing something obvious ?

Thanks

Andy