Closed irisu-inwl closed 3 years ago
There's something wrong going on with the grpc module. Give it a try with threads = 1
@xrmx Thanks, but I got the same error with threads = 1
.
!!! uWSGI process 59 got Segmentation Fault !!!
*** backtrace of 59 ***
/usr/local/bin/uwsgi(uwsgi_backtrace+0x2a) [0x5579aca7505a]
/usr/local/bin/uwsgi(uwsgi_segfault+0x23) [0x5579aca75413]
/lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7f3330d35840]
/usr/local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-x86_64-linux-gnu.so(+0x2b19d5) [0x7f332bf119d5]
/usr/local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-x86_64-linux-gnu.so(+0x2a8a72) [0x7f332bf08a72]
/usr/local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-x86_64-linux-gnu.so(+0x2a98e9) [0x7f332bf098e9]
/usr/local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-x86_64-linux-gnu.so(+0x18e4fd) [0x7f332bdee4fd]
/usr/local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-x86_64-linux-gnu.so(+0x2ae244) [0x7f332bf0e244]
/usr/local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-x86_64-linux-gnu.so(+0x2c5009) [0x7f332bf25009]
/usr/local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-x86_64-linux-gnu.so(+0x29df28) [0x7f332befdf28]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3) [0x7f3331bb1fa3]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f3330df74cf]
*** end of backtrace ***
Tue Jan 26 08:24:06 2021 - uWSGI worker 2 screams: UAAAAAAH my master disconnected: i will kill myself !!!
Tue Jan 26 08:24:06 2021 - uWSGI worker 1 screams: UAAAAAAH my master disconnected: i will kill myself !!!
Tue Jan 26 08:24:07 2021 - [emperor] curse the uwsgi instance /code/python/uwsgi.ini (pid: 59)
Tue Jan 26 08:24:10 2021 - [emperor] removed uwsgi instance /code/python/uwsgi.ini
*** has_emperor mode detected (fd: 5) ***
[uWSGI] getting INI configuration from /code/python/uwsgi.ini
I'm going to try to update the firestore library, since most of the time when the error occurs, the API calls firestore.batch.commit().
The give a try to lazy-apps
, grpc is probably doing things with threads before workers are forked.
I set lazy-apps = true
and after 150 requests, no request errors!
Thank you very much! I'll close the issue!
Segmentation fault occurs in the API deployed on GKE. I don't know why it happens, so I would like to know the cause and how to fix it.