I am using libgmp.so.3.3.3 in my application on RHEL 5.3. From my application I am taking the hash of /usr/lib64/libgmp.so.3.3.3 through sha512sum utility. My requirement is that the hash of gmp should match the hash of gmp when it was first installed otherwise it exits with an error.
When I run my applications a few times, suddenly it appears the hash of libgmp.so.3.3.3 changes and my application exits. When I re-install the gmp, it starts to work fine again as the hash matches with the one hard coded in my application.
I want to know that whether this is a known problem? Does hashes of .so files on hard drive changes automatically or am I dealing some undefined behavior?
Regards