[Mapserver-dev] Error catching missing for pixmap symbol
Daniel Morissette
morissette at dmsolutions.ca
Wed Sep 24 08:51:52 EDT 2003
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