#32600: Multi geometries cause Segmentation fault 11 on Macbook with M1 CPU -------------------------------------+------------------------------------- Reporter: Aapo | Owner: nobody Rista | Type: Bug | Status: new Component: GIS | Version: 3.2 Severity: Normal | Keywords: MultiPoint, | MultiLinestring, MultiPolygon, Triage Stage: | Segmentation fault, GIS, GeoDjango Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- I got new Macbook Air (M1, 2020) and when I'm trying to use a project transferred from previous Intel Macbook Pro, I get Segmentation fault 11 in functions that use MultiPoint, MultiLinestring or MultiPolygon.
How to reproduce: Create a virtualenv, a Django project and start the shell: {{{ cd /tmp/ && python3 -m venv venv multisegfault && source multisegfault/bin/activate && pip install django && django-admin startproject segfaulttest && cd segfaulttest && python manage.py shell }}} Copy paste this line to the shell: {{{ from django.contrib.gis.geos import MultiLineString; MultiLineString() }}} You should get **Segmentation fault: 11**. It may be possible that **GEOSGeom_createCollection_r** causes crash, but I don't know how to try it outside Django. Libraries are installed using HomeBrew and they have versions: Django 3.2rc1 and 3.1.7 $ gdal-config --version 3.2.2 $ geos-config --version 3.9.1 $ python -V Python 3.9.2 # SELECT PostGIS_full_version(); POSTGIS="3.1.1 aaf4c79" [EXTENSION] PGSQL="130" GEOS="3.9.1-CAPI-1.14.2" PROJ="7.2.1" LIBXML="2.9.10" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" Everything is good on Intel Macbook Pro (same library versions) and on Ubuntu 20.04 (default versions). -- Ticket URL: <https://code.djangoproject.com/ticket/32600> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/049.eadf03367e23ed129fd6ed848f80bc24%40djangoproject.com.