【问题标题】:Error: child pid 6695 exit signal Segmentation fault (11)错误:子 pid 6695 退出信号分段错误 (11)
【发布时间】:2011-08-30 02:23:30
【问题描述】:

我使用 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)

请给我建议。谢谢

【问题讨论】:

    标签: python django apache mod-wsgi


    【解决方案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

    您的登录页面很可能会导致导入和使用在子解释器中不起作用的扩展模块。尝试使用以下命令强制该应用程序在主解释器中运行:

    WSGIApplicationGroup %{GLOBAL}
    

    有关详细信息,请参阅 mod_wsgi 网站上的文档。

    【讨论】:

      猜你喜欢
      • 2015-11-25
      • 2013-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-10
      • 2017-03-05
      相关资源
      最近更新 更多