charles-zablit wrote:

To add more information, I have noticed that the `ConnectionGenericFile::Read` 
method will return a number of bytes read equal to `n` when the buffer really 
has `m` bytes read, with `n << m`. This causes the output to be truncated which 
causes the test above to fail. It's odd because the data is there, but 
`GetOverlappedResult` returns the wrong number of bytes read. `m_overlapped. 
InternalHigh` has the correct amount of bytes however. Not sure what to make of 
that.

This might be because we have a non blocking `ReadFile` call. Maybe having a 
blocking `ReadFile` call would allow us to do the read atomically and to bypass 
the race condition.

https://github.com/llvm/llvm-project/pull/182109
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to