[GRASS-dev] [GRASS GIS] #2181: v.centerpoint: Error in `v.centerpoint': realloc(): invalid next size

#2181: v.centerpoint: Error in `v.centerpoint': realloc(): invalid next size
-----------------------------------+----------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: v.centerpoint realloc | Platform: Linux
      Cpu: Unspecified |
-----------------------------------+----------------------------------------
With a freshly compiled grass_trunk and freshly checked out v.centerpoint,
in the NC dataset, I get the following error when I run

{{{
v.centerpoint --overwrite input=boundary_county@PERMANENT
output=bc_centroids acenter=median
}}}

{{{
Error in `v.centerpoint': realloc(): invalid next size: 0x000000000159aad0
}}}

and the same with bmedian:

{{{
v.centerpoint --overwrite input=boundary_county@PERMANENT
output=bc_centroids acenter=bmedian
}}}

{{{
Error in `v.centerpoint': realloc(): invalid next size: 0x00000000023dbad0
}}}

I do not get the prompt back in the terminal and the v.centerpoint process
is shown as 'S' in top. I have to Ctrl-C to get the prompt back.

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

#2181: v.centerpoint: Error in `v.centerpoint': realloc(): invalid next size
-----------------------------------+----------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-trunk
Keywords: v.centerpoint realloc | Platform: Linux
      Cpu: Unspecified |
-----------------------------------+----------------------------------------
Changes (by mlennert):

  * component: Default => Addons

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

#2181: v.centerpoint: Error in `v.centerpoint': realloc(): invalid next size
-----------------------------------+----------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-trunk
Keywords: v.centerpoint realloc | Platform: Linux
      Cpu: Unspecified |
-----------------------------------+----------------------------------------

Comment(by mmetz):

Please try r58842.

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

#2181: v.centerpoint: Error in `v.centerpoint': realloc(): invalid next size
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Addons | Version: svn-trunk
Resolution: fixed | Keywords: v.centerpoint realloc
  Platform: Linux | Cpu: Unspecified
-----------------------+----------------------------------------------------
Changes (by mlennert):

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

Comment:

Replying to [comment:2 mmetz]:
> Please try r58842.

Fixes this bug, thanks ! But introduces the segfault reported in #2183.
Closing this bug and leaving #2183 open for that issue.

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