[mythtv-commits] Ticket #1951: mythfrontend segfaults when sending 'key x' through the telnet interface, when in the Main Menu only.

MythTV mythtv at cvs.mythtv.org
Tue Jun 13 12:27:35 UTC 2006


#1951: mythfrontend segfaults when sending 'key x' through the telnet interface,
when in the Main Menu only.
------------------------------------+---------------------------------------
 Reporter:  navahogunleg at gmail.com  |       Owner:  ijr 
     Type:  patch                   |      Status:  new 
 Priority:  minor                   |   Milestone:      
Component:  mythtv                  |     Version:  head
 Severity:  medium                  |  
------------------------------------+---------------------------------------
 Today I first used the network control interface and I noticed that, when
 in the Main Menu, and you try to send a key press through the telnet
 interface (for instance 'key Down'), this causes a segmentation fault.

 Tracking it down to NetworkControl::processKey(), in networkcontrol.cpp,
 at line ~332, where gContext->GetMainWindow()->currentWidget() returns a
 NULL pointer, I found that, oddly enough, this only occurs when in the
 Main Menu.

 Supplied is a patch that checks all the pointers before accessing them,
 and will return a human-readable error if anything is wrong with them.
 Regardless of whether something is not getting set when in the Main Menu,
 this at least prevents it taking down the front-end.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/1951>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list