[Bug 747] 1.15.2 regression from 1.15.1 in ash parameter expansion

bugzilla at busybox.net bugzilla at busybox.net
Sat Nov 28 18:14:26 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=747





--- Comment #6 from Davide Cavalca <davide at geexbox.org>  2009-11-28 18:14:25 UTC ---
Created an attachment (id=767)
 --> (https://bugs.busybox.net/attachment.cgi?id=767)
program output

I've attached the output I get as out.bz2. When it ends busybox segfaults with

(cut)
sh: c:0 ''
sh: c:0 ''
sh: c:0 ''

Program received signal SIGSEGV, Segmentation fault.
evalvar (p=0x80ba000 <Address 0x80ba000 out of bounds>, 
    flags=<value optimized out>, var_str_list=0x80991d0) at shell/ash.c:6638
6638                            char c = *p++;
(gdb) bt
#0  evalvar (p=0x80ba000 <Address 0x80ba000 out of bounds>, 
    flags=<value optimized out>, var_str_list=0x80991d0) at shell/ash.c:6638
#1  argstr (p=0x80ba000 <Address 0x80ba000 out of bounds>, 
    flags=<value optimized out>, var_str_list=0x80991d0) at shell/ash.c:5964
#2  0x08061896 in expandarg (arg=<value optimized out>, 
    arglist=<value optimized out>, flag=4) at shell/ash.c:7025
#3  0x08063f9c in evalcommand (cmd=0x8099214, flags=0) at shell/ash.c:9029
#4  0x08060ba5 in evaltree (n=0x8099214, flags=0) at shell/ash.c:8220
#5  0x08062a0b in cmdloop (top=<value optimized out>) at shell/ash.c:11940
#6  0x0806393f in ash_main (argc=1, argv=0xffffd488) at shell/ash.c:13324
#7  0x0804cbca in run_applet_no_and_exit (applet_no=65, argv=0xffffd488)
    at libbb/appletlib.c:741
#8  0x0804cbef in run_applet_and_exit (name=0xffffd64f "sh", argv=0xffffd488)
    at libbb/appletlib.c:748
#9  0x0804cdd4 in busybox_main (name=<value optimized out>, argv=0xffffd488)
    at libbb/appletlib.c:713
#10 run_applet_and_exit (name=<value optimized out>, argv=0xffffd488)
    at libbb/appletlib.c:750
#11 0x0804ce58 in main (argc=2, argv=0xffffd484) at libbb/appletlib.c:785
(gdb) 


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list