Skip to content
  • aarzilli's avatar
    debugger: bugfix: make delve API thread safe · 82ef3cce
    aarzilli authored and Derek Parker's avatar Derek Parker committed
    proc.(*Process) methods are not thread safe, multiple clients
    connecting simultaneously to a delve server (Issue #383) or a even
    a single over-eager client (Issue #408) can easily crash it.
    Additionally (Issue #419) calls to client.(*RPCClient).Halt can
    crash the server because they can result in calling the function
    debug/dwarf.(*Data).Type simultaneously in multiple threads which
    will cause it to return incompletely parsed dwarf.Type values.
    
    Fixes #408, #419 (partial)
    82ef3cce