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

SystemError caused by_interpreters.create() with invalid unicode argument #126223

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixesextension-modulesC modules in the Modules dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or error
@devdanzin

Description

@devdanzin

Bug report

Bug description:

It's possible to make a debug build of Python abort by passing an invalid Unicode argument to_interpreters.create(), resulting inSystemError: <built-in function create> returned a result with an exception set.

$ ./python-c"import _interpreters; _interpreters.create('\udc80')"FatalPythonerror:_Py_CheckFunctionResult:afunctionreturnedaresultwithanexceptionsetPythonruntimestate:initializedUnicodeEncodeError:'utf-8'codeccan't encode character '\udc80'inposition0:surrogatesnotallowedTheaboveexceptionwasthedirectcauseofthefollowingexception:SystemError:<built-infunctioncreate>returnedaresultwithanexceptionsetCurrentthread0x00007f0234dca740 (mostrecentcallfirst):File"<string>",line1in<module>Aborted

Found using fusil by@vstinner.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux, Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixesextension-modulesC modules in the Modules dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp