Hi II/m unable to debug this issue:
Sometimes my request receives 502 and in server log shows up this:
2019-11-16 10:56:14 !!! uWSGI process 61 got Segmentation Fault !!!
2019-11-16 10:56:14 *** backtrace of 61 ***#012kaifis www.webapp.com uWSGI worker 2(uwsgi_backtrace+0x2c) [0x46529c]#012kaifis www.erbapp.com uWSGI worker 2(uwsgi_segfault+0x21) [0x465661]#012/lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f52bd0624b0]#012/usr/lib/libpython3.7m.so.1.0(+0xe7545) [0x7f52b9b49545]#012/usr/lib/libpython3.7m.so.1.0(+0xe7962) [0x7f52b9b49962]#012/usr/lib/libpython3.7m.so.1.0(PyList_New+0x4f) [0x7f52b9b1fd0f]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x4703) [0x7f52b9ad0183]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0xa64) [0x7f52b9be04e4]#012/usr/lib/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0xa6) [0x7f52b9afb966]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x7f16) [0x7f52b9ad3996]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0xa64) [0x7f52b9be04e4]#012/usr/lib/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0xa6) [0x7f52b9afb966]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x75ec) [0x7f
2019-11-16 10:56:15 DAMN ! worker 2 (pid: 61) died :( trying respawn ...
2019-11-16 10:56:15 Respawned uWSGI worker 2 (new pid: 67)
2019-11-16 10:56:15 spawned 2 offload threads for uWSGI worker 2
I have created a web app with the same code and it works fine. Do you know where could be the problem? Thanks for your time.
(U haven't found any pattern in those 502, sometimes almost all request received 502 and 10 minutes later only about half)