Modify

Ticket #11066 (closed Patch - Bug Fix: fixed)

Opened 9 months ago

Last modified 9 months ago

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

Description

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

Attachments

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

Change History

Changed 9 months ago by Jack Thomasson <jkt@…>

git patch

comment:1 Changed 9 months ago by wagnerrp

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

comment:2 Changed 9 months ago by Jack Thomasson <jkt@…>

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

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@…>

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


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

 
Note: See TracTickets for help on using tickets.