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

Reply via email to