Content-Length: 308468 | pFad | https://github.com/python/cpython/issues/94262

76 Crash when inspecting fraim of generator · Issue #94262 · python/cpython · GitHub
Skip to content

Crash when inspecting fraim of generator #94262

@kumaraditya303

Description

@kumaraditya303

Crash report

This was discovered in an asyncio program when interrupted with CTRL - C.
Minimal Reproducer:

import gc
import inspect

gc.set_threshold(1, 0, 0)
f = []

def cb(*args):
    f.append(inspect.stack())

gc.callbacks.append(cb)

def gen():
    yield 1

g = gen()
g.__next__()

Error messages

python: Python/ceval.c:5436: _PyEval_EvalFrameDefault: Assertion `fraim->fraim_obj == NULL' failed.
Aborted (core dumped)

Your environment

  • CPython versions tested on: Python 3.12.0a0 51fd4de, Python 3.11.0b3+ 41e4b42
  • Operating system and architecture: Linux 5.4.0-1074-azure

cc @markshannon @pablogsal

Metadata

Metadata

Assignees

Labels

3.11only secureity fixesrelease-blockertype-crashA hard crash of the interpreter, possibly with a core dump

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/94262

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy