Open Bug 1042306 Opened 6 years ago Updated 5 years ago

stack fixer running mochitest-plain gives UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 90: ordinal not in range(128)

Categories

(Testing :: Mochitest, defect)

x86_64
Linux
defect
Not set

Tracking

(Not tracked)

People

(Reporter: dbaron, Unassigned)

Details

After applying the patch for bug 1041546, I still can't successfully complete:
  ./mach mochitest-plain layout/style/test
in my amd64 Linux debug build.

It gives the following error during test_parser_diagnostics_unprintables.html:

Exception in thread Thread-12:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/dbaron/builds/ssd/mozilla-central/mozilla/testing/mozbase/mozprocess/mozprocess/processhandler.py", line 774, in _processOutput
    self.processOutputLine(line.rstrip())
  File "/home/dbaron/builds/ssd/mozilla-central/mozilla/testing/mozbase/mozprocess/mozprocess/processhandler.py", line 719, in processOutputLine
    handler(line)
  File "/home/dbaron/builds/ssd/mozilla-central/obj/firefox-debugopt/_tests/testing/mochitest/runtests.py", line 1799, in processOutputLine
    message = handler(message)
  File "/home/dbaron/builds/ssd/mozilla-central/obj/firefox-debugopt/_tests/testing/mochitest/runtests.py", line 1915, in fix_stack
    message['message'] = self.stackFixerFunction(message['message'])
  File "/home/dbaron/builds/ssd/mozilla-central/obj/firefox-debugopt/_tests/testing/mochitest/runtests.py", line 1852, in fixFunc
    stackFixerProcess.stdin.write(line + '\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 90: ordinal not in range(128)
Flags: needinfo?(cmanchester)
This looks like bug 1040966. Does the patch in that bug address this?
Flags: needinfo?(cmanchester)
Why is this affecting people running tests locally but not causing the tree to turn orange?
fix_linux_stack.pl only gets used in local debug builds. All the builds on TBPL use Breakpad symbols by way of fix_stack_using_bpsyms.py, which is called in-process, so it doesn't hit the issue.
You need to log in before you can comment on or make changes to this bug.