[GRASS-dev] [GRASS GIS] #1039: i.group segmentation fault using full path name

GRASS GIS trac at osgeo.org
Thu Apr 15 16:45:39 EDT 2010


#1039: i.group segmentation fault using full path name
---------------------+------------------------------------------------------
 Reporter:  huhabla  |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect   |      Status:  new                      
 Priority:  major    |   Milestone:  7.0.0                    
Component:  Imagery  |     Version:  svn-trunk                
 Keywords:  group    |    Platform:  Linux                    
      Cpu:  x86-32   |  
---------------------+------------------------------------------------------
 i.group produces a segmentation fault when called with full path name.

 {{{

 GRASS 7.0.svn (spearfish60):~/src/grass7.0/grass_trunk > g.list group
 ----------------------------------------------
 imagery group files available in mapset <user1>:
 input_0    soil_group

 GRASS 7.0.svn (spearfish60):~/src/grass7.0/grass_trunk > i.group -g
 group=soil_groupsoil.br.depth at PERMANENT
 soils at PERMANENT
 soils.Kfactor at PERMANENT
 soils.Tfactor at PERMANENT
 soils.ph at PERMANENT
 soils.range at PERMANENT
 i.group complete.

 GRASS 7.0.svn (spearfish60):~/src/grass7.0/grass_trunk > valgrind
 --tool=memcheck /home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-
 gnu/bin/i.group -g group=soil_group
 ==5684== Memcheck, a memory error detector.
 ==5684== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
 ==5684== Using LibVEX rev 1854, a library for dynamic binary translation.
 ==5684== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
 ==5684== Using valgrind-3.3.1, a dynamic binary instrumentation framework.
 ==5684== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
 ==5684== For more details, rerun with: -v
 ==5684==
 ==5684== Invalid read of size 4
 ==5684==    at 0x8048FFF: main (main.c:112)
 ==5684==  Address 0x672d78a1 is not stack'd, malloc'd or (recently) free'd
 ==5684==
 ==5684== Process terminating with default action of signal 11 (SIGSEGV)
 ==5684==  Access not within mapped region at address 0x672D78A1
 ==5684==    at 0x8048FFF: main (main.c:112)
 ==5684==
 ==5684== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 3 from 1)
 ==5684== malloc/free: in use at exit: 824 bytes in 28 blocks.
 ==5684== malloc/free: 32 allocs, 4 frees, 1,683 bytes allocated.
 ==5684== For counts of detected errors, rerun with: -v
 ==5684== searching for pointers to 28 not-freed blocks.
 ==5684== checked 76,300 bytes.
 ==5684==
 ==5684== LEAK SUMMARY:
 ==5684==    definitely lost: 35 bytes in 1 blocks.
 ==5684==      possibly lost: 0 bytes in 0 blocks.
 ==5684==    still reachable: 789 bytes in 27 blocks.
 ==5684==         suppressed: 0 bytes in 0 blocks.
 ==5684== Rerun with --leak-check=full to see details of leaked memory.
 }}}

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


More information about the grass-dev mailing list