[mapserver-users] KML output problems/crashes/bad reprojection

yeryry yeryry at gmail.com
Wed Oct 8 10:00:51 PDT 2014


I think I've discovered two causes of crashes...

First, one with the KML driver...

msDrawQueryLayer creates and draws a temporary layer here:
https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapdraw.c#L1205
The KML renderer sets a reference to the temporary layer here:
https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapkmlrenderer.cpp#L371
msDrawQueryLayer later calls msDrawShape here:
https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapdraw.c#L1295
which eventually results in a call to KmlRenderer::renderGlyphs
https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapkmlrenderer.cpp#L693
which gets to KmlRenderer::createPlacemarkNode and reuses that reference
that was set:
https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapkmlrenderer.cpp#L585
even though that temporary layer was freed earlier, leading to the crash.

And one with WMS:

It crashes around here:
https://github.com/mapserver/mapserver/blob/3e8aa5a4d92c9bad105306ebe5117ed29d2b0e7c/mapdraw.c#L106
Probably due to trying to setting NULL->map... That error message should
probably be moved before that line.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141008/d153f7ec/attachment.htm>


More information about the MapServer-users mailing list