错误:子进程 pid 6695 退出信号 分段错误 (11)

0 投票
1 回答
4356 浏览
提问于 2025-04-16 18:04

我用django + mod-wsgi + apache来开发一个网站。奇怪的是,当我启动网站时,除了登录功能外,其他功能都正常。当我尝试登录时,却出现了500错误。

这是错误日志中的错误信息:

[Sat May 21 13:00:39 2011] [error] /usr/local/lib64/python2.6/site-packages/django/contrib/auth/__init__.py:26: DeprecationWarning: Authentication backends without a `supports_object_permissions` attribute are deprecated. Please define it in <class 'accounts.backends.EmailOrUsernameModelBackend.EmailOrUsernameModelBackend'>.
[Sat May 21 13:00:39 2011] [error]   DeprecationWarning)
[Sat May 21 13:00:39 2011] [error] /usr/local/lib64/python2.6/site-packages/django/contrib/auth/__init__.py:31: DeprecationWarning: Authentication backends without a `supports_anonymous_user` attribute are deprecated. Please define it in <class 'accounts.backends.EmailOrUsernameModelBackend.EmailOrUsernameModelBackend'>.
[Sat May 21 13:00:39 2011] [error]   DeprecationWarning)
[Sat May 21 05:00:39 2011] [notice] child pid 6693 exit signal Segmentation fault (11)
[Sat May 21 05:00:39 2011] [notice] child pid 6695 exit signal Segmentation fault (11)

请给我一些建议。谢谢!

1 个回答

2

阅读一下常见问题的文档:

http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions#Apache_Process_Crashes

http://code.google.com/p/modwsgi/wiki/ApplicationIssues

你可以尝试用调试工具来找出问题所在:

http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB

很可能是你的登录页面导致了一个扩展模块被导入并使用,而这个模块在子解释器中无法正常工作。你可以尝试强制让这个应用在主解释器中运行,使用以下代码:

WSGIApplicationGroup %{GLOBAL}

更多细节请查看mod_wsgi网站上的文档。

撰写回答