From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27879 invoked by alias); 10 Jul 2009 15:16:41 -0000 Received: (qmail 27834 invoked by uid 48); 10 Jul 2009 15:16:28 -0000 Date: Fri, 10 Jul 2009 15:16:00 -0000 Subject: [Bug debug/40713] New: Overlapping .debug_ranges (C++) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jan dot kratochvil at redhat dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00874.txt.bz2 class C { C(); void f() {}; }; C::C() { f(); }; g++ -c -o cu-overlap.o cu-overlap.C -g -O0 readelf --debug-dump=Ranges cu-overlap.o Contents of the .debug_ranges section: Offset Begin End 00000000 0000000000000000 0000000000000034 00000000 0000000000000000 000000000000000a 00000000 0000000000000000 000000000000001a 00000000 000000000000001a 0000000000000034 00000000 Relocation section '.rela.debug_ranges' at offset 0x1560 contains 8 entries: Offset Type Symbol's Value Symbol's Name + Addend 0000000000000000 R_X86_64_64 0000000000000000 .text + 0 0000000000000008 R_X86_64_64 0000000000000000 .text + 34 0000000000000010 R_X86_64_64 0000000000000000 .text._ZN1C1fEv + 0 0000000000000018 R_X86_64_64 0000000000000000 .text._ZN1C1fEv + a 0000000000000020 R_X86_64_64 0000000000000000 .text + 0 0000000000000028 R_X86_64_64 0000000000000000 .text + 1a 0000000000000030 R_X86_64_64 0000000000000000 .text + 1a 0000000000000038 R_X86_64_64 0000000000000000 .text + 34 DWARF3 2.17.3: Address range entries in a range list may not overlap. Contents of the .debug_ranges section: Offset Begin End 1st 00000000 0000000000000000 0000000000000034 - is from .Ltext0 .. .Letext0 2nd 00000000 0000000000000000 000000000000000a - NOT overlapping, COMDAT C::f() 3rd 00000000 0000000000000000 000000000000001a - is from first C::C() instance 4th 00000000 000000000000001a 0000000000000034 - is from second C::C() instance 1st overlaps with 3rd+4th. -- Summary: Overlapping .debug_ranges (C++) Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jan dot kratochvil at redhat dot com GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40713