[Bug 27795] New: TestWatchLocation.py fails with a unicode decode error

Bug ID 27795
Summary TestWatchLocation.py fails with a unicode decode error
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter omair.javaid@linaro.org
CC llvm-bugs@lists.llvm.org
Classification Unclassified

TestWatchLocation.py fails on arm-linux platform with following error:

Traceback (most recent call last):
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 1469, in dwo_test_method
    return attrvalue(self)
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/decorators.py",
line 93, in wrapper
    func(*args, **kwargs)
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/decorators.py",
line 93, in wrapper
    func(*args, **kwargs)
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/decorators.py",
line 93, in wrapper
    func(*args, **kwargs)
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/decorators.py",
line 93, in wrapper
    func(*args, **kwargs)
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py",
line 79, in test_hello_watchlocation
    self.runCmd("process continue")
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 1765, in runCmd
    print(self.res.GetError(), file=sbuf)
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 269, in __exit__
    print(self.getvalue(), file=self.session)
  File
"/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/support/encoded_file.py",
line 32, in impl
    s = s.decode(encoding)
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfb in position 190:
invalid start byte

A previous discussion exists on the topic here: [http://reviews.llvm.org/D16736](http://reviews.llvm.org/D16736)