Sitelet https://github.com/python/cpython/issues/90988
Skip to content

unicodeobject.c doesn't compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found #90988

Description

@moytrage
mannequin
BPO 46832
Nosy @vstinner, @ericsnowcurrently, @kumaraditya303
Files
  • unicodeobject.c
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2022-02-23.06:12:09.073>
    labels = ['expert-subinterpreters', 'build', '3.10']
    title = 'unicodeobject.c doesn\'t compile when defined EXPERIMENTAL_ISOLATED_SUBINTERPRETERS, variable "interned" not found'
    updated_at = <Date 2022-03-03.11:29:31.887>
    user = 'https://bugs.python.org/moytrage'

    bugs.python.org fields:

    activity = <Date 2022-03-03.11:29:31.887>
    actor = 'kumaraditya'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Subinterpreters']
    creation = <Date 2022-02-23.06:12:09.073>
    creator = 'moytrage'
    dependencies = []
    files = ['50637']
    hgrepos = []
    issue_num = 46832
    keywords = []
    message_count = 3.0
    messages = ['413774', '414429', '414431']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'eric.snow', 'kumaraditya', 'moytrage']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue46832'
    versions = ['Python 3.10']

    Activity

    1. moytrage commented on Feb 23, 2022

      moytragemannequin
      MannequinAuthor
      1. Downloaded https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tar.xz

      2. Compiled under MSVC 2019 with define EXPERIMENTAL_ISOLATED_SUBINTERPRETERS

      3. Got compilation error of file Objects/unicodeobject.c at line 15931, about undefined variable "interned", it is function _PyUnicode_ClearInterned(), uncompilable code is "if (interned == NULL) {".

      This happens because when EXPERIMENTAL_ISOLATED_SUBINTERPRETERS is defined then INTERNED_STRINGS is undefined hence global variable "static PyObject *interned = NULL;" is not created, and _PyUnicode_ClearInterned() uses this global variable "interned".

      For reference attaching my version of "unicodeobject.c" which has compilation error at line 15931.

    2. vstinner commented on Mar 3, 2022

      @vstinner
      Member

      This build flag is experimental and unsupported. If you care, you should target Python 3.11 which is currently under development.

    3. transferred this issue fromon Apr 10, 2022
    4. kumaraditya303 commented on Jul 10, 2022

      @kumaraditya303
      Contributor

      Closing as EXPERIMENTAL_ISOLATED_SUBINTERPRETERS was removed in #93185

    5. Repository owner moved this from Todo to Done in Subinterpreterson Jul 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions