On Mon, Aug 27, 2012 at 10:10 AM, Roland Mainz <roland.ma...@nrubsig.org> wrote: > The following test script... > -- snip -- > set -o nounset > x=1234 > compound co > : "${x//~(X)([012])|([345])/ }" > x="$(print -v .sh.match)" > typeset -m co.array=.sh.match > y="$(print -v co.array)" > [[ "$y" == "$x" ]] && print "MATCH" > printf "%s" "${co.array[2][1]}" > -- snip -- > ... crashes ast-ksh.2012-08-24 on SuSE12.1/AMD64 with this stack trace: > -- snip -- > Program received signal SIGSEGV, Segmentation fault. > 0x000000000046533d in nv_name (np=0x7ffff7e12610) at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/name.c:3673 > 3673 if(!ap || !ap->fixed || (ap->nelem&ARRAY_UNDEF)) > (gdb) print ap > $1 = (Namarr_t *) 0x7d > (gdb) where > #0 0x000000000046533d in nv_name (np=0x7ffff7e12610) at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/name.c:3673 > #1 0x0000000000457a77 in varsub (mp=0x7ffff7fe2a30) at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/macro.c:1979 > #2 0x0000000000452bfe in copyto (mp=0x7ffff7fe2a30, endch=0, > newquote=0) at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/macro.c:630 > #3 0x00000000004513a9 in sh_macexpand (shp=0x8075a0, > argp=0x7ffff7fac120, arghead=0x7fffffffd7c0, flag=0) > at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/macro.c:241 > #4 0x00000000004aff6b in arg_expand (shp=0x8075a0, argp=0x7d, > argchain=0x7fffffffd7c0, flag=0) > at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/args.c:860 > #5 0x00000000004afa8b in sh_argbuild (shp=0x8075a0, > nargs=0x7fffffffdb24, comptr=0x7ffff7fac0c0, flag=0) > at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/args.c:724 > #6 0x0000000000481be1 in sh_exec (shp=0x8075a0, t=0x7ffff7fac0c0, > flags=4) at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/xec.c:966 > #7 0x00000000004195ef in exfile (shp=0x8075a0, iop=0x7ffff7e10070, fno=11) > at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/main.c:581 > #8 0x00000000004187e0 in sh_main (ac=2, av=0x7fffffffe228, > userinit=0) at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/main.c:353 > #9 0x0000000000417909 in main (argc=2, argv=0x7fffffffe228) at > /home/test001/work/ast_ksh_20120824/build_i386_64bit_debug_extrabuiltins/src/cmd/ksh93/sh/pmain.c:45 > -- snip --
This seems to be fixed in ast-ksh.2012-09-11 ... ... thanks... :-) ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.ma...@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list ast-developers@research.att.com https://mailman.research.att.com/mailman/listinfo/ast-developers