错误:子 pid 6695 退出信号分段错误 (11)
我使用django + mod-wsgi + apache开发一个网站。奇怪的是,当我启动网站时,除了登录功能之外的所有其他功能都可以。当我尝试登录时,出现 500 错误。
这是错误形式 error_log:
[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)
请告诉我。谢谢
I use django + mod-wsgi + apache to develop a website. and it is strange that when i launch the website it's ok for all other function expect for login in function. when i try logging in, it gives me a 500 error.
This is the error form error_log:
[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)
Please advise me. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请阅读文档了解常见原因:
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
很可能您的登录页面会导致导入和使用扩展模块,但该模块在子系统中不起作用口译员。尝试使用以下命令强制该应用程序在主解释器中运行:
有关更多详细信息,请参阅 mod_wsgi 网站上的文档。
Read the documentation for common causes:
http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions#Apache_Process_Crashes
http://code.google.com/p/modwsgi/wiki/ApplicationIssues
Try and track it down by using a debugger:
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB
Most likely your login page causes an extension module to be imported and used that doesn't work in sub interpreters. Try forcing that application to run in the main interpreter using:
See documentation on the mod_wsgi web site for more details.