[lldb-dev] 32-bit linux IsWatchpointHit assertion failure due to WriteRegister

Todd Fiala tfiala at google.com
Fri Feb 28 06:58:01 PST 2014


Hey Matthew,

> Initial investigations suggest that the offset of dr6 is being calculated
incorrectly. The trace says 0x2A8, it should be 0x114.

That sounds like you are once again seeing an x86_64 register infos section
(using the x86_64 fpu register set) vs. the i386 set IIRC.

Your host is a 32-bit x86 architecture, right?  (The one where you are
running lldb?)

If you do a svn status or git status, can you double check that you don't
have any local changes?  I'll try on a 32-bit host with a clean repo to
make sure I didn't have any cruft on my end confusing the results.


On Fri, Feb 28, 2014 at 6:02 AM, Matthew Gardiner <mg11 at csr.com> wrote:

> Initial investigations suggest that the offset of dr6 is being calculated
> incorrectly. The trace says 0x2A8, it should be 0x114.
>
>
> (lldb) log enable linux ptrace
> (lldb) run
> operation ptrace(PTRACE_SETOPTIONS, 3665, (nil), 0x58, 0)=0 called from
> file /home/mg11/src/heracles2/llvm/tools/lldb/source/Plugins/
> Process/Linux/ProcessMonitor.cpp line 1456
> Process 3665 launching
>
> operation ptrace(PTRACE_TRACEME, 0, (nil), (nil), 0)=0 called from file
> /home/mg11/src/heracles2/llvm/tools/lldb/source/Plugins/
> Process/Linux/ProcessMonitor.cpp line 1196
> operation ptrace(PTRACE_PEEKDATA, 3665, 0x8048340, (nil), 0)=895EED31
> called from file /home/mg11/src/heracles2/llvm/tools/lldb/source/Plugins/
> Process/Linux/ProcessMonitor.cpp line 245
> operation ptrace(PTRACE_PEEKDATA, 3665, 0x8048340, (nil), 0)=895EED31
> called from file /home/mg11/src/heracles2/llvm/tools/lldb/source/Plugins/
> Process/Linux/ProcessMonitor.cpp line 245
> operation ptrace(PTRACE_POKEDATA, 3665, 0x8048340, 0x895eedcc, 0)=0 called
> from file /home/mg11/src/heracles2/llvm/tools/lldb/source/Plugins/
> Process/Linux/ProcessMonitor.cpp line 319
> operation ptrace(PTRACE_PEEKDATA, 3665, 0x8048340, (nil), 0)=895EEDCC
> called from file /home/mg11/src/heracles2/llvm/tools/lldb/source/Plugins/
> Process/Linux/ProcessMonitor.cpp line 245
> MATTG IWH begin
> WriteRegisterValue dr6 tid=3665 offset=2A8 val=FFFFFFFF
> operation ptrace(PTRACE_POKEUSER, 3665, 0x2a8, 0xffffffff, 0)=FFFFFFFF
> called from file /home/mg11/src/heracles2/llvm/tools/lldb/source/Plugins/
> Process/Linux/ProcessMonitor.cpp line 543
>
>
>
> Member of the CSR plc group of companies. CSR plc registered in England
> and Wales, registered number 4187346, registered office Churchill House,
> Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
> More information can be found at www.csr.com. Keep up to date with CSR on
> our technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people,
> YouTube, www.youtube.com/user/CSRplc, Facebook,
> www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at
> www.twitter.com/CSR_plc.
> New for 2014, you can now access the wide range of products powered by
> aptX at www.aptx.com.
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>



-- 
Todd Fiala | Software Engineer | tfiala at google.com | 650-943-3180
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140228/d8b1fa17/attachment.html>


More information about the lldb-dev mailing list