[geos-devel] [GEOS] #219: This geometry causes buffer(?, 0) to crash the PostGresql server

GEOS geos-trac at osgeo.org
Tue Dec 9 07:28:14 EST 2008


#219: This geometry causes buffer(?, 0) to crash the PostGresql server
------------------------+---------------------------------------------------
 Reporter:  robe        |       Owner:  geos-devel at lists.osgeo.org
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:                            
Component:  Default     |     Version:                            
 Severity:  Unassigned  |    Keywords:                            
------------------------+---------------------------------------------------
 This was submitted to PostGIS -- and we have confirmed this to be an issue
 in 3.0.3 and 3.1.0 SVN of GEOS with newer installs of PostGIS and believe
 its a GEOS bug and not a PostGIS one. Refer to
 http://code.google.com/p/postgis/issues/detail?id=81

 What steps will reproduce the problem?
 1. Run the attached script
 2.
 3.

 What is the expected output? What do you see instead?

 server closed the connection unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.
 connection to server was lost


 What version of the product are you using? On what operating system?

 psql 8.3.5
 postgis_version: 1.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
 postgis_geos_version: 3.0.1-CAPI-1.4.2
 Fedora 10

 Please provide any additional information below.

 The following is written to the log file:

 bufferOriginalPrecision failed (TopologyException: unable to assign hole
 to
 a shell), trying with reduced precision
 recomputing with precision scale factor = 1e+09
 Scaler: offsetX,Y: 0,0 scaleFactor: 1e+09
  dstahlke svdev [local] SELECT:
 ../../source/headers/geos/noding/SegmentString.h:175: void
 geos::noding::SegmentString::testInvariant() const: Assertion `pts->size()
 > 1' failed.
 LOG:  server process (PID 863) was terminated by signal 6: Aborted
 LOG:  terminating any other active server processes
 LOG:  all server processes terminated; reinitializing
 LOG:  database system was interrupted; last known up at 2008-12-05
 14:16:19
 AKST
 LOG:  database system was not properly shut down; automatic recovery in
 progress
 LOG:  record with zero length at 0/3C5BC340
 LOG:  redo is not required
 LOG:  database system is ready to accept connections
 LOG:  autovacuum launcher started

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/219>
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