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

Segmentation fault withcompile #113297

Closed
Assignees
iritkatriel
Labels
3.12only security fixes3.13bugs and security fixestype-crashA hard crash of the interpreter, possibly with a core dump
@shadchin

Description

@shadchin

Crash report

What happened?

Minimal reproducible example

tests.py

defmocks(self,search_rv=None,mock_internal_search=False):withmock.patch.object(TestResourceController,"_search"ifmock_internal_searchelse"search",return_value=search_rv    )asmock_search,mock.patch.object(TestResourceController,"_count")asmock_count,mock.patch.object(TestResourceController,"_before_create"    )asmock_before_create,mock.patch.object(TestResourceController,"_create"    )asmock_create,mock.patch.object(TestResourceController,"_after_create"    )asmock_after_create,mock.patch.object(TestResourceController,"_before_update"    )asmock_before_update,mock.patch.object(TestResourceController,"_update"    )asmock_update,mock.patch.object(TestResourceController,"_after_update"    )asmock_after_update,mock.patch.object(TestResourceController,"_before_delete"    )asmock_before_delete,mock.patch.object(TestResourceController,"_delete"    )asmock_delete,mock.patch.object(TestResourceController,"_after_delete"    )asmock_after_delete,mock.patch.object(TestResourceController,"validate"    )asmock_validate,mock.patch.object(TestSourceManager,"search",side_effect=self.mock_source_search_func()    )asmock_source_search,mock.patch.object(TestSourceManager,"before_create"    )asmock_source_before_create,mock.patch.object(TestSourceManager,"after_create"    )asmock_source_after_create,mock.patch.object(TestSourceManager,"before_update"    )asmock_source_before_update,mock.patch.object(TestSourceManager,"after_update"    )asmock_source_after_update,mock.patch.object(TestSourceManager,"before_delete"    )asmock_source_before_delete,mock.patch.object(TestSourceManager,"after_delete"    )asmock_source_after_delete,mock.patch.object(TestSourceManager2,"search",side_effect=self.mock_source_search_func()    )asmock_source2_search:yield1

crash.py

withopen("tests.py")asf:source=f.read()compile(source,"tests.py","exec")

Segmentation fault

shadchin@i113735019~ % python3.12 crash.pyzsh: segmentation fault  python3.12 crash.py
Thread 0 Crashed::  Dispatch queue: com.apple.main-thread0   Python                               0x1047dc148 _PyCfg_OptimizeCodeUnit + 3481   Python                               0x1047c1eb0 optimize_and_assemble + 2522   Python                               0x1047c9298 compiler_function + 5843   Python                               0x1047c2a30 compiler_body + 2084   Python                               0x1047c0c70 compiler_codegen + 1485   Python                               0x1047c02d8 _PyAST_Compile + 446   Python                               0x10480c81c Py_CompileStringObject + 1127   Python                               0x1047a881c builtin_compile + 5088   Python                               0x104711e34 cfunction_vectorcall_FASTCALL_KEYWORDS + 929   Python                               0x1047b7820 _PyEval_EvalFrameDefault + 4336810  Python                               0x1047acc48 PyEval_EvalCode + 18411  Python                               0x10480e4d0 run_eval_code_obj + 8812  Python                               0x10480c6a8 run_mod + 13213  Python                               0x10480bbb0 pyrun_file + 14814  Python                               0x10480af8c _PyRun_SimpleFileObject + 28815  Python                               0x10480ac64 _PyRun_AnyFileObject + 23216  Python                               0x10482fa14 pymain_run_file_obj + 22017  Python                               0x10482f674 pymain_run_file + 7218  Python                               0x10482ee0c Py_RunMain + 86019  Python                               0x10482ef50 Py_BytesMain + 4020  dyld                                 0x195463f28 start + 2236Thread 0 crashed with ARM Thread State (64-bit):    x0: 0x00000001042e4500   x1: 0x00000000000000b0   x2: 0x0000000000000000   x3: 0x000000000000003f    x4: 0x0000000000000020   x5: 0x000000000000003e   x6: 0x0000000000000000   x7: 0x000000000000001c    x8: 0x000000000000000c   x9: 0x00000000042d26f0  x10: 0x0000000000000660  x11: 0x00000001048cf440   x12: 0x0000000000000028  x13: 0x0000000000000001  x14: 0x0000000104aff8c0  x15: 0x0000000000000001   x16: 0x0000000000000008  x17: 0x0000600000acc090  x18: 0x0000000000000000  x19: 0x0000000142648960   x20: 0x00000001426380d0  x21: 0x000000016bdb2ad0  x22: 0x0000000000000000  x23: 0x0208805008000001   x24: 0x00000001042d26a0  x25: 0x00000001426488b0  x26: 0x0000000104183470  x27: 0x0000000000000000   x28: 0x00000001042d26f0   fp: 0x000000016bdb2ac0   lr: 0x00000001047dc314    sp: 0x000000016bdb29a0   pc: 0x00000001047dc148 cpsr: 0x20001000   far: 0x0000000125816bf0  esr: 0x92000006 (Data Abort) byte read Translation fault

CPython versions tested on:

3.12

Operating systems tested on:

Linux, macOS

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

Python 3.12.1 (main, Dec 8 2023, 18:57:37) [Clang 14.0.3 (clang-1403.0.22.14.1)]

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13bugs and security fixestype-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-2025 Movatter.jp