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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[email protected]        |[email protected]

--- Comment #3 from [email protected] ---
It turns out this happens because FreeBSD does not allow user processes to
change PSL_RF via ptrace().  It seems the sequence of events is

1) breakpoint or exception
2) lldb checkpoints thread state - ptrace(..., PT_GETREGS) returns rflags with
PSL_RF set
3) expression is JITted and executed, leaving PSL_RF cleared in kernel thread
state
4) lldb tries to restore checkpointed thread state via PT_SETREGS
5) ptrace() returns EINVAL due to attempt to change PSL_RF

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to