valgrind简介及在ubuntu上安装

本文介绍了如何在Ubuntu系统中安装valgrind,包括通过apt-get命令简单安装和本地安装两种方式。此外,文章提及了在安装过程中可能遇到的glibc's debuginfo问题及其解决方法,只需安装libc6-dbg即可。最后,简要说明了valgrind的基本架构,它提供多种工具且使用简便,建议读者查阅官方user manual获取更多信息。
摘要由CSDN通过智能技术生成

                                     valgrind在ubuntu上安装及简介

最近项目中要用到valgrind,所以稍微了解了一下。


一. 安装

       安装很简单,我的环境是ubuntu,只要在终端输入: [ sudo ] apt-get install  valgrind 

       其中sudo可选,当你是root权限下是不需要的。

       当然,你也可以下载压缩包文件,然后本地安装。

二. ubuntu中常见的glibc's debuginfo package

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.so.1
valgrind:  was not found whilst processing
valgrind:  symbols from the object with soname: ld.so.1
valgrind:  
valgrind:  Possible fix
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值