I am getting an issue in Python 3.3.2 on OSX 10.9 where if I open Python in a terminal window, it exits with \"Segmentation error: 11\" after the second line I enter, regard
I was encountering similar 'segmentation fault 11' errors but for me it was using mercurial(hg)
This was trying to use Python 2.7.8 installed via the .mpkg installer and pip install mercurial On OS X 10.9.5
I thought updating to 2.7.8 would have resolved this but it seemed that mercurial was still looking for the System/Library/Frameworks/Python.framework/Versions/2.7
Even after trying to follow this slightly unwise advice Things still weren't working. I would run
hg init
hg add *
hg commit -m ...
hg status
would get 'segmentation fault 11'
The first couple of lines of the stack trace point to this:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 000000000000000000 0 + 0
1 osutil.so 0x00000001095ef768 listdir + 313
2 org.python.python 0x0000000109261b35 PyEval_EvalFrameEx + 14712
3 org.python.python 0x000000010925e093 PyEval_EvalCodeEx + 1641
In the end my solution seems to have come from (re)installing python with homebrew using that to get the 2.7.8 release (as of Dec 2014)
I then reinstalled mercurial with brew install mercurial which seems to have resolved whatever dependencies where causing this. I wish I understood better what was happening with the Seg fault but couldn't get to the bottom of it.
The best guess I still have is that mercurial was still referencing the system python despite 2.7.8 being installed properly and usr/local/bin being first in the path
/usr/local/bin:usr/local/git/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:~/Develop:/usr/local/git/bin: No such file or directory
So, what I'm suggesting is updating the python install with brew and then reinstalling whatever other packages you depend on.