On 09/19/2012 09:28 PM, ольга крыжановская wrote:
Michal, what about a stack trace?
'backtrace full' is attached
compact backtrace:
#0 __strcmp_ssse3 () from /lib64/libc.so.6
#1 sh_subshell (shp=0x7a23a0, t=0x7f1e585ec830, flags=4, comsub=1) at
sh/subshell.c:541
#2 comsubst (mp=0x7f1e5860d9e0, t=0x7f1e585ec830, type=1) at sh/macro.c:2135
#3 varsub (mp=0x7f1e5860d9e0) at sh/macro.c:1168
#4 copyto (mp=0x7f1e5860d9e0, endch=0, newquote=0) at sh/macro.c:633
#5 sh_macexpand (shp=0x7a23a0, argp=0x7f1e585ec7c0,
arghead=0x7fff88d90800, flag=0)
at sh/macro.c:246
#6 arg_expand (shp=0x7a23a0, argp=0x0, argchain=0x7fff88d90800, flag=0)
at sh/args.c:864
#7 sh_argbuild (shp=0x7a23a0, nargs=0x7fff88d9089c,
comptr=0x7f1e585ec780, flag=0) at sh/args.c:728
#8 sh_exec (t=0x7f1e585ec780, flags=5) at sh/xec.c:1029
#9 sh_subshell (shp=0x7a23a0, t=0x7f1e585ec780, flags=5, comsub=1) at
sh/subshell.c:625
#10 comsubst (mp=0x7f1e5860d9e0, t=0x7f1e585ec780, type=1) at
sh/macro.c:2135
#11 varsub (mp=0x7f1e5860d9e0) at sh/macro.c:1168
#12 copyto (mp=0x7f1e5860d9e0, endch=0, newquote=0) at sh/macro.c:633
#13 sh_mactrim (shp=0x7a23a0, str=0x7f1e585ec6c1 "FOO=$(/bin/echo
$(/bin/echo \"bar\") )", mode=-1)
at sh/macro.c:183
#14 nv_setlist (arg=0x7f1e585ec6b0, flags=131584, typ=0x0) at sh/name.c:339
#15 sh_exec (t=0x7f1e585ec6f0, flags=5) at sh/xec.c:1210
#16 sh_exec (t=0x7f1e585ec6f0, flags=5) at sh/xec.c:2201
#17 exfile ()
#18 sh_main ()
#19 main (argc=3, argv=0x7fff88d92c38) at sh/pmain.c:45
#0 0x000000359df39fa6 in __strcmp_ssse3 () from /lib64/libc.so.6
No symbol table info available.
#1 0x000000000046385a in sh_subshell (shp=0x7a23a0, t=0x7f1e585ec830, flags=4,
comsub=1) at sh/subshell.c:541
xp = 0x7fff88d90f80
sub_data = {shp = 0x7a23a0, prev = 0x7fff88d90f80, pipe = 0x0, var =
0x7f1e5860dfd0, svar = 0x0, sfun = 0x0, salias = 0x0, pathlist =
0x7f1e585f7940, errcontext = 0x7fff88d8ffa0,
options = {v = {145135538012161, 0, 0, 0}}, subpid = 0, saveout =
0x0, pwd = 0x0, shpwd = 0x0, jobs = 0x7f1e585f7e70, pwdfd = -1, mask = 0, tmpfd
= 0, pipefd = 0,
jobcontrol = 0 '\000', monitor = 0 '\000', fdstatus = 0 '\000',
fdsaved = 0, sig = 0, bckpid = 0, cpid = 0, coutpipe = 0, cpipe = 0, nofork =
0, subdup = 0, subshare = 0 '\000',
comsub = 1 '\001', pwdclose = 0 '\000', coshell = 0x0}
sp = 0x7fff88d8fd10
jmpval = 4328373
nsig = 0
duped = 0
savecurenv = 1
savejobpgid = 0
saveexitval = 0x0
subshell = 2
savsig = 0x7a2c82 "\001"
iop = 0x0
buff = {buff = {{__jmpbuf = {5, 0, 96, 0, 140735489310496, 4535367,
140735489310608, 139768308488832}, __mask_was_saved = 0, __saved_mask = {__val
= {139768308488832, 40, 41,
140735489310544, 4535088, 7987552, 139768308488832, 40, 41,
140735489310608, 4534726, 23770759056, 139768308488832, 0, 40, 0}}}}, prev =
0x7fff88d91130, topfd = 0, mode = 9,
olist = 0x0, err = {context = 0x0, errors = 0, flags = 1, line = 1,
warnings = 0, file = 0x0, id = 0x7f1e5860cf10 "ksh"}}
savst = {prevst = 0x0, dolc = 0, dolv = 0x7fff88d92c48, cmdname =
0x7f1e5860cf10 "ksh", filename = 0x0, funname = 0x0, lineno = 0, save_tree =
0x0, self = 0x7a26b8, var_local = 0x0,
staklist = 0x0, states = 4, breakcnt = 0, execbrk = 0, loopcnt = 0,
firstline = 0, optindex = 1, optnum = 0, tmout = 0, optchar = 0, opterror = 0,
ioset = 0, trapmax = 0, trap = {
0x0, 0x0, 0x0, 0x0, 0x0}, otrap = 0x7fff88d910d8, trapcom =
0x7f1e585ec080, otrapcom = 0x0, timetrap = 0x0, real_fun = 0x0}
argsav = 0x0
argcnt = 0
#2 0x00000000004422fd in comsubst (mp=0x7f1e5860d9e0, t=0x7f1e585ec830,
type=1) at sh/macro.c:2135
num = <invalid float value>
c = 40
str = 0x7f1e585ec830 ""
sp = 0x0
stkp = 0x79e160
save = {_fcfile = 0x0, fcbuff = 0x7f1e585ec7d1 "$(/bin/echo \"bar\")",
fclast = 0x0, fcptr = 0x7f1e585ec7e3 "", fcchar = 0 '\000', fclen = 1, fcfun =
0x433f51 <lex_advance>,
context = 0x7f1e5860da80, fcleft = 0, fcoff = 0}
saveslp = 0x0
savemac = {shp = 0x7a23a0, sp = 0x0, arghead = 0x7fff88d90800, ifsp =
0x7f1e58608500 " \t\n", fields = 0, quoted = 0, ifs = 32 ' ', atmode = 0
'\000', quote = 0 '\000',
lit = 0 '\000', split = 1 '\001', pattern = 1 '\001', patfound = 0
'\000', assign = 0 '\000', arith = 0 '\000', let = 0 '\000', zeros = 0 '\000',
arrayok = 0 '\000',
subcopy = 0 '\000', dotdot = 0, nvwalk = 0x0}
savtop = 17
lastc = 0 '\000'
savptr = 0x7f1e585ec7f0 "/usr/lib64/qt-3."
was_history = 0
was_verbose = 0
was_interactive = 0
newlines = 279480576
bufsize = 0
nextnewlines = 1015722272
foff = 4302996292
np = 0x1
#3 0x000000000043e2a9 in varsub (mp=0x7f1e5860d9e0) at sh/macro.c:1168
c = 40
type = 0
v = 0x1 <Address 0x1 out of bounds>
argp = 0x0
np = 0x0
dolg = 0
mode = 0
lp = 0x7f1e5860da80
ap = 0x0
dolmax = 0
vsize = -1
offset = -1
nulflg = 7998208
replen = 0
bysub = 0
idbuff = "\000\000"
id = 0x7fff88d90290 ""
pattern = 0x0
repstr = 0x0
arrmax = 0x0
idx = 0x0
var = 1
addsub = 0
oldpat = 1
idnum = 0
flag = 0
d = 0
stkp = 0x79e160
#4 0x000000000043ca1a in copyto (mp=0x7f1e5860d9e0, endch=0, newquote=0) at
sh/macro.c:633
c = 1
n = 40
state = 0x54a500 "\002"
cp = 0x7f1e585ec7d2 "(/bin/echo \"bar\")"
first = 0x7f1e585ec7d2 "(/bin/echo \"bar\")"
lp = 0x7f1e5860da80
tilde = -1
oldquote = 0
ansi_c = 0
paren = 0
ere = 0
brace = 0
sp = 0x0
stkp = 0x79e160
resume = 0x0
#5 0x000000000043b324 in sh_macexpand (shp=0x7a23a0, argp=0x7f1e585ec7c0,
arghead=0x7fff88d90800, flag=0)
at sh/macro.c:246
flags = 4
str = 0x7f1e585ec7d1 "$(/bin/echo \"bar\")"
mp = 0x7f1e5860d9e0
saveargaddr = 0x0
savemac = {shp = 0x7a23a0, sp = 0x0, arghead = 0x0, ifsp =
0x7f1e58608500 " \t\n", fields = 0, quoted = 0, ifs = 32 ' ', atmode = 0
'\000', quote = 0 '\000', lit = 0 '\000',
split = 0 '\000', pattern = 0 '\000', patfound = 0 '\000', assign = 2
'\002', arith = 0 '\000', let = 0 '\000', zeros = 0 '\000', arrayok = 0 '\000',
subcopy = 0 '\000', dotdot = 0,
nvwalk = 0x0}
stkp = 0x79e160
#6 0x00000000004945ac in arg_expand (shp=0x7a23a0, argp=0x0,
argchain=0x7fff88d90800, flag=0) at sh/args.c:864
ap = 0x0
count = 0
#7 0x00000000004940e2 in sh_argbuild (shp=0x7a23a0, nargs=0x7fff88d9089c,
comptr=0x7f1e585ec780, flag=0) at sh/args.c:728
ac = 0x1
n = 1
argp = 0x7f1e585ec7c0
arghead = 0x7f1e585ec760
#8 0x000000000046936c in sh_exec (t=0x7f1e585ec780, flags=5) at sh/xec.c:1029
argp = 0x7fff88d919b0
np = 0x0
io = 0x0
command = 0
flgs = 512
trap = 0x0
nq = 0x0
last_table = 0x0
com = 0x0
argn = 1
skipexitset = 0
was_errexit = 4
errorflg = 4
mainloop = 0
cp = 0x0
comn = 0x0
type = 16
execflg2 = 0
ntflag = 0
topfd = 0
com0 = 0x0
execflg = 1
sav = 0x7f1e585ec7f0 "/usr/lib64/qt-3."
was_interactive = 0
was_monitor = 0
echeck = 0
shp = 0x7a23a0
stkp = 0x79e160
unpipe = 0
#9 0x0000000000463d2c in sh_subshell (shp=0x7a23a0, t=0x7f1e585ec780, flags=5,
comsub=1) at sh/subshell.c:625
sub_data = {shp = 0x7a23a0, prev = 0x0, pipe = 0x7fff88d90f80, var =
0x7f1e5860dfd0, svar = 0x0, sfun = 0x0, salias = 0x0, pathlist =
0x7f1e585f7940, errcontext = 0x7fff88d91210,
options = {v = {145135538012161, 0, 0, 0}}, subpid = 0, saveout =
0x7f1e585f7db0, pwd = 0x0, shpwd = 0x0, jobs = 0x7f1e5860cfd0, pwdfd = 10, mask
= 2, tmpfd = -1, pipefd = -1,
jobcontrol = 0 '\000', monitor = 0 '\000', fdstatus = 50 '2', fdsaved
= 0, sig = 0, bckpid = 0, cpid = 0, coutpipe = -1, cpipe = 0, nofork = 1,
subdup = 0, subshare = 0 '\000',
comsub = 0 '\000', pwdclose = 1 '\001', coshell = 0x0}
sp = 0x7fff88d90f80
jmpval = 0
nsig = 0
duped = 0
savecurenv = 0
savejobpgid = 0
saveexitval = 0x0
subshell = 1
savsig = 0x7a2c82 "\001"
iop = 0x7f1e585f7e70
buff = {buff = {{__jmpbuf = {40, -2020664252366609923, 139768308352896,
0, 0, 0, -2020664251448057347, 2020490810131194365}, __mask_was_saved = 0,
__saved_mask = {__val = {
139768308488832, 40, 41, 140735489315264, 4535088, 7987552,
139768308488832, 40, 41, 140735489315328, 4534726, 23770763776,
139768308488832, 0, 40, 0}}}},
prev = 0x7fff88d928d0, topfd = 0, mode = 9, olist = 0x0, err =
{context = 0x0, errors = 0, flags = 1, line = 1, warnings = 0, file = 0x0, id =
0x7f1e5860cf10 "ksh"}}
savst = {prevst = 0x0, dolc = 0, dolv = 0x7fff88d92c48, cmdname =
0x7f1e5860cf10 "ksh", filename = 0x0, funname = 0x0, lineno = 0, save_tree =
0x0, self = 0x7a26b8, var_local = 0x0,
staklist = 0x0, states = 4, breakcnt = 0, execbrk = 0, loopcnt = 0,
firstline = 0, optindex = 1, optnum = 0, tmout = 0, optchar = 0, opterror = 0,
ioset = 0, trapmax = 0, trap = {
0x0, 0x0, 0x0, 0x0, 0x0}, otrap = 0x0, trapcom = 0x7f1e585ec080,
otrapcom = 0x0, timetrap = 0x0, real_fun = 0x0}
argsav = 0x0
argcnt = 7987552
#10 0x00000000004422fd in comsubst (mp=0x7f1e5860d9e0, t=0x7f1e585ec780,
type=1) at sh/macro.c:2135
num = <invalid float value>
c = 40
str = 0x7f1e585ec780 "\020"
sp = 0x0
stkp = 0x79e160
save = {_fcfile = 0x0, fcbuff = 0x7f1e585ec6c1 "FOO=$(/bin/echo
$(/bin/echo \"bar\") )", fclast = 0x0, fcptr = 0x7f1e585ec6e5 "", fcchar = 0
'\000', fclen = 1,
fcfun = 0x433f51 <lex_advance>, context = 0x7f1e5860da80, fcleft = 0,
fcoff = 0}
saveslp = 0x0
savemac = {shp = 0x7a23a0, sp = 0x0, arghead = 0x0, ifsp =
0x7f1e58608500 " \t\n", fields = 0, quoted = 0, ifs = 32 ' ', atmode = 0
'\000', quote = 0 '\000', lit = 0 '\000',
split = 0 '\000', pattern = 0 '\000', patfound = 0 '\000', assign = 2
'\002', arith = 0 '\000', let = 0 '\000', zeros = 0 '\000', arrayok = 0 '\000',
subcopy = 0 '\000', dotdot = 0,
nvwalk = 0x0}
savtop = 4
lastc = 0 '\000'
savptr = 0x7f1e585ec750 "FOO="
was_history = 0
was_verbose = 0
was_interactive = 0
newlines = 1482739232
bufsize = 32542
nextnewlines = 32542
foff = 0
np = 0x7f1e585f8940
#11 0x000000000043e2a9 in varsub (mp=0x7f1e5860d9e0) at sh/macro.c:1168
c = 40
type = 0
v = 0x0
argp = 0x0
np = 0x0
dolg = 0
mode = 0
lp = 0x7f1e5860da80
ap = 0x0
dolmax = 0
vsize = -1
offset = -1
nulflg = 0
replen = 0
bysub = 0
idbuff = "\000\000"
id = 0x7fff88d91500 ""
pattern = 0x0
repstr = 0x0
arrmax = 0x0
idx = 0x0
var = 1
addsub = 0
oldpat = 0
idnum = 0
flag = 0
d = 0
stkp = 0x79e160
#12 0x000000000043ca1a in copyto (mp=0x7f1e5860d9e0, endch=0, newquote=0) at
sh/macro.c:633
c = 0
n = 40
state = 0x54a500 "\002"
cp = 0x7f1e585ec6c6 "(/bin/echo $(/bin/echo \"bar\") )"
first = 0x7f1e585ec6c6 "(/bin/echo $(/bin/echo \"bar\") )"
lp = 0x7f1e5860da80
tilde = -1
oldquote = 0
ansi_c = 0
paren = 0
ere = 0
brace = 0
sp = 0x0
stkp = 0x79e160
resume = 0x0
#13 0x000000000043afb2 in sh_mactrim (shp=0x7a23a0, str=0x7f1e585ec6c1
"FOO=$(/bin/echo $(/bin/echo \"bar\") )", mode=-1)
at sh/macro.c:183
mp = 0x7f1e5860d9e0
stkp = 0x79e160
savemac = {shp = 0x7a23a0, sp = 0x0, arghead = 0x0, ifsp = 0x0, fields
= 0, quoted = 0, ifs = 0 '\000', atmode = 0 '\000', quote = 0 '\000', lit = 0
'\000', split = 0 '\000',
pattern = 0 '\000', patfound = 0 '\000', assign = 0 '\000', arith = 0
'\000', let = 0 '\000', zeros = 0 '\000', arrayok = 0 '\000', subcopy = 0
'\000', dotdot = 0, nvwalk = 0x0}
#14 0x00000000004447fd in nv_setlist (arg=0x7f1e585ec6b0, flags=131584,
typ=0x0) at sh/name.c:339
shp = 0x7a23a0
cp = 0x7fff88d92c30 "\003"
np = 0x7a23a0
mp = 0x0
trap = 0x0
prefix = 0x0
traceon = 0
array = 0
ap = 0x7f1e5860de90
node = {nvlink = {right = 0x7fff88d91af0, hl = {_hash = 5162649, _left
= 0x4ec699}}, nvname = 0x7f1e5860dd80 "`P`X\036\177", nvflag = 65504, pad1 =
121, nvsize = 0,
nvfun = 0x88d91b40, nvalue = {cp = 0x7f1e585ec6f0 "", ip =
0x7f1e585ec6f0, c = -16 '\360', i = 1482606320, u = 1482606320, lp =
0x7f1e585ec6f0, llp = 0x7f1e585ec6f0, s = -14608,
sp = 0x7f1e585ec6f0, dp = 0x7f1e585ec6f0, ldp = 0x7f1e585ec6f0,
array = 0x7f1e585ec6f0, np = 0x7f1e585ec6f0, up = 0x7f1e585ec6f0, rp =
0x7f1e585ec6f0, funp = 0x7f1e585ec6f0,
nrp = 0x7f1e585ec6f0, bfp = 0x7f1e585ec6f0}, nvenv = 0x7fff88d91bac
""}
nr = {np = 0x7fff88d91af0, table = 0x2, root = 0x7f1e5860de90, sub =
0x0, curi = 0, dim = 0 '\000'}
maketype = 0
shtp = {previous = 0x7fff88d91aa0, nodes = 0x2004ec699, rp = 0x79ffe0,
numnodes = -8560, maxnodes = 22624}
#15 0x0000000000469dd7 in sh_exec (t=0x7f1e585ec6f0, flags=5) at sh/xec.c:1210
tp = 0x0
argp = 0x7f1e585ec6b0
np = 0x0
io = 0x0
command = 0
flgs = 131584
trap = 0x0
nq = 0x0
last_table = 0x0
com = 0x7a3440
argn = 0
skipexitset = 0
was_errexit = 4
errorflg = 4
mainloop = 0
cp = 0x0
comn = 0x7f1e585ec661 "1"
type = 0
execflg2 = 0
ntflag = 0
topfd = 0
com0 = 0x0
execflg = 1
sav = 0x7f1e585ec750 "FOO="
was_interactive = 0
was_monitor = 0
echeck = 1
shp = 0x7a23a0
stkp = 0x79e160
unpipe = 0
#16 0x000000000046d71a in sh_exec (t=0x7f1e585ec6f0, flags=5) at sh/xec.c:2201
com = 0x0
argn = 0
skipexitset = 0
was_errexit = 4
errorflg = 4
mainloop = 32
cp = 0x0
comn = 0x20 <Address 0x20 out of bounds>
type = 3
execflg2 = 0
ntflag = 0
topfd = 0
com0 = 0x0
execflg = 1
sav = 0x7f1e585ec750 "FOO="
was_interactive = 0
was_monitor = 0
echeck = 0
shp = 0x7a23a0
stkp = 0x79e160
unpipe = 0
#17 0x00000000004082e0 in exfile ()
No symbol table info available.
#18 0x0000000000407719 in sh_main ()
No symbol table info available.
#19 0x0000000000406ae1 in main (argc=3, argv=0x7fff88d92c38) at sh/pmain.c:45
No locals.
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers