title: python segmentation fault 11 on OS 10.11
body: <p>I'm running into this (apparently old) issue. Small, insignificant changes in my code cause my program to crash and throw </p>
  
  <blockquote>
    <p>Segmentation fault 11.</p>
  </blockquote>
  
  <p>I'm using Python 3.4.4 and Kivy 1.9 on OS 10.11.   (EDIT: Investigation reveals that Kivy was bundled with 3.5.0)</p>
  
  <p><strong>EDIT:</strong> The minor change was that I had a method that created a Popup and then edited the properties after creation. I originally called this method in my game object's <strong>init</strong> statement. I wanted to clean this up so I sub-classed Popup and put the properties in the new class's <strong>init</strong> statement, and then called its constructor in the same place. I went from this:</p>
  
  <pre><code>self.create_start_game_popup()
       #within the method is "self.startpopup = Popup()"
  </code></pre>
  
  <p>to this: </p>
  
  <pre><code>self.startpopup = StartPopup()
  </code></pre>
  
  <p><strong>EDIT:</strong> 
  As requested, here's the fixes I tried so as not to rely on external links.</p>
  
  <p>I've tried <a href="https://stackoverflow.com/questions/18158381/python-crashing-when-running-two-commands-segmentation-fault-11">this fix</a> so far, as suggested in another Stackoverflow post:</p>
  
  <pre><code>cd /Library/Frameworks/Python.framework/Versions/3.3
  cd ./lib/python3.3/lib-dynload 
  sudo mv readline.so readline.so.disabled  
  </code></pre>
  
  <p>I found this resolved bug referring to OS 10.9, tried the patch recommended in <a href="http://bugs.python.org/issue18458#msg201087" rel="nofollow noreferrer">this comment</a> but haven't found anything specific to OS 10.11 or that actually works for me.</p>
  
  <p>The patch was a temporary fix as suggested in a comment on a Python bug ticket while the bug was being fixed between Python 3.3.2 and 3.3.3. It was verified fixed in 3.3.3 on OS 10.9</p>
  
  <blockquote>
    <p>Until the updated readline module is available in python.org 2.7.6 and 3.3.3 maintenance releases, here is 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 will patch around the problem as needed.  On most systems you will need to run it under an account with administrator privileges.</p>
    
    <p>To use it, open a terminal session in Terminal.app (or other shell), then enter:</p>
  
  <pre><code>curl -O http://bugs.python.org/file32324/patch_readline_issue_18458.sh
  openssl sha1 patch_readline_issue_18458.sh
  #the digest should be 7cb0ff57820a027dd4ca242eb2418930f8f46b4c)
  sh ./patch_readline_issue_18458.sh
  </code></pre>
  </blockquote>
  
  <p>Any ideas on what to do next?</p>