Skip to content

Commit 61e40f6

Browse files
committed
Check if valgrind-detected after-freeing access of PyMethodDef causes macOS Python 3.9 segfaults
1 parent 7d7309b commit 61e40f6

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/ci.yml

-6
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ jobs:
7070
python: pypy3
7171
arch: x64
7272

73-
# TODO: renable
74-
# Currently segfaults on macOS Python 3.9
75-
- runs-on: macos-latest
76-
python: 3.9
77-
arch: x64
78-
7973
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • ${{ matrix.arch }} ${{ matrix.args }}"
8074
runs-on: ${{ matrix.runs-on }}
8175

include/pybind11/pybind11.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ class cpp_function : public function {
466466
}
467467
if (rec->def) {
468468
std::free(const_cast<char *>(rec->def->ml_doc));
469-
delete rec->def;
469+
//delete rec->def;
470470
}
471471
delete rec;
472472
rec = next;

0 commit comments

Comments
 (0)