我一直在尝试学习 Learn C The Hard Way的在线教程 。
但是,在设置 valgrind 之后(我遵循了帮助在 ubuntu 12.04 上设置 valgrind 的其他链接),当我尝试调试 c 可执行文件时,我发现了以下错误。
ayusman@ayusman-ubuntu:~/lcthw$ valgrind ./ex4
==1984== Memcheck, a memory error detector
==1984== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==1984== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==1984== Command: ./ex4
==1984==
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 …Run Code Online (Sandbox Code Playgroud)