[GRASS-dev] [GRASS GIS] #380: v.select: segfault in dig_alloc_points

#380: v.select: segfault in dig_alloc_points
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Keywords: | Platform: Linux
      Cpu: x86-64 |
----------------------+-----------------------------------------------------
GRASS 6.4 SVN r34374, Debian testing amd64.

{{{
$ gdb v.select

(gdb) run ainput=gshhs_f_land atype=line alayer=1 binput=region btype=line
blayer=1 output=sel operator=overlap --o

Starting program: /usr/local/grass-6.4.svn/bin/v.select
ainput=gshhs_f_land@PERMANENT atype=line alayer=1 binput=region@PERMANENT
btype=line blayer=1 output=sel operator=overlap --o
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at
0000000000000120
[New Thread 0x7ff2df7ed710 (LWP 16527)]
WARNING: Vector map <sel> already exists and will be overwritten
Processing vector features...
  100%

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ff2df7ed710 (LWP 16527)]
0x00007ff2de5f488a in dig_alloc_points (points=0x0, num=1)
     at struct_alloc.c:237
237 alloced = points->alloc_points;
(gdb) bt
#0 0x00007ff2de5f488a in dig_alloc_points (points=0x0, num=1)
     at struct_alloc.c:237
#1 0x00007ff2df4e9a8b in Vect_copy_xyz_to_pnts (Points=0x0,
x=0x7fffe7923320,
     y=0x7fffe7923318, z=0x7fffe7923310, n=1) at line.c:118
#2 0x00007ff2df4e854d in find_cross (id=2, arg=0x7fffe7923444)
     at intersect.c:1095
#3 0x00007ff2de3dc962 in RTreeSearch (N=0x39bbbd0, R=0x7fffe7923400,
     shcb=0x7ff2df4e82e5 <find_cross>, cbarg=0x7fffe7923444) at index.c:65
#4 0x00007ff2df4e8e42 in Vect_line_check_intersection (APoints=0x39b6250,
     BPoints=0x39b7820, with_z=0) at intersect.c:1273
#5 0x0000000000402a44 in main (argc=10, argv=0x7fffe7924988) at
main.c:270
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/380&gt;
GRASS GIS <http://grass.osgeo.org>

#380: v.select: segfault in dig_alloc_points
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: critical | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Comment (by martinl):

Already fixed in 6.4 (r34468) and 7.0 (r34469). Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/380#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#380: v.select: segfault in dig_alloc_points
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: critical | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: x86-64
-----------------------+----------------------------------------------------
Changes (by msieczka):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:1 martinl]:
> Already fixed in 6.4 (r34468) and 7.0 (r34469). Martin

Indeed. Thanks!

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/380#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>