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

Possible race condition in thread get_id() #554

Closed
brycelelbach opened this issue Sep 29, 2012 · 1 comment
Closed

Possible race condition in thread get_id() #554

brycelelbach opened this issue Sep 29, 2012 · 1 comment

Comments

@brycelelbach
Copy link
Member

To reproduce, run the thread unit test.

################################################################################
Command: ./bin/thread_test -t4 -l1 -0
Result: Failed
Exit code: 1
Timed out: False
################################################################################
/opt/buildbot/slave/gcc_cxx03_release_commit_check/build/tests/unit/threads/thread.cpp(288): test 't1.get_id() == id2' failed in function 'void test_swap()'
/opt/buildbot/slave/gcc_cxx03_release_commit_check/build/tests/unit/threads/thread.cpp(293): test 't2.get_id() == id2' failed in function 'void test_swap()'
0 sanity checks and 2 tests failed.
################################################################################
@sithhell
Copy link
Member

I think this is due to the thread of execution finished before get_id is called.

@ghost ghost assigned hkaiser Sep 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants