[MAPSERVER-USERS] Mapserv problems on Fedora
Stephen Woodbridge
woodbri at swoodbridge.com
Mon Apr 28 14:11:23 PDT 2008
Philippe,
My regex crash was because of a bug in mapserver
http://trac.osgeo.org/mapserver/ticket/2577#comment:8
which has been fixed now in svn. It was specifically related to a crash
cause when AGG FORMATOPTION PALETTE=<file> could not open <file>.
Hope this helps,
-Steve W
Philippe Kruschitz wrote:
>
>> You --must-- compile and install the last version of
>> gd, the gd version on RHEL 5 and 5.1 is broken, also
>> on centos and fedora core 8.
>>
>> Be sure to replace the old gd version on /usr/lib,
>> also check the simlinks on /usr/lib, then run ldconfig
>> as root.
>>
>> If you use mapserver with phpmapscript install php-gd
>> with yum.
>>
>> Hope this helps.
>>
>> Saludos.
>>
>> --
>> Nahum Castro
>> Leon, Guanajuato, Mexico
>> http://www.leon-linux.com
>> e-mail: pedro1_72 [en] yahoo [punto] com
>
>
> I did pretty much everything you said before compiling mapserver (i didn't
> have mapscript, though).
>
> I tried to to change the malloc value, as frank warmerdam suggested, with
> exactly the same result as stephen woodbridge: the crash is fixed, but the
> regular expression systematically fails.....
>
> Anyone has an idea? Did Stephen fixed it?
>
> Regards,
>
> Phil
>
>
>
> Quote S. Woodbridge:
>
> Hi Frank,
>
> Adding more to to the malloc fixed the crash, but the regex is failing
> :( and should be ok:
>
> Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$",
> s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79
>
> ...
>
> 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */
> (gdb) p ms_regexec(&re, s, 0, 0, 0)
> $1 = 1
> (gdb) c
> Continuing.
> Content-type: text/html
>
> <HTML>
> <HEAD><TITLE>MapServer Message</TITLE></HEAD>
> <!-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
> <BODY BGCOLOR="#FFFFFF">
> msEvalRegex(): Regular expression error. String
> (/u/data/maps/google-agg.map) failed expression test.
> </BODY></HTML>
> Program exited normally.
>
>
> This should NOT be happening. Arrrgh!
> Anyone else using fc8 on a x86_84 box?
>
> -Steve
>
More information about the MapServer-users
mailing list