traceroute -q segfault

Bernhard Fischer rep.nop at aon.at
Fri Aug 18 18:07:01 UTC 2006


On Fri, Aug 18, 2006 at 06:36:20PM +0200, Raphaël HUCK wrote:
>Hi, I have BusyBox 1.1.3 as shown below.
>When I run /bin/traceroute -I -q 10 -i ppp0 google.com,
>I get a segfault.  The strace is shown below.
>
>I have searched the bug tracker, I didn't find anything about this.
>
>Has anyone run into the same problem ? Should I submit a new bug ?

Confirmed with trunk.

looks like str2val could need a if (!str)
return; resp. a major touch-up so this doesn't happen int he first
place.
I'm not sure if i want to look at traceroute ATM -- respectively I _am_
sure that i don't want to ;)
Starting program: /home/bernhard/src/busybox/busybox_unstripped
traceroute -I -q 10 -i ib0 google.com

Program received signal SIGSEGV, Segmentation fault.
str2val (str=0x0, what=0x4efddc "nprobes", mi=1, ma=-1)
    at /home/bernhard/src/busybox/networking/traceroute.c:512
512             if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) {
(gdb) bt
#0  str2val (str=0x0, what=0x4efddc "nprobes", mi=1, ma=-1)
    at /home/bernhard/src/busybox/networking/traceroute.c:512
#1  0x000000000045ecd1 in traceroute_main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /home/bernhard/src/busybox/networking/traceroute.c:1006
#2  0x000000000040bb13 in run_applet_by_name ()
    at /home/bernhard/src/busybox/applets/applets.c:475
#3  0x000000000040be2f in busybox_main ()
#4  0x000000000040bab7 in run_applet_by_name ()
    at /home/bernhard/src/busybox/applets/applets.c:468
#5  0x000000000040bc86 in main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /home/bernhard/src/busybox/applets/busybox.c:81



More information about the busybox mailing list