Ticket #156 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

ST_AsEWKT and ST_AsText crashes with some invalid geometries

Reported by: robe Owned by: mcayland
Priority: high Milestone: PostGIS 1.4.0
Component: postgis Version: 1.4
Keywords: Cc:

Description

This geometry recently submitted on PostGIS newsgroup  http://postgis.refractions.net/pipermail/postgis-users/2009-April/023204.html crashes PostgreSQL service in 1.4.0 (tried on windows and OpenSUSE linux) but just gives a non-closed rings error in 1.3.5 (don't have my 1.3.6 up yet to verify it doesn't misbehave in that)

SELECT ST_AsEWKT('0106000000010000000103000000010000000700000024213D12AA7BFD40945FF42576511941676A32F9017BFD40B1D67BEA7E511941C3E3C640DB7DFD4026CE38F4EE531941C91289C5A7EFD40017B8518E3531941646F1599AB7DFD409627F1F0AE521941355EBA49547CFD407B14AEC74652194123213D12AA7BFD40945FF42576511941')

Change History

Changed 4 years ago by robe

  • owner changed from mcayland to robe
  • status changed from new to assigned

Changed 4 years ago by robe

  • owner changed from robe to mcayland
  • status changed from assigned to new

Changed 4 years ago by robe

I tested this under 1.3.6SVN against PostgreSQL 8.4 beta 1 - and gives the non-closed rings error.

However in 1.4SVN against PostgreSQL 8.4 beta 1 -- also crashes the PostgreSQL service. So we must have introduced something bad in 1.4 to make this crash.

Changed 4 years ago by mcayland

  • status changed from new to closed
  • resolution set to fixed

This appears to be the same as Paul's bug #168 which I have now fixed - I can confirm that the above statement now works correctly for me with latest SVN.

ATB,

Mark.

Changed 4 years ago by robe

  • status changed from closed to reopened
  • resolution fixed deleted

Mark,

This is not completely fixed. I can do the above now on the latest Postgis 1.4 build, however if I do the below -- backend crashes (but the same exercise works fine in 1.3)

SELECT CAST('0106000000010000000103000000010000000700000024213D12AA7BFD40945FF42576511941676A32F9017BFD40B1D67BEA7E511941C3E3C640DB7DFD4026CE38F4EE531941C91289C5A7EFD40017B8518E3531941646F1599AB7DFD409627F1F0AE521941355EBA49547CFD407B14AEC74652194123213D12AA7BFD40945FF42576511941' As geometry);

Changed 4 years ago by mcayland

Okay. Please update to the latest r4165 and see if that fixes it for you.

ATB,

Mark.

Changed 4 years ago by robe

  • status changed from reopened to closed
  • resolution set to fixed

works

Note: See TracTickets for help on using tickets.