[postgis-devel] invalid memory alloc request size
Markus Schaber
schabi at logix-tt.com
Mon Jun 13 02:32:24 PDT 2005
Hello, Strk,
strk at refractions.net wrote:
> Can you reproduce with any non-GEOS function ?
> Does the problem show up with *all* GEOS functions ?
> Did you try geosnoop() ?
lwhead=# select geosnoop('GEOMETRYCOLLECTION EMPTY'::geometry);
ERROR: invalid memory alloc request size 0
>From some further testing, it seems that only GEOS functions are broken,
but on both my ia32 and another ia64 machine. Pure PostGIS and Proj4
functions seems to work fine.
However, it seems that the brokenness depends on the data, only "empty"
geometries are broken. (AFAIR, they are all converted to the same
internally, right?)
lwgeom_patched=# select isvalid('SRID=4326;POINT(1 1)'::geometry);
isvalid
---------
t
(1 row)
lwgeom_patched=# select geosnoop('LINESTRING EMPTY'::geometry);
ERROR: invalid memory alloc request size 0
lwgeom_patched=# select geosnoop('LINESTRING(1 1)'::geometry);
ERROR: geometry requires more points
lwgeom_patched=# select geosnoop('MULTIPOINT(1 1)'::geometry);
geosnoop
--------------------------------------------------------------
0104000000010000000101000000000000000000F03F000000000000F03F
(1 row)
lwgeom_patched=# select geosnoop('MULTIPOINT EMPTY'::geometry);
ERROR: invalid memory alloc request size 0
Markus
More information about the postgis-devel
mailing list