id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 1999,Crash on LINESTRING with one point,realityexists,pramsey,"Run the following a couple of times and PostgreSQL crashes: {{{ CREATE OR REPLACE FUNCTION _dummy_func(lines geometry(LineString)[]) RETURNS geometry(LineString) AS 'BEGIN RETURN lines[1]; END' LANGUAGE plpgsql IMMUTABLE; SELECT ST_AsText(_dummy_func(ARRAY['LINESTRING(5 5)'])), ST_AsText(_dummy_func(ARRAY['LINESTRING(5 5)'])); }}} The first time it returns ""ERROR: geometry requires more points"" as expected. The second time it crashes. Windows 7 x64, PostgreSQL 9.1.4 x64 POSTGIS=""2.1.0SVN r10237"" GEOS=""3.4.0dev-CAPI-1.8.0 r0"" PROJ=""Rel. 4.8.0, 6 March 2012"" GDAL=""GDAL 1.9.1, released 2012/05/15"" LIBXML=""2.7.8"" LIBJSON=""UNKNOWN"" RASTER",defect,closed,medium,PostGIS Fund Me,postgis,master,duplicate,,