Valgrind不能与WSL一起使用吗? [英] Valgrind does not work with WSL?
本文介绍了Valgrind不能与WSL一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我为计算机安装WSL
时,我为拥有更本地支持的Linux
系统而不是使用VirtualBox
感到非常兴奋.但是,当我尝试运行它时出现此错误.有原因吗?
When I installed WSL
for my computer I was very excited to have a more natively supported Linux
system rather than using VirtualBox
. However I get this error when I try to run it. Is there a reason why?
我很乐意根据需要提供更多信息.
I am happy to give more information as required.
--4364:0:aspacem -1: ANON 0038000000-00383d5fff 4022272 r-x-- SmFixed d=0x000 i=25365 o=0 (0) m=0 /usr/lib/valgrind/memcheck-amd64-linux
--4364:0:aspacem Valgrind: FATAL: aspacem assertion failed:
--4364:0:aspacem segment_is_sane
--4364:0:aspacem at m_aspacemgr/aspacemgr-linux.c:1502 (add_segment)
--4364:0:aspacem Exiting now.
推荐答案
肯定有可能
我在使用apt
直接安装它时遇到了一些问题,但是可以通过一些非常简单的步骤手动安装它:
I've encountered some problems installing it directly with apt
, however it can be installed manually with some very simple steps:
- 下载源文件:
wget http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2
(在您阅读本文时,可能会有较新的版本) - 提取归档文件:
tar -xvjf valgrind-3.12.0.tar.bz2
- 配置安装过程:
cd
进入提取的文件夹valgrind-3.12.0
,然后启动./configure
- 创建:只需在
valgrind-3.12.0
文件夹中启动make
- 检查依赖关系:启动
make check
以查看是否满足安装所需的所有依赖关系(例如:您必须安装g ++,只需启动sudo apt install g++
) - 安装 valgrind :键入
sudo make install
进行安装
- Download the source file:
wget http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2
(by the time you read this there could be a newer version) - Extract the archive:
tar -xvjf valgrind-3.12.0.tar.bz2
- Configure the installation process:
cd
into the exctracted foldervalgrind-3.12.0
and then launch./configure
- Make: simply launch
make
while in thevalgrind-3.12.0
folder - Check the dependencies: launch
make check
to see whether all the dependencies necessary for the installation are satisfied (e.g: you'll have to install g++, just launchsudo apt install g++
) - Install valgrind: type
sudo make install
to install it
这篇关于Valgrind不能与WSL一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文