Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 20 months ago

Closed 20 months 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

Description

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@…> 20 months ago.
git patch

Download all attachments as: .zip

Change History (3)

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

git patch

comment:1 Changed 20 months 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 20 months 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

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.