[mapserver-dev] Problem with beta2 and SDE access on WMS
benchmarking server
Frank Warmerdam
warmerdam at pobox.com
Mon Oct 5 20:36:32 EDT 2009
Jeff McKenna wrote:
> We're hitting an issue with MapServer 5.6.0beta2 in the FOSS4G
> benchmarking exercise[1]:
Jeff,
I have reviewed this on the benchmarking system and it appears to be
related to an "items" list being freed in msLayerWhichItems(), but
used later in mapsde.c, as shown in this example from valgrind.
==15842== Invalid read of size 1
==15842== at 0x4158DE9: SES_alloc_copy_wstring_array (in /usr/local/lib/libsd
e.so)
==15842== by 0x416832F: SE_queryinfo_set_columns (in /usr/local/lib/libsde.so
)
==15842== by 0x8157433: getSDEQueryInfo (mapsde.c:964)
==15842== by 0x8158684: msSDELayerWhichShapes (mapsde.c:1561)
==15842== by 0x808563F: msLayerWhichShapes (maplayer.c:121)
==15842== by 0x8093356: msDrawVectorLayer (mapdraw.c:949)
==15842== by 0x8092CE6: msDrawLayer (mapdraw.c:811)
==15842== by 0x8091CE2: msDrawMap (mapdraw.c:457)
==15842== by 0x8053AB3: main (shp2img.c:296)
==15842== Address 0x72CCCA8 is 0 bytes inside a block of size 8 free'd
==15842== at 0x4004FDA: free (vg_replace_malloc.c:233)
==15842== by 0x8056B75: msFree (mapfile.c:117)
==15842== by 0x8056BB7: msFreeCharArray (mapfile.c:130)
==15842== by 0x8086699: msLayerWhichItems (maplayer.c:489)
==15842== by 0x80931E2: msDrawVectorLayer (mapdraw.c:928)
==15842== by 0x8092CE6: msDrawLayer (mapdraw.c:811)
==15842== by 0x8091CE2: msDrawMap (mapdraw.c:457)
==15842== by 0x8053AB3: main (shp2img.c:296)
The problem seems to be related to Steve's one pass query work, so I'm
happy to leave the fix to him. Jeff has filed a ticket and I've annotated it.
http://trac.osgeo.org/mapserver/ticket/3152
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the mapserver-dev
mailing list