public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/47308] New: Dwarf Error: Cannot find signatured DIE referenced from DIE at 0x2581 [in module D:\main64.exe]
@ 2011-01-15 16:22 pluto at agmk dot net
  2011-01-15 16:38 ` [Bug debug/47308] " pluto at agmk dot net
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: pluto at agmk dot net @ 2011-01-15 16:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47308

           Summary: Dwarf Error: Cannot find signatured DIE referenced
                    from DIE at 0x2581 [in module D:\main64.exe]
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pluto@agmk.net


Created attachment 22975
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22975
testcase.

mingw testcase:


main.cpp:

#include <stdexcept>
#include <cstdio>
#include <cstdlib>
#include <windows.h>
#include <winbase.h>

::LONG CALLBACK vectoredExceptionHandler( ::PEXCEPTION_POINTERS ep )
{
        std::printf( "entering vectorized ex. handler 0x%lx...\n",
ep->ExceptionRecord->ExceptionCode );
        return EXCEPTION_CONTINUE_SEARCH;
}

::LONG WINAPI unhandledExecptionFilter( ::PEXCEPTION_POINTERS ep )
{
        std::printf( "entering unhandled ex. filter 0x%lx...\n",
ep->ExceptionRecord->ExceptionCode );
        return EXCEPTION_EXECUTE_HANDLER; // should terminate process.
}

int main()
{
        ::AddVectoredExceptionHandler( 1, vectoredExceptionHandler );
        ::SetUnhandledExceptionFilter( unhandledExecptionFilter );
        try
        {
                int i = 42;
                std::printf( "throwing int %d...\n", i );
                throw i;
        }
        catch ( int i )
        {
                std::printf( "catching int %d...\n", i );
        }
        volatile int* p = 0;
        std::printf( "accessing null pointer...\n" );
        *p = 0;
        return 0;
}

makefile:

CXXFLAGS := -Wall -gdwarf-2 -g2 -fdwarf2-cfi-asm --save-temps

all: main.cpp
        /local/devel/toolchain46/x86_64-pc-mingw32/bin/x86_64-pc-mingw32-g++
$(CXXFLAGS) main.cpp -o main64.exe && mv main.s main64.s

clean:
        rm -f *.exe


D:\>mingw64\bin\gdb.exe main64.exe
GNU gdb (GDB) 7.1.90.20100730-cvs
Copyright (C) 2010 Free Software Foundation, Inc.
(...)
Breakpoint 1, main () at main.cpp:21
21      in main.cpp
(gdb) disassemble
Dump of assembler code for function main():
=> 0x00000000004015ac <+0>:     push   %rbp
   0x00000000004015ad <+1>:     push   %r15
   0x00000000004015af <+3>:     push   %r14
   0x00000000004015b1 <+5>:     push   %r13
   0x00000000004015b3 <+7>:     push   %r12
   0x00000000004015b5 <+9>:     push   %rdi
   0x00000000004015b6 <+10>:    push   %rsi
   0x00000000004015b7 <+11>:    push   %rbx
   0x00000000004015b8 <+12>:    sub    $0x158,%rsp
   0x00000000004015bf <+19>:    lea    0x80(%rsp),%rbp
   0x00000000004015c7 <+27>:    movaps %xmm6,0x30(%rbp)
   0x00000000004015cb <+31>:    movaps %xmm7,0x40(%rbp)
   0x00000000004015cf <+35>:    movaps %xmm8,0x50(%rbp)
   0x00000000004015d4 <+40>:    movaps %xmm9,0x60(%rbp)
   0x00000000004015d9 <+45>:    movaps %xmm10,0x70(%rbp)
   0x00000000004015de <+50>:    movaps %xmm11,0x80(%rbp)
   0x00000000004015e6 <+58>:    movaps %xmm12,0x90(%rbp)
   0x00000000004015ee <+66>:    movaps %xmm13,0xa0(%rbp)
   0x00000000004015f6 <+74>:    movaps %xmm14,0xb0(%rbp)
   0x00000000004015fe <+82>:    movaps %xmm15,0xc0(%rbp)
   0x0000000000401606 <+90>:    Dwarf Error: Cannot find signatured DIE
referenced from DIE at 0x2581 [in module D:\main64.exe]


iirc the gcc-4.5 generates correct debuginfo.


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-02-25 11:25 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-15 16:22 [Bug debug/47308] New: Dwarf Error: Cannot find signatured DIE referenced from DIE at 0x2581 [in module D:\main64.exe] pluto at agmk dot net
2011-01-15 16:38 ` [Bug debug/47308] " pluto at agmk dot net
2011-01-16  1:10 ` pluto at agmk dot net
2011-01-16  1:19 ` pluto at agmk dot net
2011-01-21 11:09 ` ktietz at gcc dot gnu.org
2011-01-21 12:39 ` pluto at agmk dot net
2011-01-21 13:00 ` ktietz at gcc dot gnu.org
2011-01-21 13:46 ` pluto at agmk dot net
2011-01-21 13:50 ` ktietz at gcc dot gnu.org
2011-01-21 14:07 ` pluto at agmk dot net
2011-01-21 14:12 ` ktietz at gcc dot gnu.org
2011-01-21 16:03 ` ktietz at gcc dot gnu.org
2011-01-21 19:09 ` pluto at agmk dot net
2011-02-12  9:44 ` pluto at agmk dot net
2011-02-12  9:48 ` pluto at agmk dot net
2011-03-18 20:15 ` pluto at agmk dot net
2011-03-22 20:18 ` pluto at agmk dot net
2011-06-05 11:44 ` pluto at agmk dot net
2012-06-16 12:55 ` internet at 123gen dot com
2013-03-24 20:56 ` internet at 123gen dot com
2015-02-25 12:53 ` ktietz at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).