[gdal-dev] ogr2ogr crash on Windows with trunk r14310
Patrick Hartling
patrick.hartling at priority5.com
Thu Apr 17 18:14:49 EDT 2008
I am trying to test the bug fix applied to the GDAL SVN trunk in
r14213, but I get a crash from ogr2ogr in the call to PQconnectdb()
made by OGRPGDataSource::Open(). The org2ogr command line I am using
is the following:
ogr2ogr -f PostgreSQL PG:"host=localhost dbname=testdb user=patrick" -
overwrite input.mdb -lco LAUNDER=NO -lco GEOMETRY_NAME=the_geom
This is happening on Windows XP SP2 with PostgreSQL 8.2.5 and PostGIS
1.3.1. The above ogr2ogr command works fine with GDAL 1.5.0.
I am using r14310 of the source from the SVN trunk. Before building
GDAL, I modified nmake.opt to include the following two lines:
PG_INC_DIR = "C:\Program Files (x86)\PostgreSQL\8.2\include"
PG_LIB = "C:\Program Files (x86)\PostgreSQL\8.2\lib\libpq.lib"
wsock32.lib
I compiled the code using Visual C++ 7.1 with this command:
nmake /f makefile.vc PYDIR=C:\Python25 NODEBUG= 1
I have verified that the string processing being done by
OGRPGDataSource::Open() produces "host=localhost dbname=testdb
user=patrick" as the input to PQconnectdb(). The named database
exists, and the PostgreSQL server is listening on the default port. Is
there anything else that could cause PQconnectdb() to fail, or should
I go ahead and make a build of PostgreSQL with debug symbols to see
what is happening in PQconnectdb()?
Thanks.
-Patrick
--
Patrick L. Hartling
Senior Software Engineer, Priority 5
http://www.priority5.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080417/dd37df00/PGP.bin
More information about the gdal-dev
mailing list