[GRASS-dev] Re: [GRASS GIS] #536: memory corruption
GRASS GIS
trac at osgeo.org
Sun Mar 29 11:02: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
----------------------+-----------------------------------------------------
Changes (by martinl):
* status: closed => reopened
* resolution: fixed =>
Comment:
Well, I cannot see any reason why memory was corrupted in v.info - only in
GRASS7, but not in GRASS 6.5. When implementing very basic GEOS support in
v.select I was facing to the similar problem.
In the loop
(http://trac.osgeo.org/grass/browser/grass/trunk/vector/v.select/main.c#L176)
is initialized ifield variable. Inside of the loop everything is OK -
ifield[0] and ifield[1] are initialized properly. After leaving the loop
in ifield[0] occurs random value.
More strangely when I add before line
http://trac.osgeo.org/grass/browser/grass/trunk/vector/v.select/main.c#L37
{{{
struct GOption *in_opt[2];
}}}
memory is not corrupted at all.
I am going to be a little bit confused ;-) Has anybody any idea what is
happening here. Compiling GRASS7 with
{{{
CFLAGS="-g -Wall -Werror-implicit-function-declaration -fno-common
-Wextra -Wunused" \
CXXFLAGS="-g -Wall" \
./configure --prefix=/usr/local \
--with-tcltk-includes=/usr/include/tcl8.4 --with-tcltk-
libs=/usr/lib/tcl8.4 \
--with-postgres --with-postgres-
includes=/usr/include/postgresql \
--with-mysql --with-mysql-includes=/usr/include/mysql \
--with-gdal=/usr/local/gdal-grass7/bin/gdal-config \
--with-proj \
--with-motif --with-glw --with-nls --with-readline \
--with-cxx --enable-largefile \
--with-freetype --with-freetype-
includes=/usr/include/freetype2 \
--with-sqlite --with-ffmpeg --with-ffmpeg-
includes=/usr/include/ffmpeg/ \
--with-odbc --with-python=/usr/bin/python2.5-config --with-
wxwidgets --with-pthread \
--with-ffmpeg=no --with-geos
}}}
{{{
gcc --version
gcc (Debian 4.3.3-5) 4.3.3
}}}
Thanks in advance. Martin
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/536#comment:18>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list