getprotobyname crash if no /etc/protocols
Matthieu CASTET
matthieu.castet at parrot.com
Wed Jul 18 10:17:56 UTC 2007
Matthieu CASTET wrote:
> Hi,
>
> if there is no /etc/protocols, getprotobyname from Uclibc 0.9.29 segdefault.
>
> This happen for example with ping command of busybox (without
> /etc/protocols).
>
Here a gdb backtrace
0x40080e30 in strcoll () from /opt/arm-uclibc/lib/libc.so.0
(gdb) bt
#0 0x40080e30 in strcoll () from /opt/arm-uclibc/lib/libc.so.0
#1 0x4008f568 in getprotobyname_r () from /opt/arm-uclibc/lib/libc.so.0
#2 0x4008f64c in getprotobyname () from /opt/arm-uclibc/lib/libc.so.0
#3 0x0005ab28 in create_icmp_socket ()
#4 0x0003ba04 in ping ()
#5 0x0003c010 in ping_main ()
#6 0x0000ccf8 in run_applet_by_name ()
#7 0x0000ceb4 in main ()
Matthieu
More information about the uClibc
mailing list