shp2img error: stack trace

Ryan Ollerenshaw ryanollerenshaw at GMAIL.COM
Thu Oct 18 16:40:07 PDT 2007


I just installed Mapserver 5.0 on Fedora Core 6 with Apache 2 and PHP
5.2.4.  Whenever i run shp2img i get a stack trace:

[root at xxxxx]# ./shp2img -m /var/www/html/test.map -c /var/www/html/test.png
*** glibc detected *** ./shp2img: free(): invalid next size (fast):
0x09cff028 ***
======= Backtrace: =========
/lib/i686/nosegneg/libc.so.6[0x3883c8d]
/lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x3887340]
./shp2img[0x80ab91e]
./shp2img[0x805b05e]
./shp2img[0x805e925]
./shp2img(main+0xd1)[0x8050161]
/lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x3832f2c]
./shp2img[0x8050001]
======= Memory map: ========
00110000-0011c000 r-xp 00000000 08:01 6673923
/usr/local/lib/libgeos_c.so.1.1.1
0011c000-0011d000 rw-p 0000b000 08:01 6673923
/usr/local/lib/libgeos_c.so.1.1.1
0011d000-0012f000 r-xp 00000000 08:01 6662305    /usr/lib/libodbcinst.so.1.0.0
0012f000-00130000 rw-p 00011000 08:01 6662305    /usr/lib/libodbcinst.so.1.0.0
...
...
...

Here is the configure that i am using:

./configure --with-proj=/usr/local --enable-runpath
--with-geos=/usr/bin/geos-config --with-ogr
--with-gdal=/usr/bin/gdal-config --with-postgis=/usr/bin/pg_config
--with-curl-config=/usr/bin/curl-config
--with-php=/usr/local/php-5.2.4 --with-wcs --with-wfs --with-wmsclient
--with-wfsclient --with-threads

Make runs alright except for a couple warnings:

php_mapscript.c: In function ‘php3_ms_img_pasteImage’:
php_mapscript.c:6327: warning: implicit declaration of function
‘php_gd_gdImageColorExact’
php_mapscript.c:6331: warning: implicit declaration of function
‘php_gd_gdImageColorTransparent’
php_mapscript.c:6334: warning: implicit declaration of function
‘php_gd_gdImageCopy’

Any ideas on what i can do to get shp2img to work correctly?



More information about the MapServer-users mailing list