Opened 14 years ago
Closed 14 years ago
Last modified 14 years ago
#11364 closed Bug Report - General (fixed)
Possible non-thread-safe call to MythCoreContext::ConnectToMasterServer
| Reported by: | Owned by: | stuartm | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.27 |
| Component: | MythTV - General | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
IdleScreen::CheckConnectionToServer in MythFrontend calls MythCoreContext::ConnectToMasterServer, which has the following comment:
Assumes that either m_sockLock is held, or the app is still single threaded (i.e. during startup).
As m_sockLock cannot be accessed outside of MythCoreContext and IdleScreen::CheckConnectionToServer is triggered by a timer (i.e. not only at startup), it would appear that this call is not thread-safe.
The second patch (Added-SafeConnectToMasterServer.diff) in ticket #11238 provides a thread-safe wrapper, which could be called instead.
Change History (4)
comment:1 by , 14 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 14 years ago
That method was lifted without changes from mythwelcome, but I should have paid closer attention when I did it.
comment:3 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:4 by , 14 years ago
| Milestone: | unknown → 0.27 |
|---|

Stuart M, I'm assigning this to you solely based on "git blame idlescreen.h"