[postgis-devel] Segfault with Intersects() in 1.0.6-CVS
Alex Mayrhofer
axelm-postgis at nona.net
Sat Dec 3 04:14:41 PST 2005
Benj Carson wrote:
> Hello,
>
> I am getting segfaults with PostGIS 1.0.6-CVS (updated as of 2005-12-02) and
> PostgreSQL 8.1 (from Debian) when calling Intersects():
>
> # select intersects(
> polygonfromtext('POLYGON((0.0 0.0,1.0 0.0,1.0 1.0,1.0 0.0,0.0 0.0))'),
> polygonfromtext('POLYGON((0.0 2.0,1.0 2.0,1.0 3.0,0.0 3.0,0.0 2.0))')
> );
works for me on
POSTGIS="1.0.6CVS" GEOS="2.1.1" PROJ="Rel. 4.4.9, 29 Oct 2004" USE_STATS
DBPROC="0.3.0" RELPROC="0.3.0"
PostgreSQL 8.1 on a Ultrasparc machine running Debian/GNU Linux. I know that
this is an old GEOS version, however.
May i suggest that we add regression tests for each "problematic" query to
the distribution, probably with a reference to the respective mail archive
thread, like in this case:
--- postgis-devel/2005-December/001784.html
select intersects(
polygonfromtext('POLYGON((0.0 0.0,1.0 0.0,1.0 1.0,1.0 0.0,0.0 0.0))'),
polygonfromtext('POLYGON((0.0 2.0,1.0 2.0,1.0 3.0,0.0 3.0,0.0 2.0))')
);
using the mailing list archive as a reference. I think the more tests we
have, the better (i'm working with another project where we have now around
2300 regression tests, and they have proved to be really useful, even if
they look trivial in the first place).
cheers
alex
More information about the postgis-devel
mailing list