Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

regrtest: "Cannot read process stdout: 'utf-8' codec can't decode byte 0xdd" error #109425

Closed
Labels
testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
@vstinner

Description

@vstinner

On a buildbot, a job failed because a test worker stdout cannot be decoded from UTF-8:

Cannot read process stdout: 'utf-8' codec can't decode byte 0xdd in position 2360: invalid continuation byte

In February,@gpshead reported a similar issue: issue#101634. I fixed it by adding a try/except: commit2ac3eec.

The try/except stops regrtest in a more clean fashion, but it has a big issue: the worker stdout is lost and cannot be displayed.

IMO regrtest should use any mean to display the stdout, especially if it's corrupted. It's too important, since some bugs only occur on some platforms. For example, Windows can log assertion errors in UTF-16 whereas regrtest uses a 8-bit encoding (issue#108989 closed as "WONTFIX").

(...)0:02:59 load avg: 9.85 [200/463] test_tempfile passed -- running (1): test_pickle (42.6 sec)0:03:02 load avg: 10.18 [201/463] test_codecs passed -- running (2): test_pickle (45.5 sec), test.test_multiprocessing_spawn.test_processes (32.2 sec)0:03:02 load avg: 10.18 [202/463] test_linecache passed -- running (2): test_pickle (46.1 sec), test.test_multiprocessing_spawn.test_processes (32.9 sec)0:03:03 load avg: 10.18 [203/463] test_set passed -- running (2): test_pickle (47.3 sec), test.test_multiprocessing_spawn.test_processes (34.1 sec)0:03:04 load avg: 10.18 [204/463] test_shlex passed -- running (2): test_pickle (47.8 sec), test.test_multiprocessing_spawn.test_processes (34.6 sec)0:03:05 load avg: 10.18 [205/463/1] test_interpreters process crashed (Cannot read process stdout: 'utf-8' codec can't decode byte 0xdd in position 2360: invalid continuation byte) -- running (2): test_pickle (48.7 sec), test.test_multiprocessing_spawn.test_processes (35.5 sec)Kill <WorkerThread #1 running test=test_sys pid=1206013 time=2.6 sec> process groupKill <WorkerThread #2 running test=test.test_asyncio.test_events pid=1205711 time=9.2 sec> process groupKill <WorkerThread #3 running test=test_tools pid=1205910 time=6.2 sec> process groupKill <WorkerThread #4 running test=test_float pid=1206093 time=885 ms> process groupKill <WorkerThread #5 running test=test.test_multiprocessing_spawn.test_threads pid=1205413 time=16.3 sec> process group(...)

build:https://buildbot.python.org/all/#/builders/435/builds/3612

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp