Presumably because a Unicode character was only written partially.
0 test 2022-03-15T19:13:39.817000Z TestFramework (ERROR): Unexpected exception caught during testing
1 Traceback (most recent call last):
2 File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 132, in main
3 self.run_test()
4 File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/feature_init.py", line 79, in run_test
5 node.start(extra_args=['-txindex=1', '-blockfilterindex=1', '-coinstatsindex=1'])
6 File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
7 next(self.gen)
8 File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py", line 442, in wait_for_debug_log
9 log = dl.read()
10 File "/usr/lib/python3.8/codecs.py", line 322, in decode
11 (result, consumed) = self._buffer_decode(data, self.errors, final)
12 UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 1215-1217: unexpected end of data