#3714 closed defect (fixed)
v.out.ogr: segfault with -n
Reported by: | neteler | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.4.4 |
Component: | Vector | Version: | unspecified |
Keywords: | v.out.ogr | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
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 ()
Change History (4)
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 6 years ago
Replying to neteler:
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)
Note that the example is wrong because output
must be a OGR datasource, not a OGR layer, and filename.shp
is a OGR layer. You can specify a OGR layer name with output_layer
.
Note:
See TracTickets
for help on using tickets.
In 73817: