title: django/selenium testing: how to debug a segmentation fault?
body: <p>When running django tests using <code>StaticLiveServerTestCase</code> and selenium, I encounter occasional segmentation faults. </p>
  
  <p>These crashes seem completely random: I could run the same test 10 or 20 times without changes and the segmentation fault will happen only 1 or 2 times and at seemingly random points in the test. The information I get back from the crash is also essentially nothing: <code>segmentation fault (core dumped) python manage.py test</code>.</p>
  
  <p>I am wondering is there anyway to find out why this is happening? In other words, how do we debug crashes during python tests?</p>
  
  <p>I tried <code>python -m pdb manage.py test</code>, but that does not allow the tests to run (it stops at the first import statement). </p>
  
  <p>I have also tried</p>
  
  <p>Updating all python packages. I am using python 2 in a virtualenv and have all packages completely up to date.</p>
  
  <p>Updating my OS. I am using arch linux and am completely up to date.</p>
  
  <p>Tried this on different computers. Same thing. Though am I just using arch linux on all computers.</p>