<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6619.12">
<TITLE>RE: [mapserver-users] PHP: Segmentation fault when draw() orsaveWebImage()</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Pavel,<BR>
So... the trouble is actually with the rasters, not with the Mapserver version?&nbsp; As evidenced by the fact that now neither the previous nor the current version of mapserver work for you?&nbsp; Couple of questions:<BR>
<BR>
1. Can you render this map from the mapserver CGI?<BR>
2. Did you recompile PHP, mapserver, and the PHPMapscript with the same options?&nbsp; Perhaps there is a missing option pertaining to the raster graphic format?<BR>
<BR>
HTH,<BR>
r.b.<BR>
<BR>
-----Original Message-----<BR>
From:&nbsp;&nbsp; Pavel Dobeš [<A HREF="mailto:dobes@lnx.cz">mailto:dobes@lnx.cz</A>]<BR>
Sent:&nbsp;&nbsp; Tue 6/3/2008 2:27 AM<BR>
To:&nbsp;&nbsp;&nbsp;&nbsp; Burgholzer,Robert<BR>
Cc:&nbsp;&nbsp;&nbsp;&nbsp;<BR>
Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Re: [mapserver-users] PHP: Segmentation fault when draw() orsaveWebImage()<BR>
<BR>
<BR>
On 27.5.2008, at 14:50, Burgholzer,Robert wrote:<BR>
<BR>
&gt; Pavel,<BR>
&gt; Sounds like you might have some other problem in your mapfile.&nbsp;&nbsp;<BR>
&gt; Perhaps some syntax was allowable in the previous version of&nbsp;<BR>
&gt; mapserver that is no longer OK.&nbsp; Might want to check the changelog&nbsp;<BR>
&gt; of your new version, and go from there.&nbsp; Also, since the legend&nbsp;<BR>
&gt; works, you might want to sequentially comment out your layers to&nbsp;<BR>
&gt; determine if you have a specific layer with a problem.<BR>
&gt;<BR>
Hi Robert,<BR>
<BR>
Thanks for advice. But downgrade to the same version of PHP &amp;&nbsp;<BR>
Mapserver (ie 5.0.0) as before don't solve my problem. (the version of&nbsp;<BR>
apache was chenged because of security issues).<BR>
<BR>
So now is working one collection of 3 maps in one mapfile and not&nbsp;<BR>
working collection of 3 maps in one mapfile too... (but 90 % of load&nbsp;<BR>
is targetting not working maps).<BR>
<BR>
When I comment out all raster layers it's working. (reference map,&nbsp;<BR>
scale bar, grid and drawned points on the map).<BR>
<BR>
When I commnet out only some of raster layers, it works on 33% (once&nbsp;<BR>
yes, 2 times not). I increase amount of allowed memory in php.ini file&nbsp;<BR>
(to 1024M) but without any visible effect.<BR>
<BR>
Bye<BR>
Pavel<BR>
<BR>
&gt;<BR>
&gt; Robert W. Burgholzer<BR>
&gt; Surface Water Modeler<BR>
&gt; Office of Water Supply and Planning<BR>
&gt; Virginia Department of Environmental Quality<BR>
&gt; rwburgholzer@deq.virginia.gov<BR>
&gt; 804-698-4405<BR>
&gt; Open Source Modeling Tools:<BR>
&gt; <A HREF="http://sourceforge.net/projects/npsource/">http://sourceforge.net/projects/npsource/</A><BR>
&gt;<BR>
&gt; -----Original Message-----<BR>
&gt; From: mapserver-users-bounces@lists.osgeo.org [<A HREF="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</A><BR>
&gt; ] On Behalf Of Pavel Dobeš<BR>
&gt; Sent: Saturday, May 24, 2008 3:41 PM<BR>
&gt; To: mapserver-users@lists.osgeo.org<BR>
&gt; Subject: [mapserver-users] PHP: Segmentation fault when draw()&nbsp;<BR>
&gt; orsaveWebImage()<BR>
&gt;<BR>
&gt; Hi to all,<BR>
&gt;<BR>
&gt; I run mapserver on my gentoo server now with php-5.2.6_rc4.<BR>
&gt;<BR>
&gt; After upgrade the apache is falling down with message:<BR>
&gt;<BR>
&gt; [Sat May 24 21:13:02 2008] [notice] child pid 2476 exit signal<BR>
&gt; Segmentation fault (11)<BR>
&gt;<BR>
&gt; With mapserver 5.0.0-r1 the last line is<BR>
&gt;<BR>
&gt; $url = $image-&gt;saveWebImage();<BR>
&gt;<BR>
&gt; When I upgrade to 5.0.2 the last lins was<BR>
&gt; $image=$map-&gt;draw();<BR>
&gt;<BR>
&gt; $image is from $image=$map-&gt;prepareImage(); in both cases...<BR>
&gt;<BR>
&gt; Any hint, whitch mix of versions (PHP &amp; mapserver) is OK or how to<BR>
&gt; pretend this segfault?<BR>
&gt;<BR>
&gt; Tahnks<BR>
&gt; Pavel<BR>
&gt; PS: this simple script works<BR>
&gt; &lt;?php<BR>
&gt; header(&quot;Content-type: image/jpeg&quot;);<BR>
&gt;<BR>
&gt; $map = ms_newMapObj(&quot;file.map&quot;);<BR>
&gt; $img = $map-&gt;drawScaleBar();<BR>
&gt; $img-&gt;saveImage('');<BR>
&gt;<BR>
&gt; ?&gt;<BR>
&gt; _______________________________________________<BR>
&gt; mapserver-users mailing list<BR>
&gt; mapserver-users@lists.osgeo.org<BR>
&gt; <A HREF="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>
&gt; _______________________________________________<BR>
&gt; mapserver-users mailing list<BR>
&gt; mapserver-users@lists.osgeo.org<BR>
&gt; <A HREF="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>