[mapguide-trac] #1423: Linux std::string not thread safe
MapGuide Open Source
trac_mapguide at osgeo.org
Tue Aug 17 15:35:54 EDT 2010
#1423: Linux std::string not thread safe
---------------------------+------------------------------------------------
Reporter: trevorwekel | Owner: trevorwekel
Type: defect | Status: new
Priority: high | Milestone: 2.2
Component: Server | Version: 2.2.0
Severity: blocker | Keywords:
External_id: |
---------------------------+------------------------------------------------
Comment(by trevorwekel):
Added patch files for std::string safety and other potential thread safety
issues detected by Valgrind on Linux:
* Return a STRING type created from a c_str() call forces the std::string
template to allocate a new copy of the string.
* Replace CREFSTRING with STRING return values for consistency.
Additional c_str() calls may be required depending threading usage.
* Add refcount to MgUserInformation::!GetCurrentUserInfo() to guarantee
object lifetime in a multi-threaded environment.
* Null out various "Packet" variables to correct uninitialized references
detected by Valgrind
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1423#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list