Hi!

----

Attached (as "shpiano.sh.bz2') is the old piano shell script demo
which crashes in ast-ksh.2012-10-04 on SuSE 12.1/AMD64/64bit after
printing some weired "discipline not replaced" messages (this is
likely related to user-defined types since "shpiano" relies heavilty
on them):
-- snip --
$ gdb -args ~/bin/ksh shpiano.sh
GNU gdb (GDB) SUSE (7.4.50.20120603-2.1.2)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/test001/bin/ksh...done.
(gdb) run
Starting program: /home/test001/bin/ksh shpiano.sh
Detaching after fork from child process 2912.
Detaching after fork from child process 2913.
----------------------------------------------------
 |    #####  #####    |    #####  #####  #####    |
 |    #####  #####    |    #####  #####  #####    |
 |    #####  #####    |    #####  #####  #####    |
 |    #cis#  #dis#    |    #fis#  #gis#  #ais#    |
 |    #des#  # es#    |    #ges#  # as#  # b #    |
 |    \###/  \###/    |    \###/  \###/  \###/    |
 |      |      |      |      |      |      |      |
 |      |      |      |      |      |      |      |
 |   c  |   d  |   e  |   f  |   g  |   a  |   h  |
 |      |      |      |      |      |      |      |
/\-----/\-----/\-----/\-----/\-----/\-----/\-----/\-

Keys:
       R      T             U      I      O
    D      F      G      H      J      K      L
Playing sound to device /dev/audio
discipline not replaced
discipline not replaced
 > Detaching after fork from child process 2914.
h
Program received signal SIGSEGV, Segmentation fault.
0x000000000041c927 in array_find (np=0x7ffff7fb5c50,
arp=0x7ffff7e14d80, flag=1) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/array.c:388
388                     if(up->np && array_isbit(ap->bits,ap->cur,ARRAY_CHILD))
Missing separate debuginfos, use: zypper install
glibc-debuginfo-2.15-22.6.4.x86_64
(gdb) where
#0  0x000000000041c927 in array_find (np=0x7ffff7fb5c50,
arp=0x7ffff7e14d80, flag=1) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/array.c:388
#1  0x000000000041d4f5 in array_getnum (np=0x7ffff7fb5c50,
disc=0x7ffff731b7d0) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/array.c:605
#2  0x000000000040f4e5 in nv_getn (np=0x7ffff7fb5c50,
nfp=0x7ffff731b7d0) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/nvdisc.c:95
#3  0x00000000004572b8 in nv_getnum (np=0x7ffff7fb5c50) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/name.c:2887
#4  0x000000000041b7fa in arith (ptr=0x7fffffff95c8,
lvalue=0x7fffffff9580, type=2, n=9)
    at 
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/arith.c:484
#5  0x000000000046b3fd in arith_exec (ep=0x7ffff7e11ea0) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/streval.c:249
#6  0x000000000047af3c in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff7e11e80, flags=4) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2457
#7  0x0000000000479c6b in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff7e127e0, flags=4) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2155
#8  0x000000000047ab27 in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff7e11a60, flags=4) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2398
#9  0x0000000000479ca6 in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff7e11a60, flags=4) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2159
#10 0x0000000000479c6b in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff7e12990, flags=6) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2155
#11 0x000000000047f941 in sh_funscope_20120720 (shp=0x7e8400 <sh>,
argn=2, argv=0x7ffff72e0310, fun=0x0, arg=0x7fffffffb570, execflg=4)
    at 
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:3976
#12 0x000000000047daac in sh_funct (shp=0x7e8400 <sh>,
np=0x7ffff7e15180, argn=2, argv=0x7ffff72e0310, envlist=0x0,
execflg=4)
    at 
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:3293
#13 0x0000000000477886 in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff72e0280, flags=516) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:1510
#14 0x0000000000479c6b in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff72e03c0, flags=516) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2155
#15 0x000000000047b064 in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff7267800, flags=516) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2474
#16 0x0000000000479c6b in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff72e0760, flags=516) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2155
#17 0x000000000047ab27 in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff72665a0, flags=4) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2398
#18 0x0000000000479c6b in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff72e0bc0, flags=6) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:2155
#19 0x000000000047f941 in sh_funscope_20120720 (shp=0x7e8400 <sh>,
argn=1, argv=0x7ffff7fab128, fun=0x0, arg=0x7fffffffd900, execflg=4)
    at 
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:3976
#20 0x000000000047daac in sh_funct (shp=0x7e8400 <sh>,
np=0x7ffff7fc4170, argn=1, argv=0x7ffff7fab128, envlist=0x0,
execflg=4)
    at 
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:3293
#21 0x0000000000477886 in sh_exec (shp=0x7e8400 <sh>,
t=0x7ffff7fab0c0, flags=4) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:1510
#22 0x000000000040eb9e in exfile (shp=0x7e8400 <sh>,
iop=0x7ffff7e0f070, fno=11) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/main.c:582
#23 0x000000000040dd8b in sh_main (ac=2, av=0x7fffffffe268,
userinit=0x0) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/main.c:354
#24 0x000000000040cfb1 in main (argc=2, argv=0x7fffffffe268) at
/home/test001/work/ast_ksh_20121004/build_i386_64bit_debug/src/cmd/ksh93/sh/pmain.c:45
-- snip --

----

Bye,
Roland

P.S.: If your Linux system no longer has /dev/audio try this (as user "root"):
$ modprobe snd_pcm_oss
$ chmod a=u /dev/audio

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

Attachment: shpiano.sh.bz2
Description: BZip2 compressed data

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

Reply via email to