Forums

Segmentation Fault

Hi!!

I keep getting Segmentation Fault on post requests after users click on a button. I am using python 3.7 and latest django. Any suggestions?

enter image description here

Ooops. This is the image

https://imgur.com/a/byig4nC

enter image description here

2020-04-20 20:10:32 !!! uWSGI process 5 got Segmentation Fault !!! 2020-04-20 20:10:32 *** backtrace of 5 ***#012rezayeezy www.[WEBSITE].xyz uWSGI worker 2(uwsgi_backtrace+0x2c) [0x46529c]#012rezayeezy www.[WEBSITE].xyz uWSGI worker 2(uwsgi_segfault+0x21) [0x465661]#012/lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7fa56001a4b0]#012/usr/lib/libpython3.7m.so.1.0(+0xe7bbf) [0x7fa55cb01bbf]#012/usr/lib/libpython3.7m.so.1.0(_PyObject_GC_Malloc+0x1e) [0x7fa55cbefd8e]#012/usr/lib/libpython3.7m.so.1.0(_PyObject_GC_NewVar+0x2a) [0x7fa55cbefffa]#012/usr/lib/libpython3.7m.so.1.0(+0xdc064) [0x7fa55caf6064]#012/usr/lib/libpython3.7m.so.1.0(+0xdd9d3) [0x7fa55caf79d3]#012/usr/lib/libpython3.7m.so.1.0(PyObject_GetItem+0x49) [0x7fa55ca9c879]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x2644) [0x7fa55ca860c4]#012/usr/lib/libpython3.7m.so.1.0(+0x688c0) [0x7fa55ca828c0]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x75ec) [0x7fa55ca8b06c]#012/usr/lib/libpython3.7m.so.1.0(+0x688c0) [0x7fa55ca828c0]#012/usr/lib/libpython3.7m.so.1.0(_PyEval_EvalFrame

Are you using Django >= 3.0 with Python 3.7? If so, one possibility is that it's happening because of a bug in Python 3.7.0, which is the point release of 3.7 that your account is configured to use. We can change it to 3.7.5, which does not have that bug, by changing your account's system image to our latest one. But one word of warning first -- because of the changes to the point releases of Python, any virtualenvs you have might break -- and if you're not using virtualenvs, the pre-installed Python modules will be upgraded so that might break any code you have that relies on the old installed versions.

If you're happy for us to switch you over despite that, then let us know.

hello I tried doing the steps to upgrade my system image per a lot of other threads, and I ended up not being able to escape the 502. I set myself back to earlgrey, and am hoping to try again later. If anyone could do the system image upgrade for me to the newest, (I tried doing the virtualenv rebuild, but I could not get passed the 502). There are no special redis/tensor/third party stuffs in here that should be a problem. It's just my silly website. I'll check in later. -Nelliesnoodles

Unfortunately the system image update is something you'll have to do for yourself -- because it involves changes to your code, we can't do it for you. Rebuilding the virtulenvs from scratch is the most important part; I recommend that you use "pip freeze" to get a requirements file before changing the system image, then creating completely fresh virtualenvs after the change and using the requirements file to populate them with the packages you need.