Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unset IFS - zsh: segmentation fault (core dumped) zsh
- X-seq: zsh-workers 26974
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: unset IFS - zsh: segmentation fault (core dumped) zsh
- Date: Tue, 19 May 2009 19:16:32 -0700
- In-reply-to: <20090519195114.17059.qmail@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090518113402.12840.qmail@xxxxxxxxxxx> <20090518125753.1931c23d@news01> <20090519110848.12650.qmail@xxxxxxxxxxx> <200905191139.n4JBdQU8004448@xxxxxxxxxxxxxx> <20090519195114.17059.qmail@xxxxxxxxxxx>
On May 20, 7:51am, Atom Smasher wrote:
} Subject: Re: unset IFS - zsh: segmentation fault (core dumped) zsh
}
} On Tue, 19 May 2009, Peter Stephenson wrote:
}
} > Unfortunately, we don't know what's in $PR_STUFF[FILLBAR], and other
} > forms don't crash, so this doesn't help.
}
} print ${(V)PR_STUFF[FILLBAR]} | base64
} JHsocjo0ODo6cTopfXUlYiV7XltbMzg7NTsxNDdtJX0le15PJX0le15PJX0lRHslSDolTX0g
} JXteW1szODs1OzYybSV9QXVja2xhbmQle15OJX0le15bWzM4OzU7MjMxbSV9dHUle15PJX0l
} e15bWzM4OzU7NDBtJX0wLjE3LCAwLjI1LCAwLjIxJXteTiV9JXteW1szODs1OzIzMW0lfXR1
} JHtQUl9TVFVGRltCR19MSUdIVF9CTFVFXX0ke1BSX1NUVUZGW1dISVRFXX1BQyAxMDAlJSR7
} UFJfU1RVRkZbTk9fQ09MT1VSXX0le15bWzM4OzU7MjMxbSV9JXteW1swbSV9JXteW1szODs1
} OzIzMW0lfXQK
Indeed:
torch% perl -MMIME::Base64 -e 'print decode_base64("JHsocjo0ODo6cTopfXUlYiV7XltbMzg7NTsxNDdtJX0le15PJX0le15PJX0lRHslSDolTX0g
JXteW1szODs1OzYybSV9QXVja2xhbmQle15OJX0le15bWzM4OzU7MjMxbSV9dHUle15PJX0l
e15bWzM4OzU7NDBtJX0wLjE3LCAwLjI1LCAwLjIxJXteTiV9JXteW1szODs1OzIzMW0lfXR1
JHtQUl9TVFVGRltCR19MSUdIVF9CTFVFXX0ke1BSX1NUVUZGW1dISVRFXX1BQyAxMDAlJSR7
UFJfU1RVRkZbTk9fQ09MT1VSXX0le15bWzM4OzU7MjMxbSV9JXteW1swbSV9JXteW1szODs1
OzIzMW0lfXQK")' | read X
torch% unset IFS; print -- ${(e)X}
Program received signal SIGSEGV, Segmentation fault.
0x080b513e in dopadding (str=0xb7cbea80 "", prenum=0, postnum=48, preone=0x0,
postone=0x0, premul=0x8146da5 " ", postmul=0xb7cbea78 "q", multi_width=0)
at ../../zsh-4.0/Src/subst.c:717
717 if (*ifs)
(gdb) p ifs
$1 = 0x0
This hardly needs any more context, but:
(gdb) where
#0 0x080b513e in dopadding (str=0xb7cbea80 "", prenum=0, postnum=48,
preone=0x0, postone=0x0, premul=0x8146da5 " ", postmul=0xb7cbea78 "q",
multi_width=0) at ../../zsh-4.0/Src/subst.c:717
#1 0x080b9f6f in paramsubst (l=0xb7cbe6b8, n=0xb7cbe6dc, str=0xbfe56638,
qt=0, ssub=0) at ../../zsh-4.0/Src/subst.c:3144
#2 0x080b404e in stringsubst (list=0xb7cbe6b8, node=0xb7cbe6dc, ssub=0,
asssub=0) at ../../zsh-4.0/Src/subst.c:214
#3 0x080b384a in prefork (list=0xb7cbe6b8, flags=0)
at ../../zsh-4.0/Src/subst.c:77
#4 0x080659b6 in execcmd (state=0xbfe56f10, input=0, output=0, how=18,
last1=2) at ../../zsh-4.0/Src/exec.c:2424
#5 0x0806398d in execpline2 (state=0xbfe56f10, pcode=1795, how=18, input=0,
output=0, last1=0) at ../../zsh-4.0/Src/exec.c:1561
#6 0x08062d8e in execpline (state=0xbfe56f10, slcode=5122, how=18, last1=0)
at ../../zsh-4.0/Src/exec.c:1347
#7 0x080626ec in execlist (state=0xbfe56f10, dont_change_job=0, exiting=0)
at ../../zsh-4.0/Src/exec.c:1144
#8 0x080621b7 in execode (p=0xb7cbe5c0, dont_change_job=0, exiting=0)
at ../../zsh-4.0/Src/exec.c:975
#9 0x0807b2b6 in loop (toplevel=1, justonce=0) at ../../zsh-4.0/Src/init.c:183
#10 0x0807e019 in zsh_main (argc=1, argv=0xbfe57054)
at ../../zsh-4.0/Src/init.c:1409
#11 0x0804cbea in main (argc=1, argv=0xbfe57054) at ../../zsh-4.0/Src/main.c:93
Messages sorted by:
Reverse Date,
Date,
Thread,
Author