[postgis-devel] [PostGIS] #363: GUI segfaults after iconv error during load

PostGIS trac at osgeo.org
Mon Jan 4 15:14:02 PST 2010


#363: GUI segfaults after iconv error during load
----------------------+-----------------------------------------------------
  Reporter:  pramsey  |       Owner:  pramsey      
      Type:  defect   |      Status:  new          
  Priority:  medium   |   Milestone:  PostGIS 1.5.1
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by mloskot):

 I'm not really able to build and debug this issue, no MinGW for me, but
 from the reported details I suspect it is a memory corruption issue,
 presumably heap corruption.

 Paul suggested it rather is not allocation and deallocation crossing
 boundaries of DLL modules as Shapelib is built-in to the application.

 The value of pointer changes in the way that it is clearly not valid
 address in memory, what would suggest memory corruption at some place
 before SHPClose is called.

 {{{
 Old value = 2009464036
 New value = 4063772
 }}}

 I have no idea if binaries built using MinGW are debuggable under Windows,
 but perhaps [http://support.microsoft.com/kb/286470 pageheap] or even
 using debugging instruments: [http://msdn.microsoft.com/en-
 us/library/5at7yxcs%28VS.71%29.aspx _CrtSetDbgFlag] and
 [http://msdn.microsoft.com/en-us/library/e73x0s4b%28VS.71%29.aspx
 _CrtCheckMemory]:
 {{{
 assert(_CrtCheckMemory());
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/363#comment:17>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list