Opened 8 years ago

Closed 8 years ago

#11783 closed Bug Report - General (fixed)

Deadlock in backend when exiting

Reported by: JYA Owned by: danielk
Priority: critical Milestone: 0.27
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


If there's any MythSocket? connection active with the backend. Upon calling MainServer::Stop() will result in a deadlock as MainServer::Stop() lock sockListLock mutex and then loop through the list of item to disconnect.

MythSocket? will then call the callback MainServer::connectionClosed which lock the mutex; resulting in a deadlock.

Change History (1)

comment:1 Changed 8 years ago by Jean-Yves Avenard <jyavenard@…>

Resolution: fixed
Status: newclosed

In 8647dc34e9b235658302f3ee0e8d2ed67d56ee46/mythtv:

Prevent deadlock in mythbackend when exiting

This is just a dirty workaround; there should be a better way to do things

Fixes #11783

Note: See TracTickets for help on using tickets.