Opened 6 years ago

Closed 6 years ago

#11066 closed Patch - Bug Fix (fixed)

deadlock in MythSystem

Reported by: Jack Thomasson <jkt@…> Owned by: Raymond Wagner
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@…> 6 years ago.
git patch

Download all attachments as: .zip

Change History (3)

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

git patch

comment:1 Changed 6 years ago by Raymond Wagner

Milestone: unknown0.26
Owner: changed from beirdo to Raymond Wagner
Priority: minormajor
Severity: highmedium
Status: newaccepted

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

Resolution: fixed
Status: acceptedclosed

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

Note: See TracTickets for help on using tickets.