无法链接可执行文件“/vendor/X/BINARYFILE”:库“/data/valgrind/libexec/valgrind/vgpreload_core-amd64-linux.so”需要或由

问题描述 投票:0回答:1

在android框架中执行valgrind for.so二进制文件。在命令执行时遇到如下链接器错误,如何解决这个问题?

command: valgrind --leak-check=full --tool=memcheck /vendor/bin/BINARYFILE

=11442== Memcheck, a memory error detector
==11442== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==11442== Using Valgrind-3.23.0 and LibVEX; rerun with -h for copyright info
==11442== Command: /vendor/bin/BINARYFILE
==11442== CANNOT LINK EXECUTABLE "/vendor/bin/BINARYFILE": library "/data/valgrind/libexec/valgrind/vgpreload_core-amd64-linux.so" needed or dlopened by "/vendor/bin/BINARYFILE" is not accessible for the namespace "(default)"
==11442==
==11442== HEAP SUMMARY:
==11442==     in use at exit: 0 bytes in 0 blocks
==11442==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==11442==
==11442== All heap blocks were freed -- no leaks are possible
==11442==
==11442== For lists of detected and suppressed errors, rerun with: -s
==11442== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
memory-leaks frameworks valgrind android-source
1个回答
0
投票

我刚刚看到这个

Android 链接器错误

您可以尝试一下这些建议,如果成功的话请在这里报告吗?

© www.soinside.com 2019 - 2024. All rights reserved.