Races when 2 threads try to establish first enbedded connections to engine 
simultaneously
-----------------------------------------------------------------------------------------

                 Key: CORE-4997
                 URL: http://tracker.firebirdsql.org/browse/CORE-4997
             Project: Firebird Core
          Issue Type: Bug
          Components: API / Client Library
    Affects Versions: 3.0 Beta 2, 3.0 Beta 1, 3.0 RC 1
         Environment: Found and mostly destructive on windows, but probably may 
show itself in other environments
            Reporter: Alexander Peshkov


A number of interfaces (like Master, Util, Dtc) are implemented as pointers to 
static variables. Static variables are created the first time control flow in 
some thread enters a function where variable is defined, and when 2 threads do 
it simultaneously behavior is implementation-defined. I.e. it may cause races 
and really does it - at least with MSVC compiler.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to