Re: [Django] #34361: GIS: Missing the package "gdal-bin" results in Segmentation fault (core dumped)

1 view
Skip to first unread message

Django

unread,
Feb 21, 2023, 10:26:50 AM2/21/23
to django-...@googlegroups.com
#34361: GIS: Missing the package "gdal-bin" results in Segmentation fault (core
dumped)
-------------------------------+--------------------------------------
Reporter: Simon Kern | Owner: nobody
Type: Uncategorized | Status: new
Component: GIS | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by Simon Kern:

Old description:

> OS: Linux (ubuntu 22.04)
>
> If you have "django.contrib.gis" enabled, but a required lib, e.g., gdal-
> bin is not installed, every command will be terminated with a
> segmentation fault.
>
> I feel like this should rather emit an error message informing about the
> lack of said library, shouldn't it?
>
> Example output:
> {{{
> ./manage.py check
> System check identified no issues (0 silenced).
> Segmentation fault (core dumped)
> }}}

New description:

OS: Linux (ubuntu 22.04)

If you have "django.contrib.gis" enabled, but a required package, e.g.,
gdal-bin is not installed, every command will be terminated with a
segmentation fault.

I feel like this should rather emit an error message informing about the
lack of said library, shouldn't it?

Example output:
{{{
./manage.py check
System check identified no issues (0 silenced).
Segmentation fault (core dumped)
}}}

--

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

Django

unread,
Feb 21, 2023, 10:49:35 AM2/21/23
to django-...@googlegroups.com
#34361: GIS: Missing the package "gdal-bin" results in Segmentation fault (core
dumped)
-------------------------------+--------------------------------------
Reporter: Simon Kern | Owner: nobody
Type: Uncategorized | Status: closed
Component: GIS | Version: 4.1
Severity: Normal | Resolution: needsinfo

Keywords: | 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: => needsinfo


Comment:

Hi, I don't think you've explained the issue in enough detail to confirm a
bug in Django. Please reopen the ticket if you can debug your issue and
provide details about why and where Django is at fault.

You can try to run `check` with `faulthandler`
{{{
python -X faulthandler manage.py check
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34361#comment:3>

Django

unread,
Feb 21, 2023, 11:04:18 AM2/21/23
to django-...@googlegroups.com
#34361: GIS: Missing the package "gdal-bin" results in Segmentation fault (core
dumped)
-------------------------------+--------------------------------------
Reporter: Simon Kern | Owner: nobody
Type: Uncategorized | Status: closed
Component: GIS | Version: 4.1
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by Simon Kern):

So I just deleted all libs that com along with the gdal-bin package and
ran `python -X faulthandler manage.py check`. The result is the same. As
soon as I install libgdal again, the issue is gone.


{{{
python -X faulthandler manage.py check

System check identified no issues (0 silenced).
Segmentation fault (core dumped)
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34361#comment:4>

Reply all
Reply to author
Forward
0 new messages