[mapserver-dev] Debugging MapServer and corrupt variables

Seth G geographika at gmail.com
Tue Mar 22 15:03:31 PDT 2016


Hi devs,

I've been trying to configure debugging a x64 version of MapServer on 
Windows in Visual Studio, but variables are shown as corrupt or missing.
Full details are posted at 
http://stackoverflow.com/questions/36120712/cannot-see-variables-when-debugging-a-x64-bit-dll-in-visual-studio
I initially thought this was a config issue on my side, but there is a 
suggestion it could be memory corruption within MapServer.
When compiling I get 100s of warnings similar to the following:

..\mapcrypto.c(391) : warning C4244: '=' : conversion from 'ms_uint32' 
to 'char', possible loss of data
maptime.c
..\maptime.c(176) : warning C4244: '=' : conversion from '__time64_t' to 
'long', possible loss of data
mapproject.c
..\mapproject.c(1336) : warning C4267: '+=' : conversion from 'size_t' 
to 'int', possible loss of data

I presume these will simply truncate data rather than be a possible 
cause for the debugging issues I encounter?

A couple of other warnings that may be more relevant:

/Users/tbonfort/dev/mapserver/mapparser.c(370) : warning C4273: 'malloc' 
: inconsistent dll linkage
         c:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdlib.h(601) : see previous definition of 'malloc'
/Users/tbonfort/dev/mapserver/mapparser.c(377) : warning C4273: 'free' : 
inconsistent dll linkage
         c:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\include\stdlib.h(600) : see previous definition of 'free'

Thanks for any insights you may be able to provide. I can create tickets 
for the warnings if that is useful?

Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20160322/7331416f/attachment.html>


More information about the mapserver-dev mailing list