| Summary: | Just Joined! Join Date Sep 2009 Posts 22 Rhel 6.1 how to remove gdb warnings??? | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | spinlock <sayonee> | ||||||
| Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-tools-bugs | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.1 | CC: | jan.kratochvil, sergiodj | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | i386 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-12-29 15:17:12 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
(In reply to comment #0) > warning: the debug information found in "/usr/lib/debug//lib/ld-2.12.so.debug" > does not match "/lib/ld-linux.so.2" (CRC mismatch). Type: rpm -qf /usr/lib/debug//lib/ld-2.12.so.debug /lib/ld-linux.so.2 You should get something like: glibc-debuginfo-2.12-1.47.el6.i686 glibc-2.12-1.47.el6.i686 (a) These two NVRAs (versions) should be the same. (b) If they are the same then do: rpm -V glibc-debuginfo-2.12-1.47.el6.i686 glibc-2.12-1.47.el6.i686 There must be no output (or some config files changes). Either (a) or (b) is wrong on your system and this is why GDB correctly reports it to you, as due to it GDB cannot use the debug information. > Missing separate debuginfo for /lib/ld-linux.so.2 > Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install > /usr/lib/debug/.build-id/30/7b5a6c660c11f61a43d7ba8a1c5e9b05f8ce64.debug > warning: the debug information found in > "/usr/lib/debug//lib/libc-2.12.so.debug" does not match "/lib/libc.so.6" (CRC > mismatch). This is result of the (a) problem. If you do not have matching PKG and PKG-debuginfo you should deinstall PKG-debuginfo as it does not make sense to have non-usable debug info installed. > Currently these are the details of my LINUX DISTRO Component "gdb" is part of GNU/Linux OS. Linux problems should be filed for component "kernel". Also any Red Hat Enterprise Linux support requests should be filed via your subscription channel. Without Red Hat Enterprise Linux subscription you can file Bugs for Fedora instead. > Target: i686-redhat-linux I do not much understand if you have really reasons to not run x86_64. Hello Jan Kratochvil I have executed these commands and here is what I get rpm -qf /usr/lib/debug//lib/ld-2.12.so.debug /lib/ld-linux.so.2 glibc-debuginfo-2.12-1.25.el6.i686 glibc-2.12-1.25.el6.i686 and if I execute this command there is no output as expected # rpm -V glibc-debuginfo-2.12-1.25.el6.i686 glibc-2.12-1.25.el6.i686 # Since you have asked me deinstall I googled and I came across some post in forum and then I executed this command # yum remove glibc-debuginfo but now if I execute gdb ,put a break point at line number 10 and then run ..I get 1 line warning saying ..missing debug info ....etc....which I guess shouldn't come at all Please let me know how to fix these and execute GDB in a clear way without any unnecessary warnings Thanks and regards Hello Jan Kratochvil even after getting the same packages GDB throws warnings rpm -qf /usr/lib/debug//lib/ld-2.12.so.debug /lib/ld-linux.so.2 glibc-debuginfo-2.12-1.25.el6.i686 glibc-2.12-1.25.el6.i686 I have been trying this I guess this would give a clear idea of what is happening # gdb ypkascii.o GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/linuxpractice/ypkascii.o...done. (gdb) br i3 Function "i3" not defined. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) br 3 Breakpoint 1 at 0x80483cd: file ypkascii.c, line 3. (gdb) r Starting program: /home/linuxpractice/ypkascii.o warning: the debug information found in "/usr/lib/debug//lib/ld-2.12.so.debug" does not match "/lib/ld-linux.so.2" (CRC mismatch). warning: the debug information found in "/usr/lib/debug/lib/ld-2.12.so.debug" does not match "/lib/ld-linux.so.2" (CRC mismatch). Missing separate debuginfo for /lib/ld-linux.so.2 Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/30/7b5a6c660c11f61a43d7ba8a1c5e9b05f8ce64.debug warning: the debug information found in "/usr/lib/debug//lib/libc-2.12.so.debug" does not match "/lib/libc.so.6" (CRC mismatch). warning: the debug information found in "/usr/lib/debug/lib/libc-2.12.so.debug" does not match "/lib/libc.so.6" (CRC mismatch). Missing separate debuginfo for /lib/libc.so.6 Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/c3/b065713186188ceda17339e87ed1fd23f9e5fb.debug Breakpoint 1, main () at ypkascii.c:6 6 for (ch = 0; ch <= 254; ch++) (gdb) quit A debugging session is active. Inferior 1 [process 4067] will be killed. Quit anyway? (y or n) y (In reply to comment #4) > rpm -qf /usr/lib/debug//lib/ld-2.12.so.debug /lib/ld-linux.so.2 > glibc-debuginfo-2.12-1.25.el6.i686 > glibc-2.12-1.25.el6.i686 > warning: the debug information found in "/usr/lib/debug//lib/ld-2.12.so.debug" > does not match "/lib/ld-linux.so.2" (CRC mismatch). Is this the official Red Hat Enterprise Linux build? Send: rpm -qi glibc-2.12-1.25.el6.i686 glibc-debuginfo-2.12-1.25.el6.i686 And attach here to this Bug the two files: /usr/lib/debug//lib/ld-2.12.so.debug /lib/ld-linux.so.2 Still I am very certain this is some machine installation problem. Created attachment 550154 [details]
GDB related file
Created attachment 550155 [details]
GDB related file
# rpm -qi glibc-2.12-1.25.el6.i686 glibc-debuginfo-2.12-1.25.el6.i686 Name : glibc Relocations: (not relocatable) Version : 2.12 Vendor: Red Hat, Inc. Release : 1.25.el6 Build Date: Tue 05 Apr 2011 04:37:47 AM EDT Install Date: Thu 20 Oct 2011 07:37:23 AM EDT Build Host: x86-003.build.bos.redhat.com Group : System Environment/Libraries Source RPM: glibc-2.12-1.25.el6.src.rpm Size : 13667859 License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ Signature : RSA/8, Thu 21 Apr 2011 03:45:59 PM EDT, Key ID 199e2f91fd431d51 Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://sources.redhat.com/glibc/ Summary : The GNU libc libraries Description : The glibc package contains standard libraries which are used by multiple programs on the system. In order to save disk space and memory, as well as to make upgrading easier, common system code is kept in one place and shared between programs. This particular package contains the most important sets of shared libraries: the standard C library and the standard math library. Without these two libraries, a Linux system will not function. Name : glibc-debuginfo Relocations: (not relocatable) Version : 2.12 Vendor: Scientific Linux Release : 1.25.el6 Build Date: Fri 20 May 2011 05:24:43 PM EDT Install Date: Fri 30 Dec 2011 04:43:46 PM EST Build Host: spacewalk.fnal.gov Group : Development/Debug Source RPM: glibc-2.12-1.25.el6.src.rpm Size : 88344692 License: LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ Signature : DSA/SHA1, Tue 24 May 2011 02:55:20 AM EDT, Key ID 5e03fde51d1e034b Packager : Scientific Linux URL : http://sources.redhat.com/glibc/ Summary : Debug information for package glibc Description : This package provides debug information for package glibc. Debug information is useful when developing applications that use this package or when debugging this package. This package also contains static standard C libraries with debugging information. You need this only if you want to step into C library routines during debugging programs statically linked against one or more of the standard C libraries. To use this debugging information, you need to link binaries with -static -L/usr/lib/debug/usr/lib compiler options. hello Jan Kratochvil please find the necessary info from the above posts thanks (In reply to comment #8) > # rpm -qi glibc-2.12-1.25.el6.i686 glibc-debuginfo-2.12-1.25.el6.i686 > Name : glibc > Vendor: Red Hat, Inc. > Build Host: x86-003.build.bos.redhat.com This is original Red Hat Enterprise Linux build. > Name : glibc-debuginfo > Vendor: Scientific Linux > Build Host: spacewalk.fnal.gov This is very clearly Scientific Linux and not Red Hat Enterprise Linux. Two different builds cannot match. GDB is correct it reports your installation problem. |
Description of problem: Hello there can someone help me with this warnings being displayed by GDB while debugging a program...these warnings almost fill the screen and is very hard to ignore while taking the important info from gdb debugging.. I am using RHEL 6.1 SANTIAGO (gdb) br 7 Breakpoint 1 at 0x80483e2: file sizes.c, line 7. (gdb) r Starting program: /home/progs/sizes.o warning: the debug information found in "/usr/lib/debug//lib/ld-2.12.so.debug" does not match "/lib/ld-linux.so.2" (CRC mismatch). warning: the debug information found in "/usr/lib/debug/lib/ld-2.12.so.debug" does not match "/lib/ld-linux.so.2" (CRC mismatch). Missing separate debuginfo for /lib/ld-linux.so.2 Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/30/7b5a6c660c11f61a43d7ba8a1c5e9b05f8ce64.debug warning: the debug information found in "/usr/lib/debug//lib/libc-2.12.so.debug" does not match "/lib/libc.so.6" (CRC mismatch). warning: the debug information found in "/usr/lib/debug/lib/libc-2.12.so.debug" does not match "/lib/libc.so.6" (CRC mismatch). Missing separate debuginfo for /lib/libc.so.6 Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/c3/b065713186188ceda17339e87ed1fd23f9e5fb.debug size of int = 4 Breakpoint 1, main () at sizes.c:7 7 printf("size of char = %u\n",sizeof(char)); Currently these are the details of my LINUX DISTRO ..how do I get rid of this...please help # gcc -v Using built-in specs. Target: i686-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux Thread model: posix gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) [root@localhost progs]# gdb -v GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. and the kernel version [CODE][B]Linux localhost.localdomain 2.6.32-131.0.15.el6.i686 #1 SMP Tue May 10 15:42:28 EDT 2011 i686 i686 i386 GNU/Linux thanks and regards