[GRASS-dev] [GRASS GIS] #697: v.surf.rst memory problems

GRASS GIS trac at osgeo.org
Thu Jul 23 16:41:57 EDT 2009


#697: v.surf.rst memory problems
-------------------------+--------------------------------------------------
 Reporter:  fpachecouy   |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect       |      Status:  new                      
 Priority:  major        |   Milestone:  6.4.0                    
Component:  default      |     Version:  unspecified              
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 On Ubuntu 9.04, GRASS 6.4 (from deb packeage) and GRASS 6.5 (svn).

 When I run v.surf.rst with valid parameters program crash with this
 output:
 v.surf.rst tension=80.0 input=curvas elev=curvasMDT scolumn='cota'
 segmax=100 dmin=50
 Percent complete:
 Reading lines from vector map ...
 Reading nodes from vector map ...
  100%
  125%
 *** glibc detected *** v.surf.rst: munmap_chunk(): invalid pointer:
 0xb7f85e60 ***

 Output (using valgrind):
 valgrind v.surf.rst tension=80.0 input=curvas elev=curvasMDT
 scolumn='cota' segmax=100 dmin=50

 ==16812== Memcheck, a memory error detector.

 ==16812== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.

 ==16812== Using LibVEX rev 1884, a library for dynamic binary translation.

 ==16812== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.

 ==16812== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation
 framework.

 ==16812== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.

 ==16812== For more details, rerun with: -v

 ==16812==

 Percent complete:

 Reading lines from vector map ...
 Reading nodes from vector map ...
  100%
  125%
 ==16812== Conditional jump or move depends on uninitialised value(s)

 ==16812==    at 0x4055D5D: db_CatValArray_free (value.c:350)

 ==16812==    by 0x403FF69: IL_vector_input_data_2d (vinput2d.c:305)

 ==16812==    by 0x804C141: main (main.c:692)

 ==16812==

 ==16812== Conditional jump or move depends on uninitialised value(s)

 ==16812==    at 0x4055D62: db_CatValArray_free (value.c:350)

 ==16812==    by 0x403FF69: IL_vector_input_data_2d (vinput2d.c:305)

 ==16812==    by 0x804C141: main (main.c:692)

 ==16812==

 ==16812== Conditional jump or move depends on uninitialised value(s)

 ==16812==    at 0x4025DBD: free (vg_replace_malloc.c:323)

 ==16812==    by 0x4055D71: db_CatValArray_free (value.c:364)

 ==16812==    by 0x403FF69: IL_vector_input_data_2d (vinput2d.c:305)

 ==16812==    by 0x804C141: main (main.c:692)

 ==16812==

 ==16812== Invalid free() / delete / delete[]

 ==16812==    at 0x4025DFA: free (vg_replace_malloc.c:323)

 ==16812==    by 0x4055D71: db_CatValArray_free (value.c:364)

 ==16812==    by 0x403FF69: IL_vector_input_data_2d (vinput2d.c:305)

 ==16812==    by 0x804C141: main (main.c:692)

 ==16812==  Address 0x4034e60 is not stack'd, malloc'd or (recently) free'd

 WARNING: strip exists with insufficient data

 Thanks. Fernando.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/697>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list