[lldb-dev] [Bug 17227] New: Disassembly is incorrect when using lldb with ELF core files

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 13 07:58:35 PDT 2013


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

            Bug ID: 17227
           Summary: Disassembly is incorrect when using lldb with ELF core
                    files
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: ashok.thirumurthi at intel.com
    Classification: Unclassified

-----> Actual behaviour:

~/dev/llvm/tools/lldb/test/functionalities/inferior-assert$ ulimit -c unlimited
~/dev/llvm/tools/lldb/test/functionalities/inferior-assert$ ./a.out
~/dev/llvm/tools/lldb/test/functionalities/inferior-assert$ lldb a.out -c core
Core file '~/dev/lldb/tools/lldb/test/functionalities/inferior-assert/core'
(x86_64) was loaded.
Process 0 stopped
* thread #1: tid = 0, 0x00007fd44603a425 libc.so.6`raise + 53, name = 'a.out',
stop reason = signal SIGABRT
    frame #0: 0x00007fd44603a425 libc.so.6`raise + 53
libc.so.6`raise + 53:
-> 0x7fd44603a425:  addb   %al, (%rax)
   0x7fd44603a427:  addb   %al, (%rax)
   0x7fd44603a429:  addb   %al, (%rax)
   0x7fd44603a42b:  addb   %al, (%rax)
(lldb) 


-----> Expected behaviour:

libc.so.6`raise + 53:
-> 0x7fee04de7425:  cmpq   $-0x1000, %rax
   0x7fee04de742b:  ja     0x7fee04de743f            ; raise + 79
   0x7fee04de742d:  rep    
   0x7fee04de742e:  ret    
(lldb) 


Note that the "dissasemble -a" command shows a similar pattern of
misdisassembly.

Reproduced on Ubuntu 12.04 with r190622 of llvm, clang, and lldb.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130913/3d37e51c/attachment.html>


More information about the lldb-dev mailing list