[mythtv-commits] Ticket #2959: Segmentation fault in mythbackend: GetIPAddressList()

MythTV mythtv at cvs.mythtv.org
Sat Jan 20 21:01:47 UTC 2007


#2959: Segmentation fault in mythbackend: GetIPAddressList()
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  ijr 
     Type:  defect     |      Status:  new 
 Priority:  major      |   Milestone:  0.21
Component:  mythtv     |     Version:  head
 Severity:  medium     |  
-----------------------+----------------------------------------------------
 When running the svn (revision 12584) version of mythbackend I get a
 segmentation fault on startup.

 GDB narrows it down to

 {{{
 ... in GetIPAddressList (sStrList=@0x836a60) at upnputil.cpp:70
 70              if (ifa->ifa_addr->sa_family != AF_INET)
 (gdb) print ifa->ifa_addr
 $2 = (sockaddr *) 0x0
 (gdb) print *ifa
 $3 = {ifa_next = 0x839190, ifa_name = 0x83917c "tun0",
   ifa_flags = 69841, ifa_addr = 0x0, ifa_netmask = 0x0,
   ifa_ifu = {ifu_broadaddr = 0x0, ifu_dstaddr = 0x0},
   ifa_data = 0x839e28}
 }}}

 The ifa_addr pointer is null for the OpenVPN tun0 network adapter on my
 mythtv server.

 Looks like the code needs a test for null ifa_addr.

 My workaround was to run mythbackend with --noupnp.

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


More information about the mythtv-commits mailing list