[GRASS-dev] Re: [GRASS GIS] #110: db/drivers/dbf fail to build due to undefined reference to 'SASetupDefaultHooks' (SHAPELIB)

GRASS GIS trac at osgeo.org
Sat Apr 12 16:00:36 EDT 2008


#110: db/drivers/dbf fail to build due to undefined reference to
'SASetupDefaultHooks' (SHAPELIB)
-----------------------+----------------------------------------------------
  Reporter:  marisn    |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  critical  |   Milestone:  6.4.0                    
 Component:  default   |     Version:  svn-trunk                
Resolution:            |    Keywords:  dbf                      
-----------------------+----------------------------------------------------
Comment (by dylan):

 Replying to [comment:12 neteler]:
 > Even R. suggests: if running Linux i386 or amd64, 'valgrind --trace-
 children=yes db.select xxxxx' will report memory errors on all forked
 processes. Currently discussed in #gdal (IRC)


 Here is my output (Debian/Unstable x86 32-bit)

 {{{
 valgrind --trace-children=yes db.select bugsites
 ==9294== Memcheck, a memory error detector.
 ==9294== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
 ==9294== Using LibVEX rev 1804, a library for dynamic binary translation.
 ==9294== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
 ==9294== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
 framework.
 ==9294== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
 ==9294== For more details, rerun with: -v
 ==9294==
 ==9295== Memcheck, a memory error detector.
 ==9295== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
 ==9295== Using LibVEX rev 1804, a library for dynamic binary translation.
 ==9295== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
 ==9295== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
 framework.
 ==9295== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
 ==9295== For more details, rerun with: -v
 ==9295==
 ==9295== Memcheck, a memory error detector.
 ==9295== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
 ==9295== Using LibVEX rev 1804, a library for dynamic binary translation.
 ==9295== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
 ==9295== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
 framework.
 ==9295== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
 ==9295== For more details, rerun with: -v
 ==9295==
 ==9295== Use of uninitialised value of size 4
 ==9295==    at 0x44F6F4C: VSIFReadL (cpl_vsil.cpp:423)
 ==9295==    by 0x461EAA1: VSI_SHP_Read (shp_vsi.c:53)
 ==9295==    by 0x40EC994: DBFOpenLL (in
 /usr/local/grass-6.3.svn/lib/libgrass_shape.6.3.svn.so)
 ==9295==    by 0x40EC5A9: DBFOpen (in
 /usr/local/grass-6.3.svn/lib/libgrass_shape.6.3.svn.so)
 ==9295==    by 0x804F237: load_table_head (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x804BA51: execute (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x804EC11: db__driver_open_select_cursor (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x402B82D: db_d_open_select_cursor (in
 /usr/local/grass-6.3.svn/lib/libgrass_dbmidriver.6.3.svn.so)
 ==9295==    by 0x402BE9D: db_driver (in
 /usr/local/grass-6.3.svn/lib/libgrass_dbmidriver.6.3.svn.so)
 ==9295==    by 0x804EBAB: main (in /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==
 ==9295== Invalid read of size 4
 ==9295==    at 0x44F6F63: VSIFReadL (cpl_vsil.cpp:423)
 ==9295==    by 0x461EAA1: VSI_SHP_Read (shp_vsi.c:53)
 ==9295==    by 0x40EC994: DBFOpenLL (in
 /usr/local/grass-6.3.svn/lib/libgrass_shape.6.3.svn.so)
 ==9295==    by 0x40EC5A9: DBFOpen (in
 /usr/local/grass-6.3.svn/lib/libgrass_shape.6.3.svn.so)
 ==9295==    by 0x804F237: load_table_head (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x804BA51: execute (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x804EC11: db__driver_open_select_cursor (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x402B82D: db_d_open_select_cursor (in
 /usr/local/grass-6.3.svn/lib/libgrass_dbmidriver.6.3.svn.so)
 ==9295==    by 0x402BE9D: db_driver (in
 /usr/local/grass-6.3.svn/lib/libgrass_dbmidriver.6.3.svn.so)
 ==9295==    by 0x804EBAB: main (in /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==  Address 0x4f46424c is not stack'd, malloc'd or (recently) free'd
 ==9295==
 ==9295== Process terminating with default action of signal 11 (SIGSEGV)
 ==9295==  Access not within mapped region at address 0x4F46424C
 ==9295==    at 0x44F6F63: VSIFReadL (cpl_vsil.cpp:423)
 ==9295==    by 0x461EAA1: VSI_SHP_Read (shp_vsi.c:53)
 ==9295==    by 0x40EC994: DBFOpenLL (in
 /usr/local/grass-6.3.svn/lib/libgrass_shape.6.3.svn.so)
 ==9295==    by 0x40EC5A9: DBFOpen (in
 /usr/local/grass-6.3.svn/lib/libgrass_shape.6.3.svn.so)
 ==9295==    by 0x804F237: load_table_head (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x804BA51: execute (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x804EC11: db__driver_open_select_cursor (in
 /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==    by 0x402B82D: db_d_open_select_cursor (in
 /usr/local/grass-6.3.svn/lib/libgrass_dbmidriver.6.3.svn.so)
 ==9295==    by 0x402BE9D: db_driver (in
 /usr/local/grass-6.3.svn/lib/libgrass_dbmidriver.6.3.svn.so)
 ==9295==    by 0x804EBAB: main (in /usr/local/grass-6.3.svn/driver/db/dbf)
 ==9295==
 ==9295== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 109 from 1)
 ==9295== malloc/free: in use at exit: 84,377 bytes in 52 blocks.
 ==9295== malloc/free: 82 allocs, 30 frees, 121,294 bytes allocated.
 ==9295== For counts of detected errors, rerun with: -v
 ==9295== searching for pointers to 52 not-freed blocks.
 ==9295== checked 3,163,220 bytes.
 ==9295==
 ==9295== LEAK SUMMARY:
 ==9295==    definitely lost: 32 bytes in 2 blocks.
 ==9295==      possibly lost: 67 bytes in 2 blocks.
 ==9295==    still reachable: 84,278 bytes in 48 blocks.
 ==9295==         suppressed: 0 bytes in 0 blocks.
 ==9295== Rerun with --leak-check=full to see details of leaked memory.
 dbmi: Protocol error
 ==9294==
 ==9294== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 23 from 1)
 ==9294== malloc/free: in use at exit: 6,881 bytes in 74 blocks.
 ==9294== malloc/free: 148 allocs, 74 frees, 276,120 bytes allocated.
 ==9294== For counts of detected errors, rerun with: -v
 ==9294== searching for pointers to 74 not-freed blocks.
 ==9294== checked 118,464 bytes.
 ==9294==
 ==9294== LEAK SUMMARY:
 ==9294==    definitely lost: 3,949 bytes in 8 blocks.
 ==9294==      possibly lost: 0 bytes in 0 blocks.
 ==9294==    still reachable: 2,932 bytes in 66 blocks.
 ==9294==         suppressed: 0 bytes in 0 blocks.
 ==9294== Rerun with --leak-check=full to see details of leaked memory.
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/110#comment:13>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list