Confused by segfault with legitimate call to strerror(3) on amd64 / sysctl(3) setting `odd' errno's

Garrett Cooper yanefbsd at gmail.com
Fri Jan 16 00:53:21 PST 2009


On Fri, Jan 16, 2009 at 12:47 AM, Jacques Fourie
<jacques.fourie at gmail.com> wrote:
>
> You need to initialize len to the number of entries in the mib array.
> Try adding 'len = 4' before calling sysctlnametomib() and see if your
> issues go away.

    Ok, that solution works (I think). So, problem 2 down. Now: what
about the segfaulting strerror(3) call on amd64 ;\?
-Garrett


More information about the freebsd-amd64 mailing list