[GRASS-dev] Re: [GRASS GIS] #536: memory corruption
GRASS GIS
trac at osgeo.org
Mon Mar 30 12:58:57 EDT 2009
#536: memory corruption
----------------------+-----------------------------------------------------
Reporter: martinl | Owner: grass-dev at 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 ;-)
M.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/536#comment:20>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list