GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Segmentation fault during interpreter finalization in PyTraceMalloc_Untrack · Issue #129185 · python/cpython Closed Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump DescriptionCrash reportWhat happened?
Commit 6b47499 moved the call to The following extension module reproduces the issue: #define PY_SSIZE_T_CLEAN #include <Python.h> #include <numpy/arrayobject.h> static PyObject* arr = NULL; static struct PyModuleDef repromodule = { PyModuleDef_HEAD_INIT, "repro", NULL, -1, NULL }; PyMODINIT_FUNC PyInit_repro(void) { PyObject* m; m = PyModule_Create(&repromodule); if (!m) return NULL; import_array(); arr = PyArray_SimpleNew(1, (npy_intp[]){0}, NPY_DOUBLE); if (!arr || PyModule_AddObject(m, "arr", arr) < 0) { Py_XDECREF(arr); Py_DECREF(m); return NULL; } return m; } $ python -c 'import repro'It declares a global NumPy array and For context, I initially ran into the issue in a pybind11 extension declaring functions with numpy array as defaults arguments. CPython versions tested on:CPython main branch, 3.13 Operating systems tested on:Linux Output from running 'python -VV' on the command line:Python 3.13.1+ (heads/3.13:a3797492179, Jan 22 2025, 11:46:15) [GCC 11.4.0] Linked PRs
Activity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |