Opened 12 years ago

Closed 12 years ago

#156 closed defect (fixed)

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:


This geometry recently submitted on PostGIS newsgroup 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 (7)

comment:1 Changed 12 years ago by robe

Owner: changed from mcayland to robe
Status: newassigned

comment:2 Changed 12 years ago by robe

Owner: changed from robe to mcayland
Status: assignednew

comment:3 Changed 12 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.

comment:4 Changed 12 years ago by mcayland

Resolution: fixed
Status: newclosed

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.



comment:5 Changed 12 years ago by robe

Resolution: fixed
Status: closedreopened


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);

comment:6 Changed 12 years ago by mcayland

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



comment:7 Changed 12 years ago by robe

Resolution: fixed
Status: reopenedclosed


Note: See TracTickets for help on using tickets.