"Serious error when reading debug info" - 抑制?忽视?修复?



我正在使用valgrind尝试在C-CUM-C 程序中找到违反内存访问的原因。即使避免了此访问(即,当一切正常时(告诉我:

==11436== Memcheck, a memory error detector
==11436== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==11436== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==11436== Command: bin/monetdb-bp-reader /home/eyalroz/dbfarms/monetdb/tpch-sf-1
==11436== 
--11436-- WARNING: Serious error when reading debug info
--11436-- When reading debug info from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24:
--11436-- Ignoring non-Dwarf2/3/4 block in .debug_info
--11436-- WARNING: Serious error when reading debug info
--11436-- When reading debug info from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24:
--11436-- Last block truncated in .debug_info; ignoring
--11436-- WARNING: Serious error when reading debug info
--11436-- When reading debug info from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24:
--11436-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4
--11436-- WARNING: Serious error when reading debug info
--11436-- When reading debug info from /lib/x86_64-linux-gnu/libgcc_s.so.1:
--11436-- Ignoring non-Dwarf2/3/4 block in .debug_info
--11436-- WARNING: Serious error when reading debug info
--11436-- When reading debug info from /lib/x86_64-linux-gnu/libgcc_s.so.1:
--11436-- Last block truncated in .debug_info; ignoring
--11436-- WARNING: Serious error when reading debug info
--11436-- When reading debug info from /lib/x86_64-linux-gnu/libgcc_s.so.1:
--11436-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4

我该如何处理这些警告?我应该...

  • 以某种方式修复它们?它在系统库中,而不是我的代码中;甚至有可能对他们做些什么?
  • 以某种方式抑制他们(但没有抑制任何真正的错误消息(?
  • 忽略它们 - 如果我既不能修复也不能抑制?

注意:我在x86_64机器上使用gnu/linux薄荷18.4与内核4.13.0-32。

这可能是由于libstdc 中启用的压缩调试符号。= 810295。

valgrind不支持3.11版本中的压缩调试符号,但现在确实支持它们,请参见https://bugs.kde.org/show_bug.cgi.cgi?id=303877。我建议将valgrind更新为最新版本,或从来源构建:http://valgrind.org/downloads/repository.html。

最新更新