• Bug#877493: errno == 2 when starting a new process

    From Carlo Arenas@21:1/5 to All on Mon Oct 2 09:20:01 2017
    XPost: linux.debian.bugs.dist

    Package: libc6
    Source: glibc
    Version: 2.24-11+deb9u1

    likely also triggered in other ways (eventhough masked when using a
    dso), but the following seems to be an easy way to replicate :

    $ echo -e '#include <stdio.h>\n#include <errno.h>\nint main() {printf("%d\\n", errno); }' > t.c
    $ gcc -static -o t t.c
    $./t
    2

    the problem is on the patch[1] to add the /etc/ld.so/nohwcap flag and
    that is not resetting errno after it fails to find that file.

    [1] https://anonscm.debian.org/cgit/pkg-glibc/glibc.git/tree/debian/patches/any/local-ldso-disable-hwcap.diff

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)