Discussion:
[ast-developers] Crash/hang in "heredoc.sh" test ... / was: Re: ast alpha software download update
Roland Mainz
2013-12-10 15:43:16 UTC
Permalink
the ast alpha 2013-12-06 source release
has been posted to the download site
cococlyde.org/gsf/download/alpha
the package names and md5 checksums are
INIT 194b362b038c0f50d24862d41e26309f
ast-open 3d471d8313a6d4c27162d96209a6760c
ast-ksh 27bdd0adb652b8bf252d4c5a4a817064
the md5 sums should match the ones listed on the download page
NOTE: the map-libc build option is now the default on all systems
it was previously only the default on solaris
this option prepends _ast_ to ast symbols that may clash with standard libc
symbols
this change in defaults may cause binary incompatibilities
do a one time recompile everything that relies on ast
this handles a dynamic/shared symbol binding problem that missed ast symbols
on some systems
[snip]

Somehow it feels like a deja-vu but I am not sure yet...
... the "heredoc.sh" test module crashes reliably on SuSE
12.3/AMD64/64bit like this in the "C" and "zh_CN.GB18030" locales:
-- snip --
+ /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/arch/linux.i386-64/src/cmd/ksh93/ksh
./src/cmd/ksh93/tests/shtests --locale
LD_LIBRARY_PATH_64=/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/arch/linux.i386-64/lib:
LD_LIBRARY_PATH=/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/arch/linux.i386-64/lib:/usr/lib64/mpi/gcc/openmpi/lib64
LD_LIBRARY_PATH_32=/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/arch/linux.i386-64/lib:
LC_ALL=zh_CN.GB18030 LANG=zh_CN.GB18030 VMALLOC_OPTIONS=abort
SHCOMP='/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/arch/*/bin/shcomp'
./src/cmd/ksh93/tests/heredoc.sh
test heredoc(zh_CN.GB18030) begins at 2013-12-10+16:35:55
free error:region=0x25d6d046beb0:block=0x7f8830c4bbe0:outside region:
-- snip --
... the process then hangs here:
-- snip --
0x00007f8479482570 in __nanosleep_nocancel () at
../sysdeps/unix/syscall-template.S:81
81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) where
#0 0x00007f8479482570 in __nanosleep_nocancel () at
../sysdeps/unix/syscall-template.S:81
#1 0x00007f84797ec19f in tvsleep (tv=0x0, rv=0x0) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/tm/tvsleep.c:64
#2 0x00007f8479856883 in asorelax (nsec=262144) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/aso/asorelax.c:46
#3 0x00007f8479856832 in asolock (lock=0x25d589dff03c, key=20130501,
type=4) at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/aso/asolock.c:40
#4 0x00007f847985f3d2 in dballoc (vm=0x25d589a00eb0, size=176,
local=0) at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/vmalloc/vmdebug.c:333
#5 0x00007f8479857f2a in _ast_malloc (size=176) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/vmalloc/malloc.c:766
#6 0x00007f847982aac1 in sfnew (oldf=0x0, buf=0x25d589e697b0,
size=32, file=-1, flags=5)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/sfio/sfnew.c:97
#7 0x00007f8479847627 in _sfopenat (cwd=-100, f=0x0,
file=0x25d589e697b0 "cd /; rm -rf /tmp/tmpckZqLpI.bgx",
mode=0x7f847a3fab0f "s")
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/sfio/_sfopen.c:120
#8 0x00007f8479847763 in _sfopen (f=0x0, file=0x25d589e697b0 "cd /;
rm -rf /tmp/tmpckZqLpI.bgx", mode=0x7f847a3fab0f "s")
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/sfio/_sfopen.c:203
#9 0x00007f847982b6d3 in sfopen (f=0x0, file=0x25d589e697b0 "cd /; rm
-rf /tmp/tmpckZqLpI.bgx", mode=0x7f847a3fab0f "s")
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/sfio/sfopen.c:40
#10 0x00007f847a38cdc5 in sh_trap_20120720 (shp=0x7f847a628b40 <sh>,
trap=0x25d589e697b0 "cd /; rm -rf /tmp/tmpckZqLpI.bgx", mode=0)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/fault.c:860
#11 0x00007f847a38c358 in sh_done (ptr=0x7f847a628b40 <sh>, sig=6) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/fault.c:644
#12 0x00007f847a38b157 in sh_fault (sig=6, info=0x7fffb36b67b0,
context=0x7fffb36b6680) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/fault.c:181
#13 <signal handler called>
#14 0x00007f84793fe3d5 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#15 0x00007f84793ff858 in __GI_abort () at abort.c:90
#16 0x00007f847985e9b0 in vmdbwarn (vm=0x25d589a00eb0,
mesg=0x7fffb36b6c60 "free
error:region=0x25d589a00eb0:block=0x7f8479ab0be0:outside region:\n",
n=70)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/vmalloc/vmdebug.c:147
#17 0x00007f847985f073 in dbwarn (vm=0x25d589a00eb0,
data=0x7f8479ab0be0 <_Sfstdin>, where=0, file=0x0, line=0, func=0x0,
type=2)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/vmalloc/vmdebug.c:236
#18 0x00007f847985f6ea in dbfree (vm=0x25d589a00eb0,
data=0x7f8479ab0be0 <_Sfstdin>, local=0)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/vmalloc/vmdebug.c:401
#19 0x00007f847985819f in _ast_free (data=0x7f8479ab0be0 <_Sfstdin>)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/vmalloc/malloc.c:802
#20 0x00007f84798236e9 in sfclose (f=0x7f8479ab0be0 <_Sfstdin>) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/sfio/sfclose.c:166
#21 0x00007f847a399c88 in iovex_stream (context=0x7f847a628b40 <sh>,
origfd=0, fd2=18446744073709551615)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/io.c:969
#22 0x00007f84797f8a54 in spawnvex_apply (vex=0x25d589e095d0, cur=0,
flags=0) at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/lib/libast/misc/spawnvex.c:685
#23 0x00007f847a39998a in sh_vexrestore (shp=0x7f847a628b40 <sh>, n=0)
at /home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/io.c:893
#24 0x00007f847a3e28ea in sh_exec (shp=0x7f847a628b40 <sh>,
t=0x25d589e3a750, flags=4) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/xec.c:1779
#25 0x00007f847a36e997 in exfile (shp=0x7f847a628b40 <sh>,
iop=0x25d589e54550, fno=11) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/main.c:610
#26 0x00007f847a36dbe2 in sh_main (ac=2, av=0x7fffb36b7e08,
userinit=0x0) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/main.c:382
#27 0x0000000000400751 in main (argc=2, argv=0x7fffb36b7e08) at
/home/test001/work/ast_ksh_20131206/build_i386_64bit_debug/src/cmd/ksh93/sh/pmain.c:45
-- snip --

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Glenn Fowler
2013-12-10 15:56:16 UTC
Permalink
on suse for LC_ALL=zh_CN.GB18030 LANG=zh_CN.GB18030
how do you set a tty x window to display locale-appropriate characters?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20131210/971cdd66/attachment-0001.html>
Loading...