这几天做汇编实验,总是跳出这个warning,就想着找时间解决掉它。今天就来看看这个问题到底怎么解决。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(gdb) r
Starting program: xxxxxxxxx
warning: the debug information found in "/usr/lib/debug//lib64/ld-2.17.so.debug" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/ld-2.17.so.debug" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib64/ld-2.17.so.debug" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64//ld-2.17.so.debug" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//lib64/libc-2.17.so.debug" does not match "/lib64/libc.so.6" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/libc-2.17.so.debug" does not match "/lib64/libc.so.6" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib64/libc-2.17.so.debug" does not match "/lib64/libc.so.6" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64//libc-2.17.so.debug" does not match "/lib64/libc.so.6" (CRC mismatch).

同时运行结束还有这样应该报错

1
Missing separate debuginfos, use: debuginfo-install glibc-2.17-307.el7.1.x86_64

先百度一波 CRC mismatch

半小时过去,无果。

算了还是先看后面一句 Missing separate debuginfos

按照他的说法执行 sudo debuginfo-install glibc-2.17-307.el7.1.x86_64

漫长的等待…

大概二十几分钟过去了,安装结束,再次运行gdb发现前面的warning也没有了!

原因是什么呢?

有时间再更吧,先抓紧时间做实验了~