<div dir="ltr">We managed to push a fix in time for 6.4.0, which we will improve in later release.<div>If you want, you could test the recently released betas:</div><div><br></div><div><a href="http://mapserver.org/download.html#development-releases">http://mapserver.org/download.html#development-releases</a><br>
</div><div><br></div><div>BR,</div><div>Umberto</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 9:13 PM,  <span dir="ltr"><<a href="mailto:Michel.Dastous@bentley.com" target="_blank">Michel.Dastous@bentley.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What's the status about this?  I guess a fix for 6.4.0 release is too late?<br>
<br>
Thanks<br>
<div class="im HOEnZb"><br>
-----Original Message-----<br>
From: thomas bonfort [mailto:<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>]<br>
Sent: Tuesday, August 13, 2013 12:21 PM<br>
To: Michel Dastous<br>
Cc: Umberto Nicoletti; MapServer Dev Mailing List<br>
Subject: Re: [mapserver-dev] Mapserver thread safety<br>
<br>
</div><div class="HOEnZb"><div class="h5">Nice catch!<br>
Returning a reference to epsgCode in that function is, to my knowledge, to the best undefined behavior, clearly not thread safe, and should be fixed.<br>
<br>
--<br>
thomas<br>
<br>
On 13 August 2013 16:31,  <<a href="mailto:Michel.Dastous@bentley.com">Michel.Dastous@bentley.com</a>> wrote:<br>
> About WFS/WMS thread safety, looking at mapows.c I found a single<br>
> static variable (epsgCode) used in msOWSGetEPSGProj().<br>
><br>
><br>
><br>
> Instead of returning a static pointer, the method could easily take a<br>
> buffer<br>
> + buffer size as parameters… Not a big deal except that 62 calls to<br>
> + that<br>
> function will have to be modified.<br>
><br>
><br>
><br>
> Is this the only thing that make WFS/WFS server non thread safe?<br>
><br>
><br>
><br>
> Thanks !<br>
><br>
><br>
><br>
><br>
><br>
> From: Michel Dastous<br>
> Sent: Tuesday, August 13, 2013 9:45 AM<br>
> To: 'Umberto Nicoletti'<br>
><br>
><br>
> Cc: MapServer Dev Mailing List<br>
> Subject: RE: [mapserver-dev] Mapserver thread safety<br>
><br>
><br>
><br>
> Thank you very much! I will test it as soon as possible.<br>
><br>
><br>
><br>
> From the page you sent me I realized that WMS/WFS server is not thread safe<br>
> (“WMS/WFS server: static data used for state of dispatcher”).   Is there any<br>
> plan to fix this ? I could not find any ticket about this<br>
><br>
><br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> From: Umberto Nicoletti [mailto:<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>]<br>
> Sent: Tuesday, August 13, 2013 8:49 AM<br>
> To: Michel Dastous<br>
> Cc: MapServer Dev Mailing List<br>
> Subject: Re: [mapserver-dev] Mapserver thread safety<br>
><br>
><br>
><br>
> FYI, I've opened this pull request which should fix the Oracle spatial<br>
> issue you are seeing:<br>
><br>
> <a href="https://github.com/mapserver/mapserver/pull/4729" target="_blank">https://github.com/mapserver/mapserver/pull/4729</a><br>
><br>
> Let me know if it works for you.<br>
><br>
><br>
><br>
> BR,<br>
><br>
> Umberto<br>
><br>
> On Tue, Aug 13, 2013 at 8:23 AM, Umberto Nicoletti<br>
> <<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>> wrote:<br>
><br>
> Michel,<br>
><br>
> this page attempts to keep track of which Mapserver components are<br>
> thread<br>
> safe:<br>
><br>
><br>
><br>
> <a href="http://mapserver.org/faq.html#is-mapserver-thread-safe" target="_blank">http://mapserver.org/faq.html#is-mapserver-thread-safe</a><br>
><br>
><br>
><br>
> it must not be completely up to date as, as you found out, Oracle is<br>
> listed as safe, while it's not.<br>
><br>
> As for fixing it, it should be relatively easy as those two variables<br>
> can be made local to the functions using them.<br>
><br>
><br>
><br>
> Please open an issue and I will look into it asap.<br>
><br>
><br>
><br>
> Umberto<br>
><br>
><br>
><br>
><br>
><br>
> On Mon, Aug 12, 2013 at 9:44 PM, <<a href="mailto:Michel.Dastous@bentley.com">Michel.Dastous@bentley.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
><br>
><br>
> I’ve been testing mapserver and its c# mapscript API for a while now,<br>
> and I have noticed that making simultaneous Draw request on multiple<br>
> maps containing Oracle layer will end up in memory corruption.  No<br>
> surprise here since maporaclespatial.c uses static variables<br>
> (ordinates_tdo and ordinates).<br>
><br>
><br>
><br>
> My question is: Does anyone have already evaluated how much work it<br>
> would require to make it thread safe (i.e remove those static<br>
> variables from the<br>
> code) ?<br>
><br>
><br>
><br>
> Furthermore, I have also tested the MSSQL plugin which is stable under<br>
> same conditions, unfortunately it doesn’t seem to scale very well my 4<br>
> core machines with maximum CPU usage of 15%.<br>
><br>
><br>
><br>
> I don’t think the problem come from mapserver’ s rendering engine…<br>
> when drawing a map with inlined data, I could easily reach a 90% usage.<br>
><br>
><br>
><br>
> So any suggestions/information would be welcome.<br>
><br>
><br>
><br>
> Thanks.<br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> mapserver-dev mailing list<br>
> <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> mapserver-dev mailing list<br>
> <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
><br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</div></div></blockquote></div><br></div>