[Mapserver-dev] Error catching missing for pixmap symbol

Claude Philipona claude-mapserver at skirando.ch
Sat Sep 27 10:57:53 EDT 2003


I was finally able to reproduce the segfault. As it is a very weird
behaviour, I will send you directly the test files. I don't want to
polluate the list or bugzilla with too many attachements.

Claude

On Wed, Sep 24, 2003 at 08:51:52AM -0400, Daniel Morissette wrote:
> Claude,
> 
> I tried this with both PHP MapScript and the mapserv CGI (v4.1 and 3.6) 
> and in all cases I get a parsing error because the image file doesn't 
> exist (I never get a crash):
> 
>   Warning: [MapServer Error]: loadSymbol(): Parsing error near
>   (icon_metro.png):(line 22) in /path/to/test_draw_map.phtml on line 35
> 
> If you have a systematic way to reproduce this then perhaps you could 
> package a small test case (mapfile + script) and file that in bugzilla.
> 
> Daniel
> 
> 
> 
> Claude Philipona wrote:
> >Hello,
> >I think there is an error which is not properly treated when a pictogram
> >image used in a PIXMAP symbol definition. Mapserver crashes without any
> >error notification (segmentation fault)
> >
> >For example, if icon_metro.png is not present, mapserver segfault if there
> >is such a symbol definition in symbol.sym
> >
> >Symbol
> >Name 'metro'
> >Type PIXMAP
> >Image icon_metro.png
> >END
> >
> >This is totally reproductible, at least on Mapserver/PHPMapscript version
> >3.6 and 4.0 (Linux). I think it would good to handle this kind of error
> >properly, as it can take some time to figure out what is wrong.
> >
> >
> >Claude
> 



More information about the mapserver-dev mailing list