Discussion:
[ast-developers] Crash in "basic.sh"'s ALRM test on Solaris 11/AMD64/64bit...
Roland Mainz
2013-09-11 22:31:59 UTC
Permalink
Hi!

----

The "basic.sh" test module fails in ast-ksh.2013-09-11 on Solaris
11/AMD64/64bit like this:
-- snip --
test basic begins at 2013-09-12+00:26:09
corrupted data:region=0xfffffd7ffb590eb0:block=0xfffffd7ffb49c890:bad
byte at=904:
basic.sh[320]: ALRM signal not working
test basic failed at 2013-09-12+00:27:08 with exit code 1 [ 109 tests 1 error ]
-- snip --

The stack trace looks like this:
-- snip --
Current function is sh_done
689 kill(getpid(),sig);
(dbx) where
[1] kill(0x58c7, 0x6, 0xffffff00ce8eeba0, 0xfffffd7ffbcaab6a, 0x0,
0xfffffd7fffdfcd40), at 0xfffffd7ffbcaac5a
=>[2] sh_done(ptr = 0xfffffd7ffb92e4a8, sig = 6), line 689 in "fault.c"
[3] sh_fault(sig = 6, info = 0xfffffd7fffdfd2a8, context =
0xfffffd7fffdfcf40), line 181 in "fault.c"
[4] __sighndlr(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7ffbca2326
[5] call_user_handler(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7ffbc94ffc
[6] sigacthandler(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7ffbc95223
---- called from signal handler with signal 6 (SIGABRT) ------
[7] _lwp_kill(0x1, 0x6, 0xffffff00ce8eeba0, 0x5, 0x0, 0x20), at
0xfffffd7ffbcab2da
[8] thr_kill(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7ffbc9faad
[9] raise(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7ffbc4cec1
[10] abort(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7ffbc22ae5
[11] vmdbwarn(vm = 0xfffffd7ffb590eb0, mesg = 0xfffffd7fffdfd510
"corrupted data:region=0xfffffd7ffb590eb0:block=0xfffffd7ffb49c890:bad
byte at=904:\n", n = 83), line 147 in "vmdebug.c"
[12] dbwarn(vm = 0xfffffd7ffb590eb0, data = 0xfffffd7ffb49c890,
where = 904, file = (nil), line = 0, func = (nil), type = 0), line 236
in "vmdebug.c"
[13] vmdbcheck(vm = 0xfffffd7ffb590eb0), line 568 in "vmdebug.c"
[14] dballoc(vm = 0xfffffd7ffb590eb0, size = 176U, local = 0), line
336 in "vmdebug.c"
[15] _ast_malloc(size = 176U), line 705 in "malloc.c"
[16] sfnew(oldf = (nil), buf = 0xfffffd7ffb540b10, size = 11U, file
= -1, flags = 5), line 97 in "sfnew.c"
[17] _sfopenat(cwd = -3041965, f = (nil), file = 0xfffffd7ffb540b10
"print alarm", mode = 0xfffffd7ffb917530 "s"), line 122 in "_sfopen.c"
[18] _sfopen(f = (nil), file = 0xfffffd7ffb540b10 "print alarm",
mode = 0xfffffd7ffb917530 "s"), line 203 in "_sfopen.c"
[19] sfopen(f = (nil), file = 0xfffffd7ffb540b10 "print alarm", mode
= 0xfffffd7ffb917530 "s"), line 40 in "sfopen.c"
[20] sh_trap_20120720(shp = 0xfffffd7ffb92e4a8, trap =
0xfffffd7ffb540b10 "print alarm", mode = 0), line 860 in "fault.c"
[21] sh_chktrap(shp = 0xfffffd7ffb92e4a8), line 499 in "fault.c"
[22] sh_exec(shp = 0xfffffd7ffb92e4a8, t = 0xfffffd7ffb494570, flags
= 129), line 2988 in "xec.c"
[23] sh_exec(shp = 0xfffffd7ffb92e4a8, t = 0xfffffd7ffb494570, flags
= 129), line 2248 in "xec.c"
[24] sh_exec(shp = 0xfffffd7ffb92e4a8, t = 0xfffffd7ffb494630, flags
= 0), line 1909 in "xec.c"
[25] sh_exec(shp = 0xfffffd7ffb92e4a8, t = 0xfffffd7ffb494960, flags
= 1), line 2244 in "xec.c"
[26] sh_subshell(shp = 0xfffffd7ffb92e4a8, t = 0xfffffd7ffb494960,
flags = 1, comsub = 3), line 603 in "subshell.c"
[27] comsubst(mp = 0xfffffd7ffb4a26d0, t = 0xfffffd7ffb494960, type
= 3), line 2168 in "macro.c"
[28] varsub(mp = 0xfffffd7ffb4a26d0), line 1190 in "macro.c"
[29] copyto(mp = 0xfffffd7ffb4a26d0, endch = 0, newquote = 0), line
634 in "macro.c"
[30] sh_macexpand(shp = 0xfffffd7ffb92e4a8, argp =
0xfffffd7ffb494290, arghead = (nil), flag = 4096), line 245 in
"macro.c"
[31] sh_macpat(shp = 0xfffffd7ffb92e4a8, arg = 0xfffffd7ffb494290,
flags = 0), line 423 in "macro.c"
[32] sh_exec(shp = 0xfffffd7ffb92e4a8, t = 0xfffffd7ffb494330, flags
= 0), line 2912 in "xec.c"
[33] sh_exec(shp = 0xfffffd7ffb92e4a8, t = 0xfffffd7ffb494440, flags
= 4), line 2275 in "xec.c"
[34] exfile(shp = 0xfffffd7ffb92e4a8, iop = 0xfffffd7ffb4e5260, fno
= 11), line 603 in "main.c"
[35] sh_main(ac = 2, av = 0xfffffd7fffdff788, userinit = (nil)),
line 375 in "main.c"
[36] 0x40c2b2(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x40c2b2
[37] 0x40c0cc(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x40c0cc
-- 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;)
Loading...