<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
  Yes, this patch works.<BR>
 <BR>
  The physical interface 'eth2' 'ppp0' used has no ipv4/ipv6 address.<BR>
 <BR>
  Thanks.<BR>
 <BR>> Date: Fri, 24 Apr 2009 11:19:41 +0900<BR>> Subject: Re: [Buildroot] ping/wget/ftpget 'Segmentation fault' while PPPoE interface up<BR>> From: hiroshi.shinji@gmail.com<BR>> To: l0op8ack@hotmail.com<BR>> CC: buildroot@busybox.net<BR>> <BR>> Hi,<BR>> <BR>> If the interface used by ppp0 or others has no address,<BR>> try to patch the file append to this mail to uClibc 0.9.30.1<BR>> (or use uClibc snapshot).<BR>> <BR>> This patch already applied to uClibc snapshot.<BR>> <BR>> Regards,<BR>> <BR>> <BR>> 2009/4/24 八戒哥哥 <l0op8ack@hotmail.com>:<BR>> > hi,all<BR>> > I'm a buildroot user who struggle to make an old celeron pc with 2 ethernet<BR>> > NICs as access router.<BR>> > The leased line is ADSL(PPPoE).<BR>> ><BR>> > I statically linked busybox against uclibc 0.9.30.1 ,using buildroot.<BR>> ><BR>> > Bringing up ppp0 interface by rp-pppoe pppoe-connect script,s
 o far so good.<BR>> > Executing 'ping' ip address, the 'ping' command reports 'Segmentation<BR>> > fault'.<BR>> > In fact, any network related command , such as wget/ftpget, report<BR>> > 'Segmentation fault'.<BR>> ><BR>> > Shutdown the ppp0 interface by killing the 'pppd' and 'pppoe' processes,<BR>> > ping some local ip address, no 'Segmentation fault' reportes this time,<BR>> > and wget/ftpget work.<BR>> ><BR>> > Bringing up ppp interface will crash the network related command.<BR>> ><BR>> > I follow the busybox-1.13.4/networking/ping.c,<BR>> > and find that the reason is 'getaddrinfo' call faults in fucntion 'static<BR>> > len_and_sockaddr* str2sockaddr',<BR>> > at line 191,busyb ox-1.13.4/libbb/xconnect.c<BR>> ><BR>> > 135 static len_and_sockaddr* str2sockaddr(<BR>> > 136 const char *host, int port,<BR>> > 137 USE_FEATURE_IPV6(sa_family_t af,)<BR>> > 13
 8 int ai_flags)<BR>> > 139 {<BR>> > 140 int rc;<BR>> > 141 len_and_sockaddr *r = NULL;<BR>> > 142 struct addrinfo *result = NULL;<BR>> > 143 struct addrinfo *used_res;<BR>> > 144 const char *org_host = host; /* only for error msg */<BR>> > 145 const char *cp;<BR>> > 146 struct addrinfo hint;<BR>> > ...<BR>> > 191 rc = getaddrinfo(host , NULL, &hint, &result);<BR>> > ...<BR>> ><BR>> > I build busybox against glibc ,linked statically and try again,<BR>> > busybox works fine, whether bringing up ppp interface or not.<BR>> ><BR>> > It's a uclibc problem, maybe.<BR>> ><BR>> > ________________________________<BR>> > 把MSN装进手机,更多聊天乐趣等你挖掘! 立刻下载!<BR>> > _______________________________________________<BR>> > buildroot mailing list<BR>> > buildroot@busybox.net<BR>> > http://lists.busybox.net/mailman/listinfo/buildroot<BR>
 > ><BR>> <BR>> <BR>> <BR>> -- <BR>> 宍道 洋<BR>> hiroshi.shinji@gmail.com<BR>> <A href="http://d.hatena.ne.jp/hshinji/">http://d.hatena.ne.jp/hshinji/</A><BR><br /><hr />更多热辣资讯尽在新版MSN首页! <a href='http://cn.msn.com/' target='_new'>立刻访问!</a></body>
</html>