[GRASS-dev] [GRASS GIS] #3714: v.out.ogr: segfault with -n
GRASS GIS
trac at osgeo.org
Wed Dec 19 03:32:32 PST 2018
#3714: v.out.ogr: segfault with -n
-------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.4.4
Component: Vector | Version: unspecified
Keywords: v.out.ogr | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
At time -n crashes the command (tested also in G74 and later):
{{{
GRASS 7.7.svn (nc_spm_08):~ > v.out.ogr in=zipcodes_wake type=area
out=filename.shp format=ESRI_Shapefile -n
Segmentation fault (core dumped)
}}}
Debugging with user data (from ML):
{{{
GRASS 7.4.3svn (test_loc_25832):~/grassdata > gdb v.out.ogr
GNU gdb (GDB) Fedora 8.2-5.fc29
Copyright (C) 2018 Free Software Foundation, Inc.
...
Reading symbols from v.out.ogr...done.
(gdb) r in=cur_feature type=area out=filename.shp format=ESRI_Shapefile
output_layer=gebiet -n
Starting program: /home/mneteler/software/grass74/dist.x86_64-pc-linux-
gnu/bin/v.out.ogr in=cur_feature type=area out=filename.shp
format=ESRI_Shapefile output_layer=gebiet -n
...
Program received signal SIGSEGV, Segmentation fault.
Vect_get_num_dblinks (Map=0x7fffffffbb30) at level_two.c:166
166 return (Map->dblnk->n_fields);
}}}
i.e., lib/vector/Vlib/level_two.c
Debugging in trunk with North Carolina dataset:
{{{
GRASS 7.7.svn (nc_spm_08):~ > gdb v.out.ogr
GNU gdb (GDB) Fedora 8.2-5.fc29
Copyright (C) 2018 Free Software Foundation, Inc.
...
(gdb) r in=zipcodes_wake type=area out=filename.shp format=ESRI_Shapefile
-n
(gdb) bt
#0 0x00007ffff7f7cdb4 in Vect_get_num_dblinks () from
/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/lib/libgrass_vector.7.7.svn.so
#1 0x00007ffff7f72d04 in Vect_get_field_number () from
/home/mneteler/software/grass77/dist.x86_64-pc-linux-
gnu/lib/libgrass_vector.7.7.svn.so
#2 0x0000000000404cfe in main ()
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3714>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list