Bug#868759: gdal-bin: Segmentation fault with SQLite driver.

Andy G Wood agw at bas.ac.uk
Tue Jul 18 14:41:36 UTC 2017


Hi Bas,

> On 2017-07-18 12:13, Andy Wood wrote:
> > Segmentation fault which probably appeared after gdal 2.2.1+dfsg-1
> > went into buster:
> > 
> > $ ogr2ogr -t_srs EPSG:3857 -f "SQLite" -dsco SPATIALITE=YES \
> > 
> >   test.sqlite test.xml
> > 
> > Segmentation fault
> 
> Can you provide a gdb stracktrace with the gdal-bin-dbgsym &
> libgdal20-dbgsym packages installed?

I am no expert in this, so here we go ...
$ sudo dpkg -i libgdal20-dbgsym_2.2.1+dfsg-1_amd64.deb
$ sudo dpkg -i gdal-bin-dbgsym_2.2.1+dfsg-1_amd64.deb

$ gdb ogr2ogr
.......
Reading symbols from ogr2ogr...Reading symbols from /usr/lib/debug/.build-id/
30/99d3a1c94ed49cc3714327d174f10b46e0ff56.debug...done.
 (gdb) set pagination 0
 (gdb) run -t_srs EPSG:3857 -f "SQLite" -dsco SPATIALITE=YES test.sqlite 
test.xml
Starting program: /usr/bin/ogr2ogr -t_srs EPSG:3857 -f "SQLite" -dsco 
SPATIALITE=YES test.sqlite test.xml
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
malloc_consolidate (av=av at entry=0x7ffff60e0b00 <main_arena>) at malloc.c:4207
4207    malloc.c: No such file or directory.
 (gdb) bt
#0  malloc_consolidate (av=av at entry=0x7ffff60e0b00 <main_arena>) at malloc.c:
4207
#1  0x00007ffff5dbeea8 in _int_free (av=0x7ffff60e0b00 <main_arena>, 
p=0x5555557937b0, have_lock=0) at malloc.c:4113
#2  0x00007ffff5d7c93d in __run_exit_handlers (status=0, listp=0x7ffff60e05d8 
<__exit_funcs>, run_list_atexit=run_list_atexit at entry=true, 
run_dtors=run_dtors at entry=true) at exit.c:92
#3  0x00007ffff5d7c96a in __GI_exit (status=<optimized out>) at exit.c:105
#4  0x00007ffff5d672b8 in __libc_start_main (main=0x5555555558f0 <main(int, 
char**)>, argc=9, argv=0x7fffffffded8, init=<optimized out>, fini=<optimized 
out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdec8) at ../csu/libc-
start.c:325
#5  0x000055555555603a in _start ()

Hope that helps.
Andy.



More information about the Pkg-grass-devel mailing list