Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Assertion failure at Python/generated_cases.c.h:10059PyObject *_PyEval_EvalFrameDefault(PyThreadState *, _PyInterpreterFrame *, int): Assertion 'STACK_LEVEL() == 0' failed #142448

Closed
Assignees
Fidget-Spinner
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-crashA hard crash of the interpreter, possibly with a core dump
@YuanchengJiang

Description

@YuanchengJiang

Crash report

What happened?

importunittestimportsysmon=sys.monitoringdefadd_line(code:"types.CodeType",lineno:int,)->None:returnmon.DISABLEdefenable():mon.use_tool_id(mon.COVERAGE_ID,"regrtest coverage")mon.register_callback(mon.COVERAGE_ID,mon.events.LINE,add_line)mon.set_events(mon.COVERAGE_ID,mon.events.LINE)enable()classCLanguage:def__init__(self,filename=None):self.filename=filenamedef__init__(self,clang,filename='file',limited_capi=False):self.limited_capi=limited_capidefparse(self,text):norm=dedent(text).strip()def_make_clinic(*,filename=bytes(range(256)),limited_capi=' '):clang=CLanguage(filename)returncclassClinicWholeFileTest(unittest.TestCase):defexpect_failure(self,raw,errmsg,*,filename=None,lineno=None):self.clinic=_make_clinic(filename='test.c')deftest_directive_output_cant_pop(self):raw='\n            /*[clinic input]\n            output pop\n            [clinic start generated code]*/\n        'err="Can't 'output pop', stack is empty"self.expect_failure(raw,err)if__name__=="__main__":unittest.main()
python: ../Python/generated_cases.c.h:10059: PyObject *_PyEval_EvalFrameDefault(PyThreadState *, _PyInterpreterFrame *, int): Assertion `STACK_LEVEL() == 0' failed

config:--with-pydebug --enable-experimental-jit=yes --with-address-sanitizer

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

No response

Linked PRs

Metadata

Metadata

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-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


    [8]ページ先頭

    ©2009-2026 Movatter.jp