This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python interpreter crashes on macOS
Type: crash Stage: resolved
Components: macOS Versions: Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Yibo Wang, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2017-06-05 16:28 by Yibo Wang, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg295203 - (view) Author: Yibo Wang (Yibo Wang) Date: 2017-06-05 16:28
I am writing python wrapper for rust library, everything goes fine until execution finishes.

"Python quit unexpectedly"
[1]    25805 segmentation fault  python3

To reproduce, download code from GitHub repo provided by this blog(https://kushaldas.in/posts/writing-python-extensions-in-rust.html), then follow the section "Building the Python extension".

macOS Sierra 10.12.5 (16F73)
Python 3.6.1 via Homebrew
rustc 1.17.0 (56124baa9 2017-04-24)
(This issue won't appear on Windows 10 and Ubuntu 16.04)
msg295205 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2017-06-05 16:57
Sorry but, without more information, no one is likely to want to try to pursue this issue.  There are too many components, Python and non-Python, here that could cause a crash and trying to interface to other libraries using extensions like cffi (and ctypes) is always risky.  Including the macOS stack dump trace that may be produced by the segfault would at least give some clues as to where the problem is occurring; check in ~/Library/Log and /Library/Log.
msg295544 - (view) Author: Yibo Wang (Yibo Wang) Date: 2017-06-09 15:34
It's a bug from cffi because the interpreter won't crash when using ctypes only without cffi.
History
Date User Action Args
2022-04-11 14:58:47adminsetgithub: 74760
2017-06-09 15:34:21Yibo Wangsetstatus: open -> closed
resolution: not a bug
messages: + msg295544

stage: resolved
2017-06-05 16:57:07ned.deilysetmessages: + msg295205
2017-06-05 16:28:08Yibo Wangcreate