#16105: libgdal1-1.7.0 broke django.contrib.gis.gdal.libgdal
--------------------------------------+------------------------
               Reporter:  ulvinge@…   |          Owner:  nobody
                   Type:  Bug         |         Status:  closed
              Milestone:              |      Component:  GIS
                Version:  1.3         |       Severity:  Normal
             Resolution:  invalid     |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
--------------------------------------+------------------------
Changes (by aaugustin):

 * status:  new => closed
 * needs_docs:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 In my opinion, your segfault could be caused by:

 - a) a bug in `ctypes` — `django.contrib.gis.gdal.libgdal` uses this
 module in a very straightforward way to load `libgdal1`,
 - b) a bug in `libgdal1` — you're using a testing version, after all,
 - c) a bug in the Python interpreter itself — that sounds unlikely,
 - d) any combination of the above.

 Since `ctypes` is part of the standard library, I think you should take
 the offending code from
 
https://code.djangoproject.com/browser/django/trunk/django/contrib/gis/gdal/libgdal.py,
 extract the minimum failing test case, and post that to Python's bug
 tracker.

 If might be as simple as:
 {{{
 from ctypes import CDLL
 from ctypes.util import find_library
 lib_path = find_library('gdal-1.7.0')
 lgdal = CDLL(lib_path)
 }}}

 (Disclaimer: I don't have access to a box running debian-testing, so I
 don't know if this is sufficient to exhibit the bug.)

 Anyway, Django does not contain any C code, it's written entirely in
 Python. So while it can raise exceptions, it can't (in theory) create
 segfaults. For this reason, I'm going to mark the bug as invalid.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16105#comment:1>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to