[RTEMS Project] #4726: RSB decode exception stops build
RTEMS trac
trac at rtems.org
Thu Sep 29 10:46:08 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 Chris Johns):
I am testing with this code:
{{{
import codecs
import sys
bad = True
if bad:
data = ''
with open('file.txt', 'rb') as f:
while True:
block = f.read(4096)
data += block.decode(sys.stdout.encoding)
if len(block) < 4096:
break
print(len(data), len(block))
else:
decoder = codecs.getincrementaldecoder(sys.stdout.encoding)()
data = ''
with open('file.txt', 'rb') as f:
while True:
block = f.read(4096)
data += decoder.decode(block)
if len(block) < 4096:
break
print(len(data), len(block))
}}}
and I cannot generate a failure with `bad = True`.
--
Ticket URL: <http://devel.rtems.org/ticket/4726#comment:7>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list