When it's a glibc error, it will go out of it's way to write it to the tty rather than let it get redirected. I've haven't tried it myself, but adding the environment variable "LIBC_FATAL_STDERR_=1" to the environment should force this output to stderr, where it will be redirected as usual.