Ticket #3823 (closed defect: invalid)
imagetype gif causes segmentation fault in trunk
| Reported by: | havatv | Owned by: | tbonfort |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.0 release |
| Component: | MapServer C Library | Version: | 6.0 |
| Severity: | normal | Keywords: | gif, gd, segmentation fault |
| Cc: | havatv |
Description
I get a segmentation fault with imagetype GIF (GD). I have tested trunk (r11512) and 6 beta 1 with the same result. PNG (AGG) is OK.
gdb output:
$ gdb mapserver/svn/mapserver/shp2img
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run -m test.map -o test.gif
Starting program: mapserver/svn/mapserver/shp2img -m test.map -o test.gif
[Thread debugging using libthread_db enabled]
[New Thread 0x7f9001bc5710 (LWP 23488)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9001bc5710 (LWP 23488)]
0x00007f8ffc4660b0 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x00007f8ffc4660b0 in strlen () from /lib/libc.so.6
#1 0x00007f8ffc465de6 in strdup () from /lib/libc.so.6
#2 0x00007f9001bf7752 in fontFetch (error=0x1586c10, key=0x7fffdcdc7810) at gdft.c:456
#3 0x00007f9001bf5c56 in gdCacheGet (head=0x1586c00, keydata=0x7fffdcdc7810) at gdcache.c:128
#4 0x00007f9001bf613d in gdImageStringFTEx (im=0x0, brect=0x7fffdcdc7930, fg=2, fontlist=0x0, ptsize=1, angle=0, x=0, y=0, string=0x0, strex=0x0)
at gdft.c:911
#5 0x00007f9001bf76cb in gdImageStringFT (im=0x0, brect=0x28, fg=28612128, fontlist=0x0, ptsize=1, angle=1.05, x=-16843009, y=3, string=0x0)
at gdft.c:813
#6 0x000000000053c376 in renderTruetypeSymbolGD (img=0x15ddb20, x=164.66745161290328, y=591.72393548387106, symbol=0x15918f0, s=0x7fffdcdc7b20)
at mapgd.c:620
#7 0x00000000004ce138 in msImagePolylineMarkers (image=0x15ddb20, p=0x7fffdcdc81a0, symbol=0x15918f0, style=0x7fffdcdc7b20, spacing=1.2727272727272727,
auto_angle=0) at maprendering.c:379
#8 0x00000000004ce883 in msDrawLineSymbol (symbolset=0x1586ca0, image=0x15ddb20, p=0x7fffdcdc81a0, style=0x15c19f0, scalefactor=0.024095278207187761)
at maprendering.c:480
#9 0x0000000000464127 in msDrawShape (map=0x1586c70, layer=0x15b56e0, shape=0x7fffdcdc81a0, image=0x15ddb20, style=-1, querymapMode=0) at mapdraw.c:1887
#10 0x000000000045eb90 in msDrawVectorLayer (map=0x1586c70, layer=0x15b56e0, image=0x15ddb20) at mapdraw.c:949
#11 0x000000000045de7f in msDrawLayer (map=0x1586c70, layer=0x15b56e0, image=0x15dd950) at mapdraw.c:730
#12 0x000000000045ce9a in msDrawMap (map=0x1586c70, querymap=0) at mapdraw.c:422
#13 0x0000000000414d02 in main (argc=5, argv=0x7fffdcdc8628) at shp2img.c:299
mapserver/svn/mapserver/mapserv -v
MapServer version 6.0.0-beta5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
64 bit Debian Lenny.
Change History
Note: See
TracTickets for help on using
tickets.
