Opened 11 months ago

Last modified 10 months ago

#2434 new defect

ogr_fdw_info crash

Reported by: darkblueb Owned by: osgeolive@…
Priority: normal Milestone: OSGeoLive16.0
Component: OSGeoLive Keywords: gdal, postgis
Cc:

Description

ol16 build 71

user@osgeolive:~$ /usr/lib/postgresql/14/bin/ogr_fdw_info
usage: ogr_fdw_info -s <ogr datasource> -l <ogr layer name> -i <ogr layer index (numeric)> -t <output table name> -n <output server name> -o <config options>
       ogr_fdw_info -s <ogr datasource>
usage: ogr_fdw_info -f
       Show what input file formats are supported.

note (1): You can specify either -l (layer name) or -i (layer index) if you specify both -l will be used
note (2): config options are specified as a comma deliminated list without the OGR_<driver>_ prefix
so OGR_XLSX_HEADERS = FORCE OGR_XLSX_FIELD_TYPES = STRING would become:
"HEADERS = FORCE,FIELD_TYPES = STRING"
Segmentation fault (core dumped)

Change history (2)

comment:1 by darkblueb, 11 months ago

$gdb
(gdb) exec-file /usr/lib/postgresql/14/bin/ogr_fdw_info
(gdb) run
Starting program: /usr/lib/postgresql/14/bin/ogr_fdw_info 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
usage: ogr_fdw_info -s <ogr datasource> -l <ogr layer name> -i <ogr layer index (numeric)> -t <output table name> -n <output server name> -o <config options>
       ogr_fdw_info -s <ogr datasource>
usage: ogr_fdw_info -f
       Show what input file formats are supported.

note (1): You can specify either -l (layer name) or -i (layer index) if you specify both -l will be used
note (2): config options are specified as a comma deliminated list without the OGR_<driver>_ prefix
so OGR_XLSX_HEADERS = FORCE OGR_XLSX_FIELD_TYPES = STRING would become:
"HEADERS = FORCE,FIELD_TYPES = STRING"

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff681647e in free () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff681647e in free () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff05be960 in osgeo::proj::common::UnitOfMeasure::~UnitOfMeasure() ()
   from /lib/x86_64-linux-gnu/libproj.so.25
#2  0x00007ffff67b6a56 in __cxa_finalize () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff05223e7 in ?? () from /lib/x86_64-linux-gnu/libproj.so.25
#4  0x00007fffffffde80 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

comment:2 by darkblueb, 10 months ago

ol16 beta1

same crash

Note: See TracTickets for help on using tickets.