[Mapserver-users] GD 2.0.26 makes Mapserver 4.2.0 crash on symbol rendering

Havard Tveite havard.tveite at imt.nlh.no
Fri Jun 11 00:18:35 PDT 2004


I also include the complete contents of a mapfile containing a
filled vector symbol that will crash Mapserver 4.2.0 with
GD 2.0.26 when rendered on the right edge of the map:

MAP
   SIZE 100 100
   EXTENT 0 0 100 100
   WEB
     IMAGEPATH "/WWW/tmp/"
     IMAGEURL "/tmp/"
     TEMPLATE test.html
   END #web

   SYMBOL
     NAME "lrtriangle"
     TYPE vector
     FILLED true   # false is OK
     POINTS
       0 1
       1 1
       1 0
       0 1
     END
   END #symbol

   LAYER # test
     NAME test
     STATUS DEFAULT
     TYPE POINT
     FEATURE
       POINTS
         98 50  # X-values <= 96 are OK. For X=97, y-values >= 93 makes it work. For X=98, y-values >= 94 makes it work. For X=99, Y-values >= 95 makes it work. For X=100, y-values >= 96 makes it work. When the triangle extends over the image border, a vertical line shows up above the triangle (to the full height of the triangle - 15 points)
       END #POINTS
     END #Feature
     CLASS
       STYLE
         COLOR 255 0 0
         SYMBOL "lrtriangle"
         SIZE 14
       END # style
     END # CLASS
   END # LAYER test
END # Map file

Havard Tveite wrote:
> I have tested the newest GD release (GD 2.0.26) with Mapserver
> 4.2.0, and have experienced occational Mapserver crashes due
> to symbol problems.
> I have managed to track down the following:
> When my "lltriangle" symbol (shown below) is placed such that
> it intersects the right edge of the rendered map (a part of the
> triangle is inside and a part is outside), Mapserver always
> crashes ("Internal Server Error" - in the Apache error log:
> "Premature end of script headers: mapserv_4.2").
> 
> Switching to the GD 2.0.25 library there is no crash.
> 
> Here is the problematic symbol:
> 
> SYMBOL
>   NAME "lltriangle"
>   TYPE vector
>   FILLED true
>   POINTS
>     0 1
>     1 1
>     1 0
>     0 1
>   END
> END
> 
> With a box symbol like the one below, map edge intersection is not a
> problem.
> 
> SYMBOL
>   NAME "box"
>   TYPE vector
>   FILLED true
>   POINTS
>     0 0
>     1 0
>     1 1
>     0 1
>     0 0
>   END
> END
> 
> mapserv_4.2 -v:
> MapServer version 4.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF 
> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=SDE 
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> Platform Solaris 2.7
> 

-- 
Håvard Tveite
Department of Mathematical Sciences and Technology
Agricultural University of Norway
Drøbakveien 14, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64948857 Fax: +47 64948810 http://www.nlh.no/imt



More information about the MapServer-users mailing list