hash of libgmp.so changes automatically

懵懂的女人 提交于 2019-12-11 06:23:51

问题


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

来源:https://stackoverflow.com/questions/14827018/hash-of-libgmp-so-changes-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!