Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Races when 2 threads try to establish first enbedded connections to engine simultaneously [CORE4997] #5285

Closed
firebird-issue-importer opened this issue Nov 9, 2015 · 4 comments

Comments

@firebird-issue-importer
Copy link

firebird-issue-importer commented Nov 9, 2015

Submitted by: @hvlad

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.

Commits: d969134 FirebirdSQL/fbt-repository@c2e333e

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Nov 9, 2015

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Nov 9, 2015

Modified by: @AlexPeshkoff

reporter: Alexander Peshkov [ alexpeshkoff ] => Vlad Khorsun [ hvlad ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Nov 9, 2015

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0.0 [ 10048 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 25, 2016

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Cannot be tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment