﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
2959	Segmentation fault in mythbackend: GetIPAddressList()	anonymous	Nigel	"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.



"	defect	closed	major	0.21	mythtv	head	medium	fixed	upnp mythbackend		0
