Skip to content

Commit

Permalink
Check if valgrind-detected after-freeing access of PyMethodDef causes…
Browse files Browse the repository at this point in the history
… macOS Python 3.9 segfaults
  • Loading branch information
YannickJadoul committed Oct 11, 2020
1 parent 7d7309b commit 61e40f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ jobs:
python: pypy3
arch: x64

# TODO: renable
# Currently segfaults on macOS Python 3.9
- runs-on: macos-latest
python: 3.9
arch: x64

name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • ${{ matrix.arch }} ${{ matrix.args }}"
runs-on: ${{ matrix.runs-on }}

Expand Down
2 changes: 1 addition & 1 deletion include/pybind11/pybind11.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class cpp_function : public function {
}
if (rec->def) {
std::free(const_cast<char *>(rec->def->ml_doc));
delete rec->def;
//delete rec->def;
}
delete rec;
rec = next;
Expand Down

0 comments on commit 61e40f6

Please sign in to comment.