[postgis-users] MakePoint/GeometryFromText core dump

strk at refractions.net strk at refractions.net
Mon May 2 02:37:45 PDT 2005


On Sun, May 01, 2005 at 06:56:53PM -0500, Chris LaReau wrote:
(...)
> Sorry, the test case is actually there in my gdb and valgrind
> examples, but without all the adornment it is this:
> 
>   SELECT GeometryFromText('POINT(-106 40.67)',-1);
> 
> For completeness, from an empty PostgreSQL/PostGIS install (where
> $PREFIX is the postgres install prefix):
> 
>   createdb crash
>   createlang plpgsql crash
>   psql -d crash -f $PREFIX/share/postgresql/contrib/lwpostgis.sql
>   psql -d crash -c "SELECT GeometryFromText('POINT(-106 40.67)',-1);"
> 
> The result of the last line is:
> 
>   server closed the connection unexpectedly
>           This probably means the server terminated abnormally
>           before or while processing the request.
>   connection to server was lost

This is with current CVS of 1.0 branch (no changes since 1.0.0 that would
affect this query):

$ createdb crash
$ createlang plpgsql crash
$ psql -d crash -f lwpostgis.sql
...
$ psql -d crash -c "SELECT GeometryFromText('POINT(-106 40.67)', -1);"
              geometryfromtext
--------------------------------------------
 01010000000000000000805AC0F6285C8FC2554440
(1 row)

$ psql -d crash -c "SELECT postgis_full_version();"
                                        postgis_full_version                    
-----------------------------------------------------------------------------------------------------
 POSTGIS="1.0.0" GEOS="3.0.0" PROJ="Rel. 4.4.8, 3 May 2004" USE_STATS DBPROC="0.3.0" RELPROC="0.3.0"
(1 row)


Note also that my postgresql version (8.0.0) has been compiled with
the --enable-cassert flag, which forces pfree() to really release memory
thus making memory bugs more easily visible.

What architecture are you on ?
What postgis/postgresql version ?
I used gcc 3.4.3 for the build... problem could also be there,
a report of warnings you received at compile time would help.

--strk;



More information about the postgis-users mailing list