Hi,

I was investigating some issues and when I accidentaly used -p instead of -a, 
ksh crashed.

ksh -c 'typeset -p xx[7]'

backtrace:
#0  nv_getsub (np=0xfffffffffffffff1) at 
/usr/src/debug/ksh-20110208/src/cmd/ksh93/sh/array.c:1551
^^this gets called with sane np value, it's "destroyed" in the function

#1  nv_create (name=0xd04201 "xx[7]", root=0xd018a0, flags=148480, 
dp=0x7fff0ea815e0)
    at /usr/src/debug/ksh-20110208/src/cmd/ksh93/sh/name.c:1028
#2  nv_open (name=<optimized out>, root=0xd018a0, flags=268583936)
    at /usr/src/debug/ksh-20110208/src/cmd/ksh93/sh/name.c:1351
#3  b_common (argv=0xd04228, flag=0, troot=0xd018a0, tp=0x7fff0ea81720)
    at /usr/src/debug/ksh-20110208/src/cmd/ksh93/bltins/typeset.c:590
#4  b_typeset (argc=3, argv=0xd04220, extra=<optimized out>)
    at /usr/src/debug/ksh-20110208/src/cmd/ksh93/bltins/typeset.c:433
#5  sh_exec (t=0xd04150, flags=5) at 
/usr/src/debug/ksh-20110208/src/cmd/ksh93/sh/xec.c:1257
#6  exfile ()
#7  sh_main ()
#8  __libc_start_main (main=0x406ef0 <main>, argc=3, ubp_av=0x7fff0ea82008, 
init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff0ea81ff8) 
at libc-start.c:226
#9  0x0000000000406f21 in _start ()


Michal
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to