8000 SocketInitiator::getHost call Dictionary.has may have thread problem · Issue #613 · quickfix/quickfix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SocketInitiator::getHost call Dictionary.has may have thread problem #613

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

Open
pyy07 opened this issue Oct 24, 2024 · 0 comments
Open

SocketInitiator::getHost call Dictionary.has may have thread problem #613

pyy07 opened this issue Oct 24, 2024 · 0 comments

Comments

@pyy07
Copy link
pyy07 commented Oct 24, 2024

In Release 1.15.1, there appears to be a potential thread safety issue with the Dictionary::has method. This method utilizes std::map's find function to retrieve session configurations, which is not thread-safe. It is being employed across various thread contexts, including the main application thread, the socketInitiator's start_thread, the HttpServer's start_thread, and the socketAcceptor's startThread. This could lead to a segmentation fault, as illustrated in the following example:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0