Skip to content

WFERR_UNMARSHALLABLE breaks recursion limit #82166

Closed as not planned
Closed as not planned

Description

@opensdh
mannequin
BPO 37985
Nosy @serhiy-storchaka, @opensdh, @shihai1991
PRs
  • gh-82166: Remove redundant p->depth-- in marshal extension module #19482
  • 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 2019-08-30.00:04:37.893>
    labels = ['interpreter-core', '3.7', '3.8', '3.9', 'type-crash']
    title = 'WFERR_UNMARSHALLABLE breaks recursion limit'
    updated_at = <Date 2020-04-12.12:25:29.455>
    user = 'https://github.com/opensdh'

    bugs.python.org fields:

    activity = <Date 2020-04-12.12:25:29.455>
    actor = 'corona10'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2019-08-30.00:04:37.893>
    creator = 'herring'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37985
    keywords = ['patch']
    message_count = 4.0
    messages = ['350841', '350842', '350885', '366235']
    nosy_count = 3.0
    nosy_names = ['serhiy.storchaka', 'herring', 'shihai1991']
    pr_nums = ['19482']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue37985'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Activity

    1. opensdh commented on Aug 30, 2019

      opensdhmannequin
      MannequinAuthor

      Most of the "p->depth--;" lines associated with "p->error = WFERR_UNMARSHALLABLE;" are spurious, and can crash the interpreter if enough of them prevent reaching MAX_MARSHAL_STACK_DEPTH. (The only exceptions are in 2.7, where some of them are followed by a return that skips another "p->depth--;".)

    2. added
      3.7 (EOL)
      3.8 (EOL)
      3.9 (EOL)
      interpreter-core
      type-crash
      on Aug 30, 2019
    3. opensdh commented on Aug 30, 2019

      opensdhmannequin
      MannequinAuthor

      I can easily make a patch or pull request, but against which version(s) should I do so? (Will such a trivial change require a CLA?)

    4. serhiy-storchaka commented on Aug 30, 2019

      @serhiy-storchaka
      Member

      It should be against master or the the newest version in which the problem exists. After merging this pull request the changes will be backported to older versions.

      3.6 and 3.5 are open for security fixes only.

    5. shihai1991 commented on Apr 12, 2020

      @shihai1991
      Member

      If I understand correctly, p->depth-- associated with p->error could be removed?

    6. transferred this issue fromon Apr 10, 2022
    7. serhiy-storchaka commented on Jan 12, 2023

      @serhiy-storchaka
      Member

      Please provide an example that can crash the interpreter.

    8. added
      3.11
      3.10 (EOL)
      3.12
      and removed
      3.9 (EOL)
      3.8 (EOL)
      3.7 (EOL)
      on Feb 14, 2023
    9. serhiy-storchaka commented on Aug 16, 2026

      @serhiy-storchaka
      Member

      Closed as non-reproducible.

    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

      3.10 (EOL)3.113.12interpreter-coretype-crash

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions