Opened 9 years ago

Last modified 9 years ago

#5775 closed defect

Segmentation fault with OGR_SKIP and LIBKML — at Version 1

Reported by: juliomalegria Owned by: warmerdam
Priority: normal Milestone: 1.11.2
Component: OGR_SF Version: 1.11.1
Severity: normal Keywords: libkml, segmentation fault, crash
Cc:

Description (last modified by juliomalegria)

Hey guys,

This is how you can repro this (you need to have LIBKML compiled):

$ ogrinfo --version
GDAL 1.11.1, released 2014/09/24

$ ogrinfo --formats | grep KML
  -> "LIBKML" (read/write)
  -> "KML" (read/write)

$python
from osgeo import ogr
ogr.RegisterAll()
ogr.RegisterAll()
# This works ...

$python
import os
os.environ['OGR_SKIP'] = 'LIBKML'
from osgeo import ogr
ogr.RegisterAll()
ogr.RegisterAll()
Segmentation fault

I works if I skip any other library

$python
import os
os.environ['OGR_SKIP'] = 'GeoJSON'
from osgeo import ogr
ogr.RegisterAll()
ogr.RegisterAll()
# This also works ..

Change History (1)

comment:1 by juliomalegria, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.