Mapserver Crash

Constantin Cristian constantin.a.cristian at GMAIL.COM
Wed Jan 12 10:23:55 EST 2005


Hello,
I'm kind of new to Mapserver and i have the folowing problem:
-I am building Mapserver 4.4.1 on a Slackware 10 machine, with
./configure --enable-debug --with-eppl --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-gdal=/usr/local/bin/gdal-config --with-mygis=yes --with-php=/root/wms/php/php-4.3.7 --with-php-regex-dir=/root/wms/php/php-4.3.7/regex --with-fastcgi=/root/wms/mod_fastcgi-2.4.2 --with-ming=/root/wms/ming-0.3beta1/src --with-httpd=/usr/local/apache2/bin/httpd (I don't have any problems here)

-after that i run make  (I don't have any problems here except some warning concerning ming)

-the mapserv executable is built

-now the problem begins: when i run # ./mapserv QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map"
and i get "Segmentation fault", i should mention that this file exists but that does not mater the crash hapens whenever I set the variable map is set and does
not matter if the file exists or not 
#./mapserv QUERY_STRING="map=twtrewa.map"
Segmentation fault

Here is more info:
# gdb ./mapserv
GNU gdb 6.1.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb)set args QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map"
(gdb) set verbose 1
(gdb) run
Starting program: /root/wms/mapserver-4.4.1/mapserv QUERY_STRING="map=/usr/local/apache2/htdocs/workshop/itasca.map"

Reading symbols from /usr/local/lib/libgd.so.2...done.
Reading symbols from /usr/lib/libjpeg.so.62...done.
Reading symbols from /usr/lib/libfreetype.so.6...done.
Reading symbols from /usr/lib/libpng.so.3...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /usr/local/lib/libXpm.so.4...done.
Reading symbols from /usr/lib/libX11.so.6...done.
Reading symbols from /usr/local/lib/libproj.so.0...done.
Reading symbols from /usr/local/lib/libgdal.so.1...done.
Reading symbols from /usr/local/lib/libming.so...done.
Reading symbols from /usr/lib/libcurl.so.3...done.
Reading symbols from /usr/lib/libssl.so.0...done.
Reading symbols from /usr/lib/libcrypto.so.0...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /usr/lib/libstdc++.so.5...done.
Reading symbols from /usr/lib/libgcc_s.so.1...done.
Reading symbols from /usr/X11R6/lib/libfontconfig.so.1...done.
Reading symbols from /usr/lib/libpng12.so.0...done.
Reading symbols from /usr/lib/./libungif.so.4...done.
Reading symbols from /usr/lib/./libtiff.so.3...done.
Reading symbols from /usr/lib/mysql/libmysqlclient.so.12...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /usr/lib/libexpat.so.0...done.

Program received signal SIGSEGV, Segmentation fault.
0x0806735b in loadMapInternal (
    filename=0x8101f38 "/usr/local/apache2/htdocs/workshop/itasca.map",
    new_mappath=0x0) at mapfile.c:4173
4173      if((msyyin = fopen(filename,"r")) == NULL) {
(gdb)

I don't know why mapserv does not like the fopen function i tried to build a small program using fopen and i got no problem, it seams to me to be a Mapserver problem.

Please help me and excuse my english:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050112/9490075c/attachment.html


More information about the mapserver-users mailing list