[GRASS-dev] [GRASS GIS] #536: memory corruption

#536: memory corruption
----------------------+-----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Comment (by martinl):

Replying to [comment:19 mmetz]:
> Doesn't make any sense to me why ifield[0] should get a random value.
Maybe just use the working solution?

yes, there is something strange with GRASS7 compilation on my computer
(note that I have no problems with GRASS6). E.g. debugging v.select

{{{
(gdb) b main.c:176 [for (iopt = 0; iopt < 2; iopt++) {]
(gdb) b main.c:184 [Vect_open_old(&(In[iopt]), parm.input[iopt]->answer,
"");]
(gdb) b main.c:188 [IFi = Vect_get_field(&(In[0]), ifield[0]);]
(gdb) r
(gdb) p ifield[0]
$4 = -163754450
(gdb) c
(gdb) p ifield[0]
$5 = 1
(gdb) c
(gdb) c
(gdb) p ifield[0]
$10 = 142560728
}}}

Nice mystery :wink:

M.

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

#536: memory corruption in vector modules
----------------------+-----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Changes (by hamish):

  * summary: memory corruption => memory corruption in vector modules

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

#536: memory corruption in vector modules
----------------------+-----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Comment (by mmetz):

Martin, are you still observing memory corruption in vector modules in
grass7?

If yes, is your system 32 bit or 64 bit? If 32 bit, does memory corruption
disappear when configuring without --enable-largefile?

This memory corruption may have something to do with the new LFS support
for vector libs, then I could have an idea how to fix it.

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

#536: memory corruption in vector modules
----------------------+-----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Comment (by mmetz):

Hopefully fixed in r37861, please test.

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

#536: memory corruption in vector modules
----------------------+-----------------------------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: blocker | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Changes (by mmetz):

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

Comment:

No complaints in the last 3 years, closing as fixed.

Markus M

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