4

我今天尝试对我的项目进行 manage.py 清理,它返回“分段错误”没有更多信息。我尝试将详细模式设置为 3 (-v 3),但这并没有显示任何其他内容。

问题的根源是什么?在 Ubuntu 服务器上运行的 Django 1.3.1、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
4

1 回答 1

5

我建议:

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

然后你会从 python 二进制文件中看到更多的崩溃细节,最终可以提交一个错误报告。

于 2012-09-18T21:23:34.190 回答