Opened 17 years ago
Closed 17 years ago
#2202 closed defect (fixed)
Infinite loop in msStringConcatenate from msGetErrorString
Reported by: | hobu | Owned by: | dmorissette |
---|---|---|---|
Priority: | normal | Milestone: | 5.0 release |
Component: | WFS Client | Version: | 5.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
This code goes on forever if msAddSymbol fails
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/maperror.c?rev=6453#L303
Here's gdb capture:
Program received signal SIGINT, Interrupt. 0x010b9255 in msStringConcatenate (pszDest=0x650e000 "msAddImageSymbol(): Unable to access file. Error opening image file /Users/hobu/svn/spatialreferences/graticules/./1.\nmsAddImageSymbol(): Unable to access file. Error opening image file /Users/hobu/sv"..., pszSrc=0x1135150 "\n") at mapstring.c:789 789 nLen = strlen(pszDest) + strlen(pszSrc); (gdb) bt #0 0x010b9255 in msStringConcatenate (pszDest=0x650e000 "msAddImageSymbol(): Unable to access file. Error opening image file /Users/hobu/svn/spatialreferences/graticules/./1.\nmsAddImageSymbol(): Unable to access file. Error opening image file /Users/hobu/sv"..., pszSrc=0x1135150 "\n") at mapstring.c:789 #1 0x010b6689 in msGetErrorString (delimiter=0x1135150 "\n") at maperror.c:307 #2 0x01008eb9 in _raise_ms_exception () at mapscript_wrap.c:2808
Attachments (1)
Change History (6)
comment:1 by , 17 years ago
by , 17 years ago
Attachment: | graticule.zip added |
---|
comment:2 by , 17 years ago
MAP EXTENT -180 -90 180 90 FONTSET "/Users/hobu/svn/mapserver/tests/fonts.txt" IMAGECOLOR 255 255 255 IMAGETYPE image/png SIZE 400 400 STATUS ON UNITS METERS NAME "MS" DEBUG 1 OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER CLASSITEM "TYPE" DATA "data/graticule.shp" DEBUG 1 LABELITEM "VALUE" NAME "base_layer" PROJECTION "init=epsg:4326" END STATUS DEFAULT TYPE LINE UNITS METERS CLASS EXPRESSION ([TYPE] EQ 1) LABEL ANTIALIAS TRUE FONT "Vera" SIZE 6 TYPE TRUETYPE COLOR 255 0 0 FORCE FALSE MINDISTANCE 200 MINFEATURESIZE -1 PARTIALS TRUE POSITION AUTO END STYLE COLOR 0 0 255 WIDTH 3 SYMBOL "circle" END END END END
comment:3 by , 17 years ago
Milestone: | → 5.0 release |
---|---|
Owner: | changed from | to
Version: | → 5.0 |
Checking ...
What request do you use to reproduce this? Just running shp2img on the mapfile doesn't produce an error
comment:4 by , 17 years ago
Python MapScript.
import mapscript mo = mapscript.mapObj('render.map') # Mollweide Projection mo.setSize(600, 300) mo.setProjection('+proj=moll +lon_0=0.0') mo.setExtent(-18100000, -9050000, 18100000, 9050000) im = mo.draw() im.save('graticule-moll.png') mo.setSize(400, 400) mo.setProjection('+proj=ortho +lon_0=0.0 +lat_0=40.0') mo.setExtent(-6400000,-6400000,6400000,6400000) im = mo.draw() im.save('graticule-ortho.png')
comment:5 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This was caused by the heap corruption of #2205
Note:
See TracTickets
for help on using tickets.
The actual problem is the default here:
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/maputil.c?rev=6378#L133