Notice: We have migrated to GitLab launching 2024-05-01 see here:

#4734 closed defect (fixed)

RSB decode exception stops build

Reported by: Chris Johns Owned by: Chris Johns
Priority: normal Milestone: 5.2
Component: admin Version: 5
Severity: normal Keywords:
Cc: Blocked By:


Cloned from #4726:

Building in a Rocky VM on FB 12 with 5 I got:

Traceback (most recent call last):
  File "/usr/lib64/python3.9/", line 973, in _bootstrap_inner
  File "/usr/lib64/python3.9/", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/work/chris/rtems/rsb/rtems-source-builder.git/source-builder/sb/", line 204, in _readthread
    data = data.decode(sys.stdout.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 4095: unexpected end of data

If the data is corrupted or broken things stop. Fix to attempt to keep going.

This issue also effect rtems-tools.

Change History (2)

comment:1 Changed on 09/29/22 at 23:13:14 by Chris Johns <chrisj@…>

In [changeset:"ddfcc320ab740cd6ac30d70aaff7987dda25ee7f/rtems-source-builder" ddfcc32/rtems-source-builder]:

sb/execute: Use a decoder that maintains state aross blocks

Update #4734

comment:2 Changed on 09/30/22 at 20:19:01 by Chris Johns <chrisj@…>

Resolution: fixed
Status: assignedclosed

In [changeset:"af0f612c4656d556efcaa03119475ca6fbdc7928/rtems-source-builder" af0f612/rtems-source-builder]:

sb/execute: Fix incremental decoder with --dry-run

Closes #4734

Note: See TracTickets for help on using tickets.