[mapserver-dev] RC1 build issues

Stephen Woodbridge woodbri at swoodbridge.com
Mon Jul 14 01:13:17 EDT 2008


I have opened the follow two tickets for build issues on 5.2.0-rc1

http://trac.osgeo.org/mapserver/ticket/2696
http://trac.osgeo.org/mapserver/ticket/2697


I decide up try and update my libgd to see if the fixed some of the 
leaks I was seeing in gd functions. I can't remove the version installed 
via the package manager because there are too many dependencies on it, 
so I installed it in /usr/local/ and thought maybe static would be a 
good option to avoid issues with library conflicts.

I still seem to be getting the memory leak here:

==15426== 2,808 bytes in 468 blocks are definitely lost in loss record 
71 of 89
==15426==    at 0x4A18DA3: malloc (vg_replace_malloc.c:149)
==15426==    by 0x4B35D78: gdMalloc (in /usr/lib/libgd.so.2.0.33)
==15426==    by 0x4B33830: (within /usr/lib/libgd.so.2.0.33)
==15426==    by 0x4B336DB: gdImageCreatePaletteFromTrueColor (in 
/usr/lib/libgd.so.2.0.33)
==15426==    by 0x43442D: msImageCreateWithPaletteGD (mapgd.c:3437)
==15426==    by 0x434762: msSaveImageGDCtx (mapgd.c:3572)
==15426==    by 0x43456F: msSaveImageGD (mapgd.c:3491)
==15426==    by 0x43CEE8: msSaveImageAGG (mapagg.cpp:2216)
==15426==    by 0x4171F3: msSaveImage (maputil.c:666)
==15426==    by 0x40A8E0: main (genimages.c:1157)

This number seems to grow the more images I process. This would probably 
explain why precache3.php grows in memory size until it dies or is killed.

-Steve W.


More information about the mapserver-dev mailing list