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.
* 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>
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>