[Django] #33347: django.contrib.gis.geos.MultiPolygon segfault on arm

11 views
Skip to first unread message

Django

unread,
Dec 8, 2021, 9:04:36 AM12/8/21
to django-...@googlegroups.com
#33347: django.contrib.gis.geos.MultiPolygon segfault on arm
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
HorebParraud |
Type: Bug | Status: new
Component: GIS | Version: 4.0
Severity: Normal | Keywords: geos multipolygon
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello,

I am a python django developer and since yesterday (with the release of
Django4) I try to launch my project on a mac m1

Unfortunately, python crashes systematically when I use MultiPolygons
(very present in the project)


{{{
versioning:
- Python 3.9
- Django 4.0
- djangorestframework-gis 0.17
- GDAL 3.3.1
- geos 3.10
}}}


{{{
shell trace:
$/> python manage.py shell
Python 3.9.9 (main, Nov 21 2021, 03:16:13)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.30.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from django.contrib.gis.geos import MultiPolygon

In [2]: p = MultiPolygon()
[1] 58500 bus error python manage.py shell
}}}


{{{
Python traces:
VM Region Info: 0x16d754000 is in 0x16d754000-0x16d758000; bytes after
start: 0 bytes before end: 16383
REGION TYPE START - END [ VSIZE] PRT/MAX
SHRMOD REGION DETAIL
Stack 16c754000-16d754000 [ 16.0M] rw-/rwx
SM=PRV thread 0
---> STACK GUARD 16d754000-16d758000 [ 16K] ---/rwx
SM=NUL ... for thread 1
Stack 16d758000-16e760000 [ 16.0M] rw-/rwx
SM=PRV thread 1

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libgeos_c.1.16.0.dylib 0x105c1d340
GEOSGeom_createCollection_r + 88
1 libgeos_c.1.16.0.dylib 0x105c1d330
GEOSGeom_createCollection_r + 72
2 libffi.dylib 0x1a5af0050 ffi_call_SYSV +
80
3 libffi.dylib 0x1a5af89e4 ffi_call_int +
948
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33347>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 8, 2021, 12:49:06 PM12/8/21
to django-...@googlegroups.com
#33347: django.contrib.gis.geos.MultiPolygon segfault on arm
-----------------------------------+--------------------------------------
Reporter: Horeb Parraud | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: 4.0
Severity: Normal | Resolution: duplicate
Keywords: geos multipolygon | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate


Comment:

Currently we cannot prove that Django is at fault. Duplicate of #32600.

--
Ticket URL: <https://code.djangoproject.com/ticket/33347#comment:1>

Reply all
Reply to author
Forward
0 new messages