Opened 16 years ago

Last modified 16 years ago

#6983 closed defect

deadlock on readReadyLock and socket lock — at Version 1

Reported by: Mark Spieth Owned by: Isaac Richards
Priority: major Milestone: 0.22
Component: MythTV - General Version: head
Severity: high Keywords:
Cc: Ticket locked: no

Description (last modified by Mark Spieth)

there are 2 problems with customevent

there is a deadlock between socket lock and readReadyLock and can happen on multi core machines. 4 cores or more with mythweb scheduling a program causes it to happen most times. doesnt seem to happen on a 2 core.

There may be a better way to fix this, but the attached solution works.

the 2nd is that customevent tries to send messages on sockets which are not connected (thus there are no listeners).

it gives

    write -> -1 565     BACKEND_MESSAGE[]:[]ASK_RECORDING 1 0 0 0[]:[]Ten
    News[]:[][]:[]A...
    writeStringList: Error, called with unconnected socket

type errors. pointless doing this

see also #6894 for this one.

Change History (2)

by Mark Spieth, 16 years ago

Attachment: 19-backend-rec-event.patch added

comment:1 by Mark Spieth, 16 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.