I am facing this (apparently old) problem. Small, minor changes in my code cause my program to crash and throw
Segmentation Error 11.
I am using Python 3.4.4 and Kivy 1.9 on OS 10.11. (EDIT: study shows that Kivy was associated with 3.5.0)
EDIT:. The small change was that I had a method that created a popup and then edited the properties after they were created. I originally named this method in my init statement. I wanted to clear this, so I subclassed Popup and put the properties in a new init class, and then called its constructor in the same place. I went from this:
self.create_start_game_popup() #within the method is "self.startpopup = Popup()"
:
self.startpopup = StartPopup()
EDIT: As requested, here are the fixes I tried to not rely on external links.
I already tried this fix as suggested in another Stackoverflow post:
cd /Library/Frameworks/Python.framework/Versions/3.3 cd ./lib/python3.3/lib-dynload sudo mv readline.so readline.so.disabled
I found this fixed bug related to OS 10.9, tried the patch recommended in this comment , but did not find anything special for OS 10.11 or what actually works for me.
The patch was a temporary fix, as suggested in the comment for the pyram with the Python bug, while the bug was fixed between Python 3.3.2 and 3.3.3. This was confirmed in 3.3.3 on OS 10.9
Until the updated readline module is available in python.org 2.7.6 and 3.3.3, there will be a script that will check python.org versions of Python 2.7.x, 3.2.x, 3.3.x, and 3.4.x for interactive crashes and fixes the problem as needed. On most systems, you will need to run it under an account with administrator rights.
To use it, open a terminal session in Terminal.app (or another shell), then type:
curl -O http://bugs.python.org/file32324/patch_readline_issue_18458.sh openssl sha1 patch_readline_issue_18458.sh
Any ideas on what to do next?