django/selenium testing: how to debug a segmentation fault? -


when running django tests using staticliveservertestcase , selenium, encounter occasional segmentation faults.

these crashes seem random: run same test 10 or 20 times without changes , segmentation fault happen 1 or 2 times , @ seemingly random points in test. information crash nothing: segmentation fault (core dumped) python manage.py test.

i wondering there anyway find out why happening? in other words, how debug crashes during python tests?

i tried python -m pdb manage.py test, not allow tests run (it stops @ first import statement).

i have tried

updating python packages. using python 2 in virtualenv , have packages date.

updating os. using arch linux , date.

tried on different computers. same thing. though using arch linux on computers.

if you're using sqlite backend testing / debug, there known issue in django. able resolve steps provided at: https://code.djangoproject.com/ticket/24080#comment:32

keep in mind, these steps performed on ubuntu server 12.04, opposed arch linux distro, i'm sure can adapted following steps upgrade latest , greatest sqlite3:

$ wget https://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz $ tar xvfz sqlite-autoconf-3081101.tar.gz $ cd sqlite-autoconf-3081101 $ ./configure --prefix=/usr/local $ make $ make install $ sudo apt-get install --reinstall python2.7 python2.7-minimal python2.7-dev python2.7-dbg 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -