[issue42688] ctypes memory error on Apple Silicon with external libffi

2021-05-02 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8 ___ Python tracker ___

[issue42688] ctypes memory error on Apple Silicon with external libffi

2021-05-02 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b29d0a5a7811418c0a1082ca188fd4850185e290 by Ned Deily in branch '3.8': [3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806) https://github.com/python/cpython/commit/b29d0a5a7811418c0a1082ca188fd4850185e290 -- nosy:

[issue42688] ctypes memory error on Apple Silicon with external libffi

2021-05-02 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +24493 pull_request: https://github.com/python/cpython/pull/25806 ___ Python tracker ___

[issue42688] ctypes memory error on Apple Silicon with external libffi

2021-04-08 Thread Max Bélanger
Change by Max Bélanger : -- nosy: +maxbelanger nosy_count: 4.0 -> 5.0 pull_requests: +24011 pull_request: https://github.com/python/cpython/pull/25274 ___ Python tracker ___

[issue42688] ctypes memory error on Apple Silicon with external libffi

2021-01-31 Thread Ned Deily
Ned Deily added the comment: New changeset 7e729978fa08a360cbf936dc215ba7dd25a06a08 by Miss Islington (bot) in branch '3.9': bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) (GH-23888)

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +22747 pull_request: https://github.com/python/cpython/pull/23888 ___ Python tracker ___

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-22 Thread miss-islington
miss-islington added the comment: New changeset b3c77ecbbe0ad3e3cc6dbd885792203e9e6ec858 by erykoff in branch 'master': bpo-42688: Fix ffi alloc/free when using external libffi on macos (GH-23868) https://github.com/python/cpython/commit/b3c77ecbbe0ad3e3cc6dbd885792203e9e6ec858 --

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-20 Thread Eli Rykoff
Eli Rykoff added the comment: Thanks for your quick feedback! I signed the CLA after submitting the PR, but I think it takes a bit of time to percolate through the system. As for the "why", until 3.9.1 conda-forge had been successfully using an external ffi (with 3.9.0 + osx-arm64 patches)

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Could you please sign the CLA? (See the PR for details on that) The PR looks sane. Out of interest: why do you use an external version of libffi? AFAIK the system copy of libffi contains some magic sauce to work nicer with signed binaries. --

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-20 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-19 Thread Eli Rykoff
Change by Eli Rykoff : -- keywords: +patch pull_requests: +22730 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23868 ___ Python tracker ___

[issue42688] ctypes memory error on Apple Silicon with external libffi

2020-12-19 Thread Eli Rykoff
New submission from Eli Rykoff : Building python 3.9.1 on Apple Silicon compiled against a external (non-os-provided) libffi makes the following code return a MemoryError: Test: import ctypes @ctypes.CFUNCTYPE(None, ctypes.c_int, ctypes.c_char_p) def error_handler(fif, message): pass I