Hi!
----
The following was just reported against ast-ksh.2008-11-04:
The testcase $ ksh -c 'echo $test ; echo ${test}' # crashes like this:
-- snip --
Program received signal SIGSEGV, Segmentation fault.
0x080b1fcf in b_test (argc=2, argv=0xbfa24fcc, extra=0x81964f8)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/bltins/test.c:127
127 if(c_eq(cp,'(') && argc<=6 && c_eq(argv[argc-1],')'))
(gdb) where
#0 0x080b1fcf in b_test (argc=2, argv=0xbfa24fcc, extra=0x81964f8)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/bltins/test.c:127
#1 0x08095f1f in sh_exec (t=0xbfa24f98, flags=5) at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/xec.c:992
#2 0x08090e72 in sh_subshell (t=0xbfa24f98, flags=5, comsub=2)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/subshell.c:544
#3 0x080734de in comsubst (mp=0x819c028, t=0xbfa24f98, type=2)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/macro.c:1965
#4 0x0806fa62 in sh_macfun (shp=0x81961a0,
name=0x81a3eb9
"tes/usr/local/bin/.paths/usr/bin/.paths/usr/X11R6/bin/.paths/bin/.paths/usr/games/.paths/opt/gnome/bin/.paths/opt/kde3/bin/.paths/usr/lib/mit/bin/.paths/usr/lib/mit/sbin/.paths",
offset=9)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/macro.c:973
#5 0x08070817 in varsub (mp=0x819c028) at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/macro.c:1218
#6 0x0806e773 in copyto (mp=0x819c028, endch=0, newquote=0)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/macro.c:587
#7 0x0806d47b in sh_macexpand (shp=0x81961a0, argp=0x81a3e90,
arghead=0xbfa254fc, flag=0)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/macro.c:235
#8 0x080c3647 in arg_expand (shp=0x81961a0, argp=0x81a3e90,
argchain=0xbfa254fc, flag=0)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/args.c:852
#9 0x080c30ef in sh_argbuild (shp=0x81961a0, nargs=0xbfa25848,
comptr=0x81a3e70, flag=0)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/args.c:723
#10 0x08094c06 in sh_exec (t=0x81a3e70, flags=5) at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/xec.c:704
#11 0x08097bf1 in sh_exec (t=0x81a3e70, flags=5) at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/xec.c:1544
#12 0x08050db1 in exfile (shp=0x81961a0, iop=0x81ce6c8, fno=-1)
at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/main.c:591
#13 0x080501f3 in sh_main (ac=3, av=0xbfa26134, userinit=0) at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/main.c:366
#14 0x0804f51e in main (argc=3, argv=0xbfa26134) at
/home/gismobile/work/ast_ksh_20090310/build_i386_32bit/src/cmd/ksh93/sh/pmain.c:46
-- snip --
Looks like ${test} calls the "test" builtin", ${sleep} the "sleep" builtin etc.
Can anyone check whether this happens for ast-ksh.2009-05-01, too, please ?
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [email protected]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users