<div dir="ltr">Hmm, that almost looks to me like it's finding a real bug.  Which it probably is, because higher up the callstack it's reading the response of a memory send.  I'm guessing that the response includes non-printable characters (raw memory data) that wasn't being written before but was being silently ignored, and now it's giving an error.<div><br></div><div>Can you try passing errors='replace' to encoded_file.open()?  Then open the log file and see what's in it.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 29, 2016 at 4:20 PM Todd Fiala <<a href="mailto:todd.fiala@gmail.com">todd.fiala@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">tfiala added a comment.<br>
<br>
The only test I see fail with this is:<br>
TestGDBRemoteMemoryRead.py:<br>
<br>
<br>
<br>
<br>
ERROR: test_memory_read_dwarf (TestGDBRemoteMemoryRead.MemoryReadTestCase)<br>
--------------------------------------------------------------------------<br>
<br>
Traceback (most recent call last):<br>
<br>
  File "/Users/tfiala/lldb/tot/git-svn/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2289, in dwarf_test_method<br>
    return attrvalue(self)<br>
  File "/Users/tfiala/lldb/tot/git-svn/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGDBRemoteMemoryRead.py", line 37, in test_memory_read<br>
    self.match("process plugin packet send x%x,%x" % (pc, size), ["response:", memory])<br>
  File "/Users/tfiala/lldb/tot/git-svn/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2615, in match<br>
    self.runCmd(str, msg=msg, trace = (True if trace else False), check = not error)<br>
  File "/Users/tfiala/lldb/tot/git-svn/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2591, in runCmd<br>
    print(self.res.GetError(), file=sbuf)<br>
  File "/Users/tfiala/lldb/tot/git-svn/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 267, in __exit__<br>
    print(self.getvalue(), file=self.session)<br>
  File "/Users/tfiala/lldb/tot/git-svn/lldb/packages/Python/lldbsuite/support/encoded_file.py", line 32, in impl<br>
    s = s.decode(encoding)<br>
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode<br>
    return codecs.utf_8_decode(input, errors, True)<br>
<br>
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 90: invalid start byte<br>
<br>
<br>
<a href="http://reviews.llvm.org/D16736" rel="noreferrer" target="_blank">http://reviews.llvm.org/D16736</a><br>
<br>
<br>
<br>
</blockquote></div>