Segmentation fault

leebestleehj bestleehj at hotmail.com
Thu Apr 5 04:40:07 PDT 2007


Hi ;
   I'm sorry to bother you.
   When i use the busybox1.2.2 to ping and telnet some host ,i always see Segmentation fault;
I want to know what happened.Then i trace the code into the create_icmp_socket.c[22].
  proto = getprotobyname("icmp"); caused the error. I fand that it didn't protocols in the etc.
but i copy the /etc/protocols to my ramdisk.i also meet it? i don't know? Someone help me.
Other cmd is right!
 
# ping 192.168.0.175
        /home/bestlihj/kernel/busybox-1.2.2/networking/ping.c[437] ping_main  ###
        /home/bestlihj/kernel/busybox-1.2.2/networking/ping.c[333] ping  ###192.168.0.175
        /home/bestlihj/kernel/busybox-1.2.2/libbb/create_icmp_socket.c[22] create_icmp_socket  ###Segmentation fault
 
 
====================inittab====::sysinit:/etc/init.d/rcS::respawn:-/bin/sh#tty2::askfirst:-/bin/sh::ctrlaltdel:/bin/umount -a -r
 
==================== rcS===
#! /bin/sh/bin/mount -a/sbin/inetd /etc/inetd.conf/bin/echo endrcs
 
 
====inetd.conf=====
echo     stream  tcp    nowait  root    internalecho     dgram   udp    wait    root    internal#discard  stream  tcp   nowait  root    internal#discard  dgram   udp   wait    root    internaldaytime  stream  tcp    nowait  root    internaldaytime  dgram   udp    wait    root    internal#chargen  stream  tcp   nowait  root    internal#chargen  dgram   udp   wait    root    internaltime     stream  tcp    nowait  root    internaltime     dgram   udp    wait    root    internal
# These are standard services.##ftp    stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpdtelnet  stream  tcp     nowait  root    /sbin/telnetd   /sbin/telnetd
 
=========fstab proc            /proc   proc    defaults    0   0none            /dev/pts        devpts  mode=0622       0 0
 
 
=========services telnet          23/tcp
_________________________________________________________________
探索 Windows Vista 的世界
http://search.live.com/results.aspx?q=windows+vista&mkt=zh-cn&FORM=LIVSOP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20070405/caee2ac6/attachment.htm 


More information about the busybox mailing list