Skip to content

Assertion failure in Objects/call.c _PyObject_VectorcallDictTstate: Assertion !_PyErr_Occurred(tstate)' failed.` #141307

@YuanchengJiang

Description

@YuanchengJiang

Bug report

Bug description:

import importlib.machinery as machinery
import importlib.util
import os
import sys

is_apple_mobile = False

if hasattr(machinery, "ExtensionFileLoader"):
    LoaderClass = machinery.ExtensionFileLoader

dummy_name = "fake_extension_module_for_test"

dummy_path = __file__

loader = LoaderClass(dummy_name, dummy_path)
spec = importlib.util.spec_from_loader(dummy_name, loader)
module = importlib.util.module_from_spec(spec)
python: ../Objects/call.c:120: _PyObject_VectorcallDictTstate: Assertion `!_PyErr_Occurred(tstate)' failed.
Aborted (core dumped)

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)pendingThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions