Thanks to visit codestin.com
Credit goes to github.com

Skip to content

_PyCode_VerifyStateless(): Assert Fails If a Name Is Both a Global And an Attr #135437

Closed
@ericsnowcurrently

Description

@ericsnowcurrently

Crash report

Bug description:

For example, the following function will trigger the problem:

import pprint

def spam():
    pprint.pprint([])

Crash in test_code (on a debug build):

python: Objects/codeobject.c:1944: _PyCode_SetUnboundVarCounts: Assertion `unbound.total <= counts->unbound.total' failed.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Labels

3.14bugs and security fixes3.15new features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-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