Forums

Segmentation Fault on uWSGI application startup due to rasterio

I'm getting a Segmentation Fault when starting my Web app. The backtrace hints at a problem in rasterio, but I wouldn't know what would cause it.

#012/usr/local/bin/uwsgi(uwsgi_backtrace+0x2e) [0x562b1d8799be]
#012/usr/local/bin/uwsgi(uwsgi_segfault+0x27) [0x562b1d879da7]
#012/lib/x86_64-linux-gnu/libc.so.6(+0x43090) [0x7f82ca928090]
#012/home/rgboyden/.virtualenvs/lim/lib/python3.8/site-packages/rasterio/../rasterio.libs/libproj-d76c87e1.so.25.9.0.1(internal_proj_info+0xf1) [0x7f82c28111e1]
#012/home/rgboyden/.virtualenvs/lim/lib/python3.8/site-packages/rasterio/../rasterio.libs/libgdal-2535371a.so.32.3.6.4(OSRGetPROJVersion+0x19) [0x7f82c4348d69]
#012/home/rgboyden/.virtualenvs/lim/lib/python3.8/site-packages/rasterio/_version.cpython-38-x86_64-linux-gnu.so(+0x4db7) [0x7f82c755adb7]
#012/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x25f33a) [0x7f82c868b33a]
#012/lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d) [0x7f82c84a0d6d]
#012/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x12fd) [0x7f82c84a246d]
#012/lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName

Would anyone know what went wrong and how to fix it?

No clues as to what's going on there I'm afraid