[Bug 36968] New: debugserver: Assertion Failed in GetRegisterContext

Bug ID 36968
Summary debugserver: Assertion Failed in GetRegisterContext
Product lldb
Version unspecified
Hardware PC
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter alessandro.arzilli@gmail.com
CC llvm-bugs@lists.llvm.org

I'm a maintainer of Delve [1] a debugger for the Go [2] programming language.
On macOS we are using debugserver as our backend and starting with a recent
update of the Command Line Tools our users are reporting a systematic crash of
debugserver [3][4], specifically:

Assertion failed: (bytes_written == size), function GetRegisterContext, file
line 2689.

This happens in response to us sending the g command for the first time. To me
this sounds like a bug in debugserver.

 [1] [http://github.com/derekparker/delve/](http://github.com/derekparker/delve/)
 [2] [https://golang.org/](https://golang.org/)
 [3] [https://github.com/derekparker/delve/issues/1015#issuecomment-377595278](https://github.com/derekparker/delve/issues/1015#issuecomment-377595278)
 [4] [https://github.com/derekparker/delve/issues/1165](https://github.com/derekparker/delve/issues/1165)