首页 > 解决方案 > 用于 Raspbian 的 valgrind(破坏者)

问题描述

Raspbian(版本= 10(buster))上的valgrind(3.7.0)似乎不起作用,因为它在调用时挂起。它是使用“apt-get install valgrind”安装的。这是在 /bin/ls 上调用时截断的输出。注意:还有很多警告,我只列出了前 20 行左右。关于可能导致此问题和潜在解决方法的任何想法?

$ valgrind /bin/ls

==2116== Memcheck, a memory error detector
==2116== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2116== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2116== Command: /bin/ls
==2116==
--2116-- WARNING: Serious error when reading debug info
--2116-- When reading debug info from /lib/arm-linux-gnueabihf/ld-2.28.so:
--2116-- Ignoring non-Dwarf2/3/4 block in .debug_info
--2116-- WARNING: Serious error when reading debug info
--2116-- When reading debug info from /lib/arm-linux-gnueabihf/ld-2.28.so:
--2116-- Last block truncated in .debug_info; ignoring
==2116== Conditional jump or move depends on uninitialised value(s)
==2116==    at 0x401A5D0: index (in /lib/arm-linux-gnueabihf/ld-2.28.so)
==2116==
==2116== Conditional jump or move depends on uninitialised value(s)
==2116==    at 0x401A5D4: index (in /lib/arm-linux-gnueabihf/ld-2.28.so)
==2116==
==2116== Conditional jump or move depends on uninitialised value(s)
==2116==    at 0x4008040: _dl_dst_count (in /lib/arm-linux-gnueabihf/ld-2.28.so)
==2116==
==2116== Conditional jump or move depends on uninitialised value(s)
==2116==    at 0x4008288: expand_dynamic_string_token (in /lib/arm-linux-gnueabihf/ld-2.28.so)
==2116==
==2116== Conditional jump or move depends on uninitialised value(s)
==2116==    at 0x401AA80: strlen (in /lib/arm-linux-gnueabihf/ld-2.28.so)
==2116==
==2116== Conditional jump or move depends on uninitialised value(s)
==2116==    at 0x401AA84: strlen (in /lib/arm-linux-gnueabihf/ld-2.28.so)
==2116==
==2116== Conditional jump or move depends on uninitialised value(s)
==2116==    at 0x4017F68: malloc (in /lib/arm-linux-gnueabihf/ld-2.28.so)    
...

标签: profilingvalgrindraspbian

解决方案


推荐阅读