Confused by segfault with legitimate call to strerror(3) on
amd64 / sysctl (3) setting `odd' errno's
Christoph Mallon
christoph.mallon at gmx.de
Fri Jan 16 03:39:17 PST 2009
Danny Braniss schrieb:
> some facts:
> #include <stdio.h>
> int
> main()
> {
> printf("%s\n", strerror(2));
> return 0;
> }
>
> 1- it works fine on i386
> 2- it bombs on amd64
> 3- with a local strerror.c (instead of the one in libc)
> works fine
> so, there is something realy wrong going on here!
> (and it gows back to at least 7.0-stable)
No, everything is perfectly correct. I suggested this earlier: Compile
with -Wall and you'll see what the problem is.
More information about the freebsd-hackers
mailing list