Summary: | ASTERISK-11723: [patch] tun0 and no default route cause crash | ||
Reporter: | Martin Vit (festr) | Labels: | |
Date Opened: | 2008-03-26 05:30:45 | Date Closed: | 2008-03-27 14:26:16 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) acl.c.patch | |
Description: | When there is eth0,eth1,tun0 devices and no default route, asterisk crashes. ****** ADDITIONAL INFORMATION ****** Core dump: in acl.c:188 #0 0x08059edb in ast_find_ourip (ourip=0xb7312fc4, bindaddr={sin_family = 0, sin_port = 50195, sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}) at acl.c:188 188 if (ifap->ifa_addr->sa_family == AF_INET) { List of interfaces 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:1c:c0:15:04:b3 brd ff:ff:ff:ff:ff:ff inet 172.24.92.116/24 brd 172.24.92.255 scope global eth0 4: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:60:6e:00:04:69 brd ff:ff:ff:ff:ff:ff inet 1.1.1.1/24 scope global eth1 6: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1500 qdisc pfifo_fast qlen 100 link/[65534] inet 10.245.0.1 peer 10.245.0.2/32 scope global tun0 | ||
Comments: | By: Martin Vit (festr) 2008-03-26 06:10:18 I've posted patch which works for me. It is trivial oneline fix, but maybe it is not fixing the whole problem. By: Digium Subversion (svnbot) 2008-03-27 14:18:38 Repository: asterisk Revision: 111442 U branches/1.4/main/acl.c ------------------------------------------------------------------------ r111442 | tilghman | 2008-03-27 14:18:37 -0500 (Thu, 27 Mar 2008) | 6 lines For FreeBSD, at least, the ifa_addr element could be NULL. (closes issue ASTERISK-11723) Reported by: festr Patches: acl.c.patch uploaded by festr (license 443) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=111442 By: Digium Subversion (svnbot) 2008-03-27 14:22:18 Repository: asterisk Revision: 111443 _U trunk/ U trunk/main/acl.c ------------------------------------------------------------------------ r111443 | tilghman | 2008-03-27 14:22:17 -0500 (Thu, 27 Mar 2008) | 14 lines Merged revisions 111442 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r111442 | tilghman | 2008-03-27 14:23:12 -0500 (Thu, 27 Mar 2008) | 6 lines For FreeBSD, at least, the ifa_addr element could be NULL. (closes issue ASTERISK-11723) Reported by: festr Patches: acl.c.patch uploaded by festr (license 443) ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=111443 By: Digium Subversion (svnbot) 2008-03-27 14:26:16 Repository: asterisk Revision: 111444 _U branches/1.6.0/ U branches/1.6.0/main/acl.c ------------------------------------------------------------------------ r111444 | tilghman | 2008-03-27 14:26:15 -0500 (Thu, 27 Mar 2008) | 22 lines Merged revisions 111443 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r111443 | tilghman | 2008-03-27 14:26:45 -0500 (Thu, 27 Mar 2008) | 14 lines Merged revisions 111442 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r111442 | tilghman | 2008-03-27 14:23:12 -0500 (Thu, 27 Mar 2008) | 6 lines For FreeBSD, at least, the ifa_addr element could be NULL. (closes issue ASTERISK-11723) Reported by: festr Patches: acl.c.patch uploaded by festr (license 443) ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=111444 |