Skip to content

framelocalsproxy_new() crash if called with no arguments #124513

Description

@vstinner

Bug report

Example on Python 3.13.0rc2:

$ python3.13
>>> import sys
>>> FrameLocalsProxy=type([sys._getframe().f_locals for x in range(1)][0])
... 
>>> FrameLocalsProxy()
Erreur de segmentation (core dumped)

The bug was discovered by zope.interface test suite: zopefoundation/zope.interface#323 (comment)

I'm working on a fix.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions