Hi! ----
ast-ksh.2013-03-18 triggers the following crash in one of our old XML
parsing demos ("xmldocumenttree1.sh", a reduced test case has been
attached as "ksh_aso_crash1.sh.gz").
Example (on SuSE 12.1/AMD64/64bit):
-- snip --
$ gdb --args ~/bin/ksh /tmp/ksh_aso_crash1.sh
GNU gdb (GDB) SUSE (7.4.50.20120603-2.1.2)
[snip]
(gdb) run
Starting program: /home/test001/bin/ksh /tmp/ksh_aso_crash1.sh
Detaching after fork from child process 25611.
#parsing completed.
(
[snip]
)
#done.
Program received signal SIGSEGV, Segmentation fault.
0x0000000000515d8c in asogetptr (p=0x10) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/lib/libast/aso/aso.c:382
382 o = *(void* volatile*)p;
Missing separate debuginfos, use: zypper install
glibc-debuginfo-2.15-22.17.1.x86_64
(gdb) where
#0 0x0000000000515d8c in asogetptr (p=0x10) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/lib/libast/aso/aso.c:382
#1 0x00000000004f64a0 in dtuserdata (dt=0x7ffff7fd4cf0, data=0x0,
set=0) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/lib/libast/cdt/dtuser.c:45
#2 0x000000000041241e in nv_search (name=0x7ffff7fc287b "2",
root=0x7ffff7fd4cf0, mode=0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/nvdisc.c:1058
#3 0x0000000000421675 in nv_associative (np=0x7ffff7fd4b80,
sp=0x7ffff7fc287b "2", mode=0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/array.c:1804
#4 0x000000000042013b in nv_putsub_20120720 (np=0x7ffff7fd4b80,
sp=0x7ffff7fc287b "2", size=0, flags=0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/array.c:1374
#5 0x0000000000420d91 in nv_endsubscript (np=0x7ffff7fd4b80,
cp=0x7ffff7fc287c "", mode=1024, context=0x7f6400 <sh>)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/array.c:1582
#6 0x000000000045393e in nv_create (name=0x7ffff7fc2870
"xdoc.nodes[2", root=0x7ffff7fc5c60, flags=1442816, dp=0x7fffffffd790)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/name.c:1053
#7 0x0000000000454cbb in nv_open (name=0x7ffff7fc27f1
"xdoc.nodes[2].nodes[0].tagtype", root=0x7ffff7fc5c60, flags=1442816)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/name.c:1415
#8 0x000000000045ce45 in outval (name=0x7ffff7fc2808 "tagtype",
vname=0x7ffff7fc27f1 "xdoc.nodes[2].nodes[0].tagtype",
wp=0x7fffffffd9a0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/nvtree.c:722
#9 0x000000000045dd9e in genvalue (argv=0x7ffff7fc2850,
prefix=0x7ffff7fc27c0 "xdoc.nodes[2].nodes[0]", n=0,
wp=0x7fffffffd9a0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/nvtree.c:979
#10 0x000000000045e6ea in walk_tree (np=0x7ffff7e10360, xp=0x0,
flags=1) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/nvtree.c:1120
#11 0x000000000045eab5 in put_tree (np=0x7ffff7e10360, val=0x0,
flags=1, fp=0x7ffff7e103c0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/nvtree.c:1191
#12 0x000000000040fce8 in nv_putv (np=0x7ffff7e10360, value=0x0,
flags=1, nfp=0x10)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/nvdisc.c:152
#13 0x0000000000457a86 in _nv_unset (np=0x7ffff7e10360, flags=1) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/name.c:2530
#14 0x0000000000421240 in nv_associative (np=0x7ffff7e11610, sp=0x0,
mode=5) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/array.c:1724
#15 0x00000000004212db in nv_associative (np=0x7ffff7e11610, sp=0x0,
mode=2) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/array.c:1740
#16 0x000000000042740c in array_notify (np=0x7ffff7e11610, data=0x0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/fault.c:574
#17 0x00000000004570b3 in scanfilter (dict=0x7ffff7fc5c60,
arg=0x7ffff7e11610, data=0x7fffffffddb0)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/name.c:2281
#18 0x000000000045717a in nv_scan (root=0x7ffff7fc5c60, fn=0x4273bd
<array_notify>, data=0x0, mask=1024, flags=1024)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/name.c:2311
---Type <return> to continue, or q <return> to quit---
#19 0x0000000000427537 in sh_done (ptr=0x7f6400 <sh>, sig=0) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/fault.c:606
#20 0x000000000040f27b in exfile (shp=0x7f6400 <sh>, iop=0x7ffff7e26070, fno=11)
at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/main.c:609
#21 0x000000000040e2db in sh_main (ac=2, av=0x7fffffffe268,
userinit=0x0) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/main.c:360
#22 0x000000000040d491 in main (argc=2, argv=0x7fffffffe268) at
/home/test001/work/ast_ksh_20130318/build_i386_64bit_debug_unpatched/src/cmd/ksh93/sh/pmain.c:45
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [email protected]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
ksh_aso_crash1.sh.gz
Description: GNU Zip compressed data
_______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
