[mythtv-commits] Ticket #7446: Setting DBPort to MythTV port cause frontend to hang with no gui display rather than error

MythTV mythtv at cvs.mythtv.org
Thu Jan 21 05:36:15 UTC 2010


#7446: Setting DBPort to MythTV port cause frontend to hang with no gui display
rather than error
-------------------------------------+--------------------------------------
 Reporter:  bits@…                   |       Owner:  ijr    
     Type:  defect                   |      Status:  new    
 Priority:  minor                    |   Milestone:  unknown
Component:  MythTV - General         |     Version:  0.22rc1
 Severity:  low                      |     Mlocked:  0      
-------------------------------------+--------------------------------------

Comment(by nigel):

 Any mythtv program will hang, not just the frontend. e.g. mythbackend in
 gdb:
 {{{
 2010-01-21 16:27:54.444 MCP::DefaultUPnP() - No default UPnP backend
 2010-01-21 16:27:54.444 MythSocket(4b190e0:8): new socket
 2010-01-21 16:27:54.447 MythSocket(4b190e0:8): attempting connect() to
 (149.135.128.77:6543)
 2010-01-21 16:27:54.448 MythSocket(4b190e0:8): state change Idle ->
 Connected
 2010-01-21 16:27:54.448 MythSocket(4b190e0:8): state change Connected ->
 Idle
 2010-01-21 16:27:54.448 MSocketDevice::close: Closed socket 8
 2010-01-21 16:27:54.448 Clearing Settings Cache.
 2010-01-21 16:27:54.449 New DB connection, total: 1
 ^C
 Program received signal SIGINT, Interrupt.
 0x944f5bf9 in read$UNIX2003 ()
 (gdb) where
 #0  0x944f5bf9 in read$UNIX2003 ()
 #1  0x01d5cbaf in vio_read ()
 #2  0x01d5cc75 in vio_read_buff ()
 #3  0x01d5dee4 in my_real_read ()
 #4  0x01d5e16b in my_net_read ()
 #5  0x01d5526e in cli_safe_read ()
 #6  0x01d57df9 in mysql_real_connect ()
 #7  0x01cf3348 in QMYSQLDriver::open ()
 #8  0x01cde811 in QSqlDatabase::open ()
 #9  0x01a6da61 in MSqlDatabase::OpenDatabase ()
 }}}
 This is a hard problem to detect. Unless we add a timer to check for
 timeouts on all connections, (or maybe the initial database connection), a
 program would never know the port isn't a valid MySQL listener.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7446#comment:4>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list