2012-09-10 30 views
4

我試過今天對我的項目進行manage.py清理,並且它返回「Segmentation fault」沒有更多的信息。我已經嘗試將詳細模式設置爲3(-v 3),但那並沒有顯示其他任何內容。manage.py清理的分段錯誤

什麼是問題的根源? Django的1.3.1和PostgreSQL 8.3運行Ubuntu服務器上

UPD:這裏是爲python -vv manage.py cleanup痕跡的最後一位:

import django.contrib.admin.models # precompiled from /usr/local/lib/python2.6/dist- 

packages/django/contrib/admin/models.pyc 
# trying /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.so 
# trying /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/modelsmodule.so 
# trying /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.py 
# /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.pyc matches /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.py 
import django.contrib.admindocs.models # precompiled from /usr/local/lib/python2.6/dist-packages/django/contrib/admindocs/models.pyc 
# trying /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.so 
# trying /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compilermodule.so 
# trying /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py 
# /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.pyc matches /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py 
import django.db.models.sql.compiler # precompiled from /usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.pyc 
Segmentation fault 
+1

請分享完整的錯誤代碼 –

+0

Django 1.4.1,PostgreSQL 9.1,Ubuntu - 正常工作 – soon

+0

請輸出:python -vv manage.py cleanup ...也許strace ./manage.py清理我不'不知道這些是否有用,但可以。 – jpic

回答

5

我建議:

ulimit -c unlimited 
python -vv manage.py cleanup 
gdb python core 
bt full 

然後你會看到來自python二進制文件的更多崩潰細節,並最終可以提交錯誤報告。