gpt4 book ai didi

database - manage.py 清理时出现段错误

转载 作者:太空狗 更新时间:2023-10-30 01:55:35 27 4
gpt4 key购买 nike

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

问题的根源是什么? 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

最佳答案

我建议:

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

然后您将看到来自 python 二进制文件的更多崩溃详细信息,并最终可以提交错误报告。

关于database - manage.py 清理时出现段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12357958/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com