Hi All,
I am trying to host my turbogears2 app on uwsgi. I was hosting under
cherrypy and would like to move to uwsgi. But got the "segmentation fault"
error.
I am using Python2.7
here is the command I used:
uwsgi --ini wsgi.ini --socket localhost:8088
*wsgi.ini file contains:*
[uwsgi]
module = wsgi:application
master = true
processes = 1
socket = app.sock
chmod-socket = 664
vacuum = true
die-on-term = true
lazy = true
*wsgi.py file contains:*
APP_CONFIG = "path-to-turbogears-production.ini"
from paste.deploy import loadapp
application = loadapp('config:%s' % APP_CONFIG)
I am not sure if wsgi.py contains the right way of calling my application.
Please help.
I get the same error even with “uwsgi –paste <path-to-.ini>”
*and the full traceback is:*
!!! uWSGI process 7092 got Segmentation Fault !!!
*** backtrace of 7092 ***
/u/vgtools2/VPython2.7/bin/uwsgi(uwsgi_backtrace+0x29) [0x46d2a9]
/u/vgtools2/VPython2.7/bin/uwsgi(uwsgi_segfault+0x21) [0x46d431]
/lib64/libc.so.6(+0x326a0) [0x7ffff59e86a0]
/usr/lib64/libcrypto.so.10(EVP_PKEY_CTX_dup+0x20) [0x7ffff6996d60]
/usr/lib64/libcrypto.so.10(EVP_MD_CTX_copy_ex+0xbd) [0x7ffff6988c3d]
/remote/vtghome9/vgtools2/VPython2.7/lib/python2.7/lib-dynload/_hashlib.so(+0x1a4a)
[0x7fffeae85a4a]
/remote/vtghome9/vgtools2/VPython2.7/lib/python2.7/lib-dynload/_hashlib.so(+0x1dd0)
[0x7fffeae85dd0]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x66da)
[0x7ffff606c3ba]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5fd7)
[0x7ffff606bcb7]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8c9)
[0x7ffff606d9a9]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)
[0x7ffff606da22]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ExecCodeModuleEx+0xc2)
[0x7ffff6080cf2]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x1023be) [0x7ffff60833be]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x102b60) [0x7ffff6083b60]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x1030b1) [0x7ffff60840b1]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x118)
[0x7ffff60842c8]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0xe392d) [0x7ffff606492d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyObject_Call+0x68)
[0x7ffff5fc6708]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x56)
[0x7ffff6064f76]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x381c)
[0x7ffff60694fc]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8c9)
[0x7ffff606d9a9]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)
[0x7ffff606da22]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ExecCodeModuleEx+0xc2)
[0x7ffff6080cf2]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x1023be) [0x7ffff60833be]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x102b60) [0x7ffff6083b60]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x103032) [0x7ffff6084032]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x15d)
[0x7ffff608430d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0xe392d) [0x7ffff606492d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyObject_Call+0x68)
[0x7ffff5fc6708]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x56)
[0x7ffff6064f76]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x381c)
[0x7ffff60694fc]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8c9)
[0x7ffff606d9a9]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)
[0x7ffff606da22]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ExecCodeModuleEx+0xc2)
[0x7ffff6080cf2]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x1023be) [0x7ffff60833be]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x10410d) [0x7ffff608510d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x102b60) [0x7ffff6083b60]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x1030b1) [0x7ffff60840b1]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x118)
[0x7ffff60842c8]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0xe392d) [0x7ffff606492d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyObject_Call+0x68)
[0x7ffff5fc6708]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x56)
[0x7ffff6064f76]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x381c)
[0x7ffff60694fc]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8c9)
[0x7ffff606d9a9]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)
[0x7ffff606da22]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ExecCodeModuleEx+0xc2)
[0x7ffff6080cf2]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x1023be) [0x7ffff60833be]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x102b60) [0x7ffff6083b60]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x103032) [0x7ffff6084032]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x15d)
[0x7ffff608430d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0xe392d) [0x7ffff606492d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyObject_Call+0x68)
[0x7ffff5fc6708]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x56)
[0x7ffff6064f76]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x381c)
[0x7ffff60694fc]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8c9)
[0x7ffff606d9a9]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)
[0x7ffff606da22]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ExecCodeModuleEx+0xc2)
[0x7ffff6080cf2]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x1023be) [0x7ffff60833be]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x102b60) [0x7ffff6083b60]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0x103032) [0x7ffff6084032]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x15d)
[0x7ffff608430d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(+0xe392d) [0x7ffff606492d]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5dd3)
[0x7ffff606bab3]
/depot/Python-2.7/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x8c9)
[0x7ffff606d9a9]
*** end of backtrace ***
DAMN ! worker 1 (pid: 7092) died, killed by signal 11 :( trying respawn ...
Respawned uWSGI worker 1 (new pid: 7097)
^CSIGINT/SIGQUIT received...killing workers...
SIGINT/SIGQUIT received...killing workers...
Please help.
With Regards,
Dinesh.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi