[RTEMS Project] #4726: RSB decode exception stops build

RTEMS trac trac at rtems.org
Thu Sep 29 11:05:33 UTC 2022


#4726: RSB decode exception stops build
-------------------------+--------------------------
 Reporter:  Chris Johns  |       Owner:  Chris Johns
     Type:  defect       |      Status:  assigned
 Priority:  normal       |   Milestone:  6.1
Component:  admin        |     Version:  6
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |
-------------------------+--------------------------

Comment (by Frank Kuehndel):

 When I paste your code in `f.py` with `bad = True` I get the error:

 {{{
 $ python f.py
 Traceback (most recent call last):
   File "f.py", line 9, in <module>
     data += block.decode(sys.stdout.encoding)
   File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode
     return codecs.utf_8_decode(input, errors, True)
 UnicodeDecodeError: 'utf8' codec can't decode bytes in position 4094-4095:
 unexpected end of data
 }}}

 with `bad = False` it works:

 {{{
 $ python f.py
 (4096, 3)
 }}}

 I tested on an OpenSUSE 15.4, `file.txt` produced by the line from comment
 4. `locale` prints

 {{{
 locale                [1] 420
 LANG=en_US.UTF-8
 LC_CTYPE="en_US.UTF-8"
 LC_NUMERIC="en_US.UTF-8"
 LC_TIME="en_US.UTF-8"
 LC_COLLATE=POSIX
 LC_MONETARY="en_US.UTF-8"
 LC_MESSAGES="en_US.UTF-8"
 LC_PAPER="en_US.UTF-8"
 LC_NAME="en_US.UTF-8"
 LC_ADDRESS="en_US.UTF-8"
 LC_TELEPHONE="en_US.UTF-8"
 LC_MEASUREMENT="en_US.UTF-8"
 LC_IDENTIFICATION="en_US.UTF-8"
 LC_ALL=
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4726#comment:8>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list