[mythtv-commits] Ticket #7819: Mythfrontend crashes with segfault
MythTV
mythtv at cvs.mythtv.org
Thu Dec 31 02:09:24 UTC 2009
#7819: Mythfrontend crashes with segfault
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------+---------------------------------------------
Comment(by Mike Nix <mnix@…>):
The bug shows up when mythsocketthread finds a socket in m_readyread_list
that is ready to read when MythContext::d->eventSock is NULL.
readyRead assumes d->eventSock is the socket to read.
I can see three possible solutions:
1: if (!d->eventSock) return; // ie ignore the socket - probably bad
2: have readyRead use the socket passed to it.
3: make some code behave differently for sock != d->eventSock
I don't know if m_readyread_list is intended to hold non-event sockets so
I can't answer the question.
The attached patch uses the socket passed to readyRead, and adds code to
log what is happening for further diagnostics.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7819#comment:7>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list