[geos-devel] [GEOS] #518: GEOS 3.3.2 crashes on MinGW64

GEOS geos-trac at osgeo.org
Sat Mar 17 12:27:11 EDT 2012

#518: GEOS 3.3.2 crashes on MinGW64
 Reporter:  esseffe     |       Owner:  geos-devel@…              
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:  3.3.3                     
Component:  Default     |     Version:  3.3.2                     
 Severity:  Unassigned  |    Keywords:                            
 I'm Sandro Furieri, developer and maintainer of SpatiaLite.
 I noticed some nasty crash caused by the current GEOS 3.3.2 on Windows 7
 (64 bit): I compiled GEOS using the MinGW64 compiler, but may well be that
 all these issues are caused by Win64 runtime libs and not by MinGW itself
 (not really sure about this).

 Anyway, it's surely interesting to note that on the same identical
 platform, anything runs smoothly (no crash at all) when I build a 32 bit
 executable using MinGW32 and compiling the same identical sources. These
 are the issues I noticed on MinGW64:

 issue #1:
 ./configure --host=x86_64-w64-mingw32
 make check
 Making check in xmltester
 make[2]: Entering directory

 make  check-TESTS
 make[3]: Entering directory

 >>>>>>>>>>>>>> XMLtester.exe crashes <<<<<<<<<<<<<<<<

 FAIL: testrunner
 1 of 1 test failed
 make[3]: *** [check-TESTS] Error 1
 make[3]: Leaving directory
 make[2]: *** [check-am] Error 2
 make[2]: Leaving directory
 make[1]: *** [check-recursive] Error 1
 make[1]: Leaving directory `/f/sviluppo-64/contribs/geos-3.3.2/tests'
 make: *** [check-recursive] Error 1

 please note: this issue seems similar to the one reported on ticket #509,
 but it's not identical. and in my case it works nicely when for MinGW 32

 issue #2:[[BR]]
 GEOSIsValid() crashes when examining this geometry:
 LINESTRING(1 2, 1 2)
 please note: this Linestring simply has two points, and both them
 have identical coordinates.
 on Linux32, Linux64 and Win32 the same op simply returns an error
 and some warning as expected.

 issue #3:[[BR]]
 GEOSIsValid() crashes again when examining this geometry:
 POLYGON((10 10, 15 10, 15 10, 10 15, 10 10), (5 5, 20 5, 20 20, 5 20, 5
 please note: this Polygon is invalid, because the Interior Ring is
 outside the Exterior Ring.
 yet again, on Linux32, Linux64 and Win32 the same op works as expected.

 bye Sandro

Ticket URL: <http://trac.osgeo.org/geos/ticket/518>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

More information about the geos-devel mailing list