我正在安装Valgrind,但遇到了一些问题。我的平台信息:
Linux xx-ThinkPad-X61 3.2.0-39-generic-pae #62-Ubuntu SMP Wed Feb 27 22:25:11 UTC 2013 i686 i686 i386 GNU/Linux
我遵循valgrind文件夹中自述文件的安装说明。./configure ->make -> sudo make install。
我不能理解自述文件中的以下提示,我只是忽略了它。
Important! Do not move the valgrind installation into a pla
我已经为一个嵌入式设备编译了val差制,并执行了下面的命令来检查泄漏。
./valgrind --leak-check=full --xml=yes --xml-file=<xml file path> <application>
但是它给出了以下错误。
valgrind: Fatal error at startup: a function redirection
valgrind: which is mandatory for this platform-tool combination
valgrind: cannot be set up. Details
我刚从apt-get安装了valgrind,它是根据which安装到/usr/bin/valgrind上的。然而..。
$ valgrind
bash: /usr/local/bin/valgrind: No such file or directory
这是怎么回事?
$ /usr/bin/valgrind
valgrind: no program specified
valgrind: Use --help for more information.
还有..。提供文件时,valgrind将不会运行...
$ /usr/bin/valgrind ex3
valgrind: ex3: co
我已经看过了与这个错误有关的答案。然而,我的问题是,一旦我有了libc的首次亮相,我应该放置这个库的位置是什么?
我已经为我的目标环境下载了val研读和交叉编译。我尝试了以下所有不同的组合:
我将libc放在/lib中,并在/lib/debug中进行了调试
将调试器重命名为libc.debug
导出VALGRIND_LIB以包括/lib、/lib/debug
最后但并非最不重要的是,下面是实际错误:
==29946== Memcheck, a memory error detector
==29946== Copyright (C) 2002-2017, and GNU G
我选择了qnx 6.5的valgrind二进制,并能够在示例程序上运行qnx二进制文件,如下所示:
# /usr/valgrind/x86/usr/bin/valgrind
valgrind: no program specified
valgrind: Use --help for more information.
# /usr/valgrind/x86/usr/bin/valgrind --version
valgrind-3.10.1
# /usr/valgrind/x86/usr/bin/valgrind --tool=memcheck
valgrind: no p
我正在使用macports安装Valgrind,并得到以下错误:
---> Computing dependencies for valgrind
---> Building valgrind
Error: org.macports.build for port valgrind returned: command execution failed
Please see the log file for port valgrind for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sour
我正在尝试写一个bash脚本,它将检查第一个参数,如果它是一个特定值,那么它将从参数中删除该参数并设置一些东西:
#!/bin/bash -x
echo args=$@
if [ "$1" == "valgrind" ]; then
echo running under valgrind
set $tool=valgrind
shift 1
elif [ "$1" == "debug" ]; then
echo running under gdb
set $tool=gdb --args
在具有valgrind-3.13.0版本的MacOS (10.12.6)上运行valgrind --tool=massif benchmark1 --massif-out-file=test.out时,将生成输出,但仅以默认文件名格式生成,即massif.out.\d+。未生成任何test.out文件。示例输出为:
==32233== Massif, a heap profiler
==32233== Copyright (C) 2003-2017, and GNU GPL'd, by Nicholas Nethercote
==32233== Using Valgrind-3.13.
我尝试过使用
但在制作之后,我得到了
make[2]: Leaving directory '/home/milenko/valgrind-3.11.0/mpi'
Making all in solaris
make[2]: Entering directory '/home/milenko/valgrind-3.11.0/solaris'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/milenko/valgrind-3.11.0/sol
我正在为android marshmellow设备集成AOSP中的valgrind。
+ Device Architecture- linux-x86
+ kernel Arch - 3.14.55-x86_64
+ valgrind version - valgrind-3.11.0.SVN.aosp
+ Host Architecture - linux-x86_64 (on this machine I am building image for device)
当我运行命令"valgrind ls -l“进行测试时。它显示以下错误--
root@ET50T:/ # va
有没有可能在新的Mac OS上安装valgrind?brew tell
brew install -HEAD valgrind
valgrind: This formula either does not compile or function as expected on macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.
valgrind ls -l
valgrind: mmap-FIXED
我一直在尝试安装Valgrinds工具集成
(Linux工具:)
在eclipse中,但是在安装过程中我得到了以下错误:
Cannot complete the install because one or more required items could not be found.
Software being installed: Valgrind Tools Integration 1.0.0.201209191645 (org.eclipse.linuxtools.valgrind.feature.group 1.0.0.201209191645)
Missing
我正在使用名为的RcppEigen编写一个R包
我认为我的项目中的某个地方可能存在内存泄漏,但我不确定。不幸的是,我在运行Valgrind时遇到了问题,因为它似乎不支持OS X Mojave,并且我遇到了详细的错误。
我认为重现这个错误应该很容易:
library(RcppCoDA) # devtools::install_github("jsilve24/RcppCoDA")
library(microbenchmark)
d <- c(100,1000)
X <- matrix(abs(rnorm(prod(d))), d[1], d[2])
X <-
我正在学习“艰难地学习C语言”,并进入了关于安装Valgrind的章节,遵循这些确切的说明:
# 1) Download it (use wget if you don't have curl)
curl -O http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2
# use md5sum to make sure it matches the one on the site
md5sum valgrind-3.6.1.tar.bz2
# 2) Unpack it.
tar -xjvf valgrind-3.6.1.tar.bz2
我有最新的Valgrind源代码。我想在目标计算机(powerpc)上安装powerpc,它不支持构建任何软件。因此,我需要在我的构建机器(X86)上交叉编译powerpc机器的x86。现在我的问题是how to install the cross compiled Valgrind在我的目标机器上吗?
我正尝试在装有Snow Leopard的Mac上安装Valgrind,但遇到错误。这就是我在终端里输入的内容。
$ curl -O http://valgrind.org/downloads/valgrind-3.8.1.tar.bz2
$ md5sum valgrind-3.8.1.tar.bz2
$ tar -xjvf valgrind-3.8.1.tar.bz2
$ cd valgrind-3.8.1
$ ./configure
$ make
这是我得到的错误。
Making all in coregrind
make[2]: *** No rule to make target `/u
我正在尝试将valgrind 3.8.1配置为在ARM V7上工作。我首先运行./configure --host=armv7-none-linux-gnueabi
然后我运行make。但是在make之后,我得到了以下错误:
echo "# This is a generated file, composed of the following suppression rules:" > default.supp
echo "# " exp-sgcheck.supp xfree-3.supp xfree-4.supp glibc-2.X-drd.
我安装val差制时没有出现任何问题,但是在运行它时,我仍然会得到以下错误:
valgrind: failed to start tool 'memcheck' for platform 'amd64-linux': No such file or directory
我已经相应地调整了bash文件。我添加了以下路径:/usr/bin/valgrind (使用:which valgrind命令),但它仍然无法工作。然后我添加了路径:/usr/lib/valgrind,它仍然不起作用。我想我对使用Ubuntu的正确的本地目录感到困惑。
我正在使用:
export V