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

Crash when tracing specialized normal class call at deep Python recursion #108390

Closed
Assignees
markshannon
Labels
3.13bugs and security fixesrelease-blockertype-crashA hard crash of the interpreter, possibly with a core dump
@chgnrdv

Description

@chgnrdv

Crash report

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

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

Python 3.13.0a0 (heads/main:29bc6165ab, Aug 23 2023, 18:18:02) [GCC 10.2.1 20210110]

What happened?

Bisected to04492cb.

importsysdeftrace(frame,event,arg):returntraceclassFoo:def__init__(self):passdeff():Foo()f()sys.settrace(trace)f()

Error messages

Program received signal SIGSEGV, Segmentation fault.0x00005555558c3fc0 inallocate_instrumentation_data (code=code@entry=0x555555bc97e0 <_Py_InitCleanup>) at Python/instrumentation.c:14581458        code->_co_monitoring = PyMem_Malloc(sizeof(_PyCoMonitoringData));(gdb) bt#00x00005555558c3fc0 inallocate_instrumentation_data (code=code@entry=0x555555bc97e0 <_Py_InitCleanup>) at Python/instrumentation.c:1458#10x00005555558c620b inupdate_instrumentation_data (code=code@entry=0x555555bc97e0 <_Py_InitCleanup>, interp=interp@entry=0x555555cdc7f8 <_PyRuntime+93016>)    at Python/instrumentation.c:1478#20x00005555558c7522 in_Py_Instrument (code=0x555555bc97e0 <_Py_InitCleanup>, interp=interp@entry=0x555555cdc7f8 <_PyRuntime+93016>) at Python/instrumentation.c:1549#30x00005555558c7d63 ininstrument_all_executing_code_objects (interp=interp@entry=0x555555cdc7f8 <_PyRuntime+93016>) at ./Include/internal/pycore_frame.h:84#40x00005555558c7f12 in_PyMonitoring_SetEvents (tool_id=tool_id@entry=7, events=0) at Python/instrumentation.c:1735#50x00005555558ca8a0 in_PyEval_SetTrace (tstate=tstate@entry=0x555555d42108 <_PyRuntime+509032>, func=func@entry=0x0, arg=arg@entry=0x0)    at Python/legacy_tracing.c:511#60x00005555558fe68c intrace_trampoline (self=<optimized out>, frame=0x7ffff77d5700, what=<optimized out>, arg=<optimized out>) at ./Python/sysmodule.c:1035#70x00005555558c97ae incall_trace_func (self=0x7ffff777e880, arg=0x555555be1600 <_Py_NoneStruct>) at Python/legacy_tracing.c:123#80x00005555558c990c insys_trace_func2 (self=<optimized out>, args=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at Python/legacy_tracing.c:162#90x00005555558c4fb1 in_PyObject_VectorcallTstate (kwnames=0x0, nargsf=9223372036854775810, args=0x7fffffffdb08, callable=0x7ffff777e880,     tstate=0x555555d42108 <_PyRuntime+509032>) at ./Include/internal/pycore_call.h:186#10call_one_instrument (interp=interp@entry=0x555555cdc7f8 <_PyRuntime+93016>, tstate=tstate@entry=0x555555d42108 <_PyRuntime+509032>, args=args@entry=0x7fffffffdb08,     nargsf=nargsf@entry=-9223372036854775806, tool=tool@entry=7'\a', event=event@entry=0) at Python/instrumentation.c:850#110x00005555558c5890 incall_instrumentation_vector (tstate=tstate@entry=0x555555d42108 <_PyRuntime+509032>, event=event@entry=0, frame=frame@entry=0x7ffff7fae988,     instr=instr@entry=0x7ffff7796e08, nargs=<optimized out>, nargs@entry=2, args=args@entry=0x7fffffffdb00) at Python/instrumentation.c:980#120x00005555558c653b in_Py_call_instrumentation (tstate=tstate@entry=0x555555d42108 <_PyRuntime+509032>, event=event@entry=0, frame=frame@entry=0x7ffff7fae988,     instr=instr@entry=0x7ffff7796e08) at Python/instrumentation.c:1015#130x000055555584a828 in_PyEval_EvalFrameDefault (tstate=tstate@entry=0x555555d42108 <_PyRuntime+509032>, frame=0x7ffff7fae988, throwflag=throwflag@entry=0)    at Python/generated_cases.c.h:43#140x000055555586a69c in_PyEval_EvalFrame (throwflag=0, frame=<optimized out>, tstate=0x555555d42108 <_PyRuntime+509032>) at ./Include/internal/pycore_ceval.h:88#15_PyEval_Vector (tstate=tstate@entry=0x555555d42108 <_PyRuntime+509032>, func=func@entry=0x7ffff77407d0, locals=locals@entry=0x7ffff7755070, args=args@entry=0x0,     argcount=argcount@entry=0, kwnames=kwnames@entry=0x0) at Python/ceval.c:1622#160x000055555586a73f inPyEval_EvalCode (co=co@entry=0x7ffff791d300, globals=globals@entry=0x7ffff7755070, locals=locals@entry=0x7ffff7755070) at Python/ceval.c:557#170x00005555558eaf8e inrun_eval_code_obj (tstate=tstate@entry=0x555555d42108 <_PyRuntime+509032>, co=co@entry=0x7ffff791d300, globals=globals@entry=0x7ffff7755070,     locals=locals@entry=0x7ffff7755070) at Python/pythonrun.c:1725#180x00005555558eb994 inrun_mod (mod=mod@entry=0x555555e01738, filename=filename@entry=0x7ffff7753140, globals=globals@entry=0x7ffff7755070,     locals=locals@entry=0x7ffff7755070, flags=flags@entry=0x7fffffffdf18, arena=arena@entry=0x7ffff7793940) at Python/pythonrun.c:1746#190x00005555558ebaa4 inpyrun_file (fp=fp@entry=0x555555d85aa0, filename=filename@entry=0x7ffff7753140, start=start@entry=257, globals=globals@entry=0x7ffff7755070,     locals=locals@entry=0x7ffff7755070, closeit=closeit@entry=1, flags=0x7fffffffdf18) at Python/pythonrun.c:1646#200x00005555558eeced in_PyRun_SimpleFileObject (fp=fp@entry=0x555555d85aa0, filename=filename@entry=0x7ffff7753140, closeit=closeit@entry=1,     flags=flags@entry=0x7fffffffdf18) at Python/pythonrun.c:463#210x00005555558eef40 in_PyRun_AnyFileObject (fp=fp@entry=0x555555d85aa0, filename=filename@entry=0x7ffff7753140, closeit=closeit@entry=1,     flags=flags@entry=0x7fffffffdf18) at Python/pythonrun.c:79#220x0000555555916e68 inpymain_run_file_obj (program_name=program_name@entry=0x7ffff77a1690, filename=filename@entry=0x7ffff7753140, skip_source_first_line=0)    at Modules/main.c:360#230x0000555555917145 inpymain_run_file (config=config@entry=0x555555cdccf8 <_PyRuntime+94296>) at Modules/main.c:379#240x000055555591820c inpymain_run_python (exitcode=exitcode@entry=0x7fffffffe08c) at Modules/main.c:610#250x0000555555918264 inPy_RunMain () at Modules/main.c:688#260x00005555559182b8 inpymain_main (args=args@entry=0x7fffffffe0d0) at Modules/main.c:718#270x000055555591832d inPy_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:742#280x000055555565073e inmain (argc=<optimized out>, argv=<optimized out>) at ./Programs/python.c:15

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security 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


    [8]ページ先頭

    ©2009-2025 Movatter.jp