一般来说,欧拉操作系统都没有安装glibc-debuginfo,所以需要排查注入内存泄漏问题,需要使用valgrind时,它会报错,提示需要暗转glibc-debuginfo。错误信息一般张这样。
valgrind: Fatal error at startup: a function redirection valgrind: which is mandatory for this platform-tool combination valgrind: cannot be set up. Details of the redirection are: valgrind: valgrind: A must-be-redirected function valgrind: whose name matches the pattern: strlen valgrind: in an object with soname matching: ld-linux-x86-64.so.2 valgrind: was not found whilst processing valgrind: symbols from the object with soname: ld-linux-x86-64.so.2 valgrind:
其实解决方案也很简单,安装上glic-debuginfo就行,sudo yum -y install glic-debuginfo
,但是一般这样安装后上面的错误还在。
我到了这步之后想了半天想出了
yum list glic-debuginfo --showduplicates
找到需要的版本
yum install glibc-debuginfo-version
之后就可以使用valgrind了。
标签:glic,varlgrind,debuginfo,glibc,valgrind,yum,无法,64,OpenEuler From: https://www.cnblogs.com/godlmkblog/p/18127392