我今天尝试在我的项目上进行manage.py清理,并且它返回“Segmentation fault”没有更多信息。我已经尝试将详细模式设置为3(-v 3),但这并没有显示任何其他内容。
问题的根源是什么? Django 1.3.1,在Ubuntu服务器上运行的PostgreSQL 8.3
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
答案 0 :(得分:5)
我建议:
ulimit -c unlimited
python -vv manage.py cleanup
gdb python core
bt full
然后您将看到来自python二进制文件的更多崩溃详细信息,并最终可以提交错误报告。