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

Fix a mac the socket api crash #8664

Merged
merged 1 commit into from
May 28, 2021
Merged

Fix a mac the socket api crash #8664

merged 1 commit into from
May 28, 2021

Conversation

TheOneRing
Copy link
Member

No description provided.

@jnweiger
Copy link
Contributor

@michaelstingl this calls for a 2.8.2 and delays ownbrander deployment. Do you agree?

@michaelstingl
Copy link
Contributor

@michaelstingl this calls for a 2.8.2 and delays ownbrander deployment. Do you agree?

yes, understood 👍

@TheOneRing
Copy link
Member Author

The crash reports we get are all on mac, so its probably related to the special rpc implementation on mac....

src/gui/socketapi/socketapi.cpp Outdated Show resolved Hide resolved
@TheOneRing TheOneRing force-pushed the work/fix_concurrency_issue branch 3 times, most recently from d848a4a to 2cc549b Compare May 28, 2021 11:17
@TheOneRing TheOneRing changed the title Fix a concurrency related crash in the socket api Fix a mac the socket api crash May 28, 2021
src/gui/socketapi/socketapi.cpp Show resolved Hide resolved
On mac SocketApiSocket::writeData can emit disconnected()
This caused a modification of the map containing the sockets during the iteration
and thus a crash.
@TheOneRing TheOneRing merged commit 38c74af into 2.8 May 28, 2021
@delete-merged-branch delete-merged-branch bot deleted the work/fix_concurrency_issue branch May 28, 2021 11:41
@sonarcloud
Copy link

sonarcloud bot commented May 28, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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

Successfully merging this pull request may close these issues.

None yet

4 participants