2011-05-21 50 views
0

我使用django + mod-wsgi + apache開發一個網站。奇怪的是,當我啓動該網站時,可以使用其他所有功能登錄功能。當我嘗試登錄時,它會給我一個500錯誤。錯誤:子pid 6695退出信號分段錯誤(11)

這是錯誤的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) 

請告訴我。由於

回答

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

最有可能您的登錄頁面導致延期要導入和使用的模塊在分解釋器中不起作用。嘗試強制該應用程序在使用主解釋器中運行:在mod_wsgi的網站

WSGIApplicationGroup %{GLOBAL} 

查看文檔瞭解更多信息。

+0

謝謝..不錯的來源 – Newbie 2011-05-22 15:41:12