I have a binary statically linked application that was compiled against
Red Hat 7.3 (presumably glibc 2.2.5). The application SegFaults when
run in a Red Hat Advanced Server environment - with glibc 2.3.2.
I had another binary (Samhain - to which I have source!) which had the
same problem and exhibited the same strace. After a recompile, the
newly compiled static binary worked fine.
Why is this? The first binary I don't have source for and need to make
my case - and I'm curious besides. My initial response is "it shouldn't
matter what glibc is, it's statically linked." This appears to be
wrong. Both binaries made open/close calls to ld-linux.so.2,
libnss_files.so.2, /lib/tls/libc.so.6, and others. The segfault occurs
right after ld-linux.so.2 is opened, read, and closed.