Opened 17 years ago
Closed 16 years ago
#2320 closed defect (invalid)
Antialias on lines causes segfault
Reported by: | woodbri | Owned by: | tbonfort |
---|---|---|---|
Priority: | high | Milestone: | 5.0.1 release |
Component: | MapServer C Library | Version: | 5.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
The following layer definition worked fine on 4.10 and segv on 5.0 released:
LAYER NAME "Rivers" STATUS DEFAULT DATA "rivers" TYPE LINE TILEINDEX "tgrindex" MAXSCALE 150100.0 LABELITEM "NAME" LABELMAXSCALE 50100.0 #TRANSPARENCY ALPHA CLASS NAME "Rivers and Streams" STYLE COLOR 153 179 204 WIDTH 1 ANTIALIAS TRUE # comment this out to fix END LABEL ANGLE FOLLOW FONT "arial" TYPE TRUETYPE POSITION AUTO SIZE 7 BUFFER 4 COLOR 0 0 255 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 250 MINFEATURESIZE 10 END END END
Here is the gdb backtrace:
(gdb) bt #0 0x00b2a58c in gdImageLine () from /usr/lib/libgd.so.2 #1 0x0808bc07 in imagePolyline (img=0x87dab30, p=0xbff60450, color=-7, offsetx=0, offsety=0) at mapgd.c:859 #2 0x080924f6 in msDrawLineSymbolGD (symbolset=0x8709ebc, img=0x87dab30, p=0xbff60450, style=0x871de68, scalefactor=1) at mapgd.c:1820 #3 0x08086c98 in msDrawLineSymbol (symbolset=0x8709ebc, image=0x87dab08, p=0xbff60450, style=0x871de68, scalefactor=1) at mapdraw.c:1782 #4 0x08088379 in msDrawShape (map=0x8709e98, layer=0x871d440, shape=0xbff60450, image=0x87dab08, style=-1) at mapdraw.c:1527 #5 0x08088e41 in msDrawVectorLayer (map=0x8709e98, layer=0x871d440, image=0x87dab08) at mapdraw.c:886 #6 0x08089185 in msDrawLayer (map=0x8709e98, layer=0x871d440, image=0x87dab08) at mapdraw.c:718 #7 0x0808a1e1 in msDrawMap (map=0x8709e98, querymap=0) at mapdraw.c:432 #8 0x08053e45 in main (argc=2, argv=0xbff60ab4) at mapserv.c:1282
MAP object looks like this:
MAP NAME "Tiger2005se Data googlesque" EXTENT -160 15 -60 75 #SIZE 400 250 SIZE 1280 1280 SHAPEPATH "/var/data/imaptools/tiger-maps/" FONTSET "/var/data/imaptools/tiger-maps/fontset.txt" SYMBOLSET "/var/data/imaptools/tiger-maps/symbols/symbol.sym" IMAGECOLOR 153 179 204 UNITS DD #IMAGETYPE "PNG8" IMAGETYPE "agg/png24" DEBUG ON OUTPUTFORMAT NAME "agg/png24" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" EXTENSION "png" #FORMATOPTION "PALETTE_FORCE=TRUE" #FORMATOPTION "PALETTE=/u/data/maps/palette-google-agg.txt" END ...
configure looks like this:
./configure \ --enable-ignore-missing-data \ --enable-debug \ --with-httpd=/usr/sbin/httpd \ --with-proj=/usr \ --with-agg=../agg-2.4 \ --with-gd=/usr/local/gd-2.0.35 \ --with-gdal \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient \ --with-ogr \ --with-wfs \
Change History (2)
comment:1 by , 17 years ago
Component: | AGG → MapServer C Library |
---|---|
Status: | new → assigned |
comment:2 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Closing this. This was caused by having multiple copies of GD installed and mixing .h and libs.
Note:
See TracTickets
for help on using tickets.
steve, can you send me the data for this so I can check it out.