Segfault with PHP mapscript 4.4.0
Thomas Sondag
thomas at MICRODOP.ORG
Fri Dec 10 01:37:48 PST 2004
Hi list,
I try to build php mapscript with the new option :
--with-php-regex-dir .
It work fine with php as an apache DSO module, but now, I have problems
when I try to use it with php4 CGI binary. Php cgi load the module
without problem but segfault on ms_newmapobj function use.
Part of the ltrace :
strlen("MapScript") = 9
malloc(45) = 0x8381c38
memcpy(0x8381c58, "MapScript", 10) = 0x8381c58
malloc(72) = 0x8381c70
memcpy(0x8381c70, "H", 72) = 0x8381c70
strlen("MapScript") = 9
memcpy(0x836f1cc, "ms_newmapobj", 12) = 0x836f1cc
memcpy(0x836f3ac, "map/apserver.map", 16) = 0x836f3ac
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
the map file map/apserver.map doesn't exist.
My configure options :
./configure \
--prefix=/usr \
--enable-debug \
--without-tiff \
--without-pdf \
--with-gd=/usr \
--with-freetype=/usr \
--with-zlib=/usr \
--with-png=/usr \
--with-xpm=/usr \
--with-jpeg=/usr \
--with-gdal \
--with-ogr \
--with-proj \
--with-eppl \
--with-postgis \
--with-wcs \
--with-wms \
--with-wmsclient \
--with-wfs \
--with-wfsclient \
--with-php=/usr/include/php4 \
--with-php-regex-dir=/usr/include/php4/regex \
--with-threads
Shared lib version :
ldd /usr/lib/php4/20020429/php_mapscript.so
libcurl.so.3 => /usr/lib/libcurl.so.3 (0x400f3000)
libidn.so.11 => /usr/lib/libidn.so.11 (0x40122000)
libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x40153000)
libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7
(0x40184000) libdl.so.2 => /lib/libdl.so.2 (0x40283000)
libz.so.1 => /usr/lib/libz.so.1 (0x40286000)
libpq.so.3 => /usr/lib/libpq.so.3 (0x40298000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x402b7000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x402d6000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40343000)
libgdal.so.1 => /usr/lib/libgdal.so.1 (0x40368000)
libpthread.so.0 => /lib/libpthread.so.0 (0x406d2000)
libproj.so.0 => /usr/lib/libproj.so.0 (0x40723000)
libgd.so.2 => /usr/lib/libgd.so.2 (0x40758000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x407a9000)
libm.so.6 => /lib/libm.so.6 (0x40863000)
libc.so.6 => /lib/libc.so.6 (0x40885000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x409b8000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x409c1000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40a29000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40a57000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40a69000)
libodbc.so.1 => /usr/lib/libodbc.so.1 (0x40a7e000)
libxerces-c.so.21 => /usr/lib/libxerces-c.so.21 (0x40af6000)
libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0x40d71000)
libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x40dbe000)
libdf.so.4 => /usr/lib/libdf.so.4 (0x40de1000)
libungif.so.4 => /usr/lib/libungif.so.4 (0x40e80000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0x40e88000)
libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0x40ed6000)
libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0x40ef9000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x41066000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x41076000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4113d000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x41164000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x41186000)
libltdl.so.3 => /usr/lib/libltdl.so.3 (0x41189000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x41191000)
Debian packages :
http://agrogeomatic.educagri.fr/debian/dists/experimental/
Do I mis something ?
Thanks for your help
Thomas
More information about the MapServer-users
mailing list