[LLVMbugs] [Bug 13939] New: Breakpoint on constructor pauses before writing 'this' to the stack

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 26 15:34:27 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13939

             Bug #: 13939
           Summary: Breakpoint on constructor pauses before writing 'this'
                    to the stack
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9271
  --> http://llvm.org/bugs/attachment.cgi?id=9271
.o file with inaccurate debug info

$ clang++ --version
clang version 3.2 (trunk 163674)


Breakpoint 1, 0x000000000262dca4 in
extensions::PushMessagingInvalidationHandler::PushMessagingInvalidationHandler
(this=0x88, service=0x7fffe16e3630, delegate=0x3aa7d2b <tc_new(size_t)+43>,
extension_ids=
    std::set with 140737310328139 elements<error reading variable: Cannot
access memory at address 0x12>)
(gdb) up
#1  0x000000000283f24f in extensions::PushMessagingEventRouter::Init
(this=0x7fffe16aea00) at
../../chrome/browser/extensions/api/push_messaging/push_messaging_api.cc:68
68        handler_.reset(new PushMessagingInvalidationHandler(
(gdb) disas
Dump of assembler code for function
extensions::PushMessagingInvalidationHandler::PushMessagingInvalidationHandler(InvalidationFrontend*,
extensions::PushMessagingInvalidationHandlerDelegate*,
std::set<std::basic_string<char>, std::less<std::basic_string<char> >,
std::allocator<std::basic_string<char> > > const&):
   0x000000000262dca0 <+0>:     push   %rbp
   0x000000000262dca1 <+1>:     mov    %rsp,%rbp
=> 0x000000000262dca4 <+4>:     sub    $0x1c0,%rsp
   0x000000000262dcab <+11>:    mov    %rdi,-0x8(%rbp)
   0x000000000262dcaf <+15>:    mov    %rsi,-0x10(%rbp)
   0x000000000262dcb3 <+19>:    mov    %rdx,-0x18(%rbp)
   0x000000000262dcb7 <+23>:    mov    %rcx,-0x20(%rbp)
(gdb) p *((void**)$rbp-1)
$4 = (void *) 0x88

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list