Opened 5 years ago

Closed 5 years ago

#11066 closed Patch - Bug Fix (fixed)

deadlock in MythSystem

Reported by: Jack Thomasson <jkt@…> Owned by: wagnerrp
Priority: major Milestone: 0.26
Component: MythTV - MythSystem Version: 0.25-fixes
Severity: medium Keywords:
Cc: Ticket locked: no


there is a deadlock in MythSystem? between fdLock and m_pLock which the attached patch addresses.

Attachments (1)

0001-avoid-deadlock-in-MythSystem.patch (3.0 KB) - added by Jack Thomasson <jkt@…> 5 years ago.
git patch

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by Jack Thomasson <jkt@…>

git patch

comment:1 Changed 5 years ago by wagnerrp

  • Milestone changed from unknown to 0.26
  • Owner changed from beirdo to wagnerrp
  • Priority changed from minor to major
  • Severity changed from high to medium
  • Status changed from new to accepted

comment:2 Changed 5 years ago by Jack Thomasson <jkt@…>

  • Resolution set to fixed
  • Status changed from accepted to closed

In b5fbc746115308475100c53c17420234da9a2a10/mythtv:

Remove potential deadlock on MythSystem? IO threads.

This performs finer grained locking against the file descriptor type map
in the IO handling mechanisms for MythSystem?. If the read thread wakes
up and has data to process at the exact moment the external thread is
handing off a newly started child to the manager for handling, the two
may hit fdLock and MythSystemIOHandler::m_pLock from opposite
directions, deadlocking both threads.

Fixes #11066

Signed-off-by: Raymond Wagner <rwagner@…>

Add Comment

Modify Ticket

as closed The owner will remain wagnerrp.
The resolution will be deleted. Next status will be 'new'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.