Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Core dump with latest CVS



Peter,

I think your latest prompt/subst changes broke something.  Here's a recipe:

zsh -f
setopt NO_PROMPT_SP
autoload -U promptinit
promptinit
prompt bart

zsh: floating point exception (core dumped)
/usr/local/build/zsh-$(today)/Src/zsh -f


(gdb) bt
#0  0x080a718b in dopadding (str=0xb7ffc810 "", prenum=140, postnum=0,
preone=0x0, postone=0x0, premul=0xb7ffc808 "\b",
   postmul=0x80b8eaf " ") at /usr/local/src/zsh-2006-09-14/Src/subst.c:986
#1  0x080ab1e0 in paramsubst (l=0xb7ffc600, n=Variable "n" is not available.
) at /usr/local/src/zsh-2006-09-14/Src/subst.c:3141
#2  0x080a5969 in stringsubst (list=0xb7ffc600, node=0xb7ffc624,
ssub=0, asssub=0) at /usr/local/src/zsh-2006-09-14/Src/subst.c:156
#3  0x080a5457 in prefork (list=0xb7ffc600, flags=0) at
/usr/local/src/zsh-2006-09-14/Src/subst.c:91
#4  0x08066bb7 in execcmd (state=0xbff3ce38, input=0, output=0,
how=18, last1=2) at /usr/local/src/zsh-2006-09-14/Src/exec.c:1961
#5  0x08065669 in execpline2 (state=0xbff3ce38, pcode=1091, how=18,
input=0, output=0, last1=0)
   at /usr/local/src/zsh-2006-09-14/Src/exec.c:1301
#6  0x08064d79 in execpline (state=0xbff3ce38, slcode=140, how=18,
last1=0) at /usr/local/src/zsh-2006-09-14/Src/exec.c:1087
#7  0x080647c5 in execlist (state=0xbff3ce38, dont_change_job=1,
exiting=0) at /usr/local/src/zsh-2006-09-14/Src/exec.c:893
#8  0x08084a72 in execif (state=0xbff3ce38, do_exec=140) at
/usr/local/src/zsh-2006-09-14/Src/loop.c:520
#9  0x08068330 in execcmd (state=0xbff3ce38, input=0, output=0, how=2,
last1=2) at /usr/local/src/zsh-2006-09-14/Src/exec.c:2528
#10 0x08065669 in execpline2 (state=0xbff3ce38, pcode=835, how=2,
input=0, output=0, last1=0)
   at /usr/local/src/zsh-2006-09-14/Src/exec.c:1301
#11 0x08064d79 in execpline (state=0xbff3ce38, slcode=140, how=2,
last1=0) at /usr/local/src/zsh-2006-09-14/Src/exec.c:1087
#12 0x080647c5 in execlist (state=0xbff3ce38, dont_change_job=1,
exiting=0) at /usr/local/src/zsh-2006-09-14/Src/exec.c:893
#13 0x08064561 in execode (p=0x97f1f90, dont_change_job=140,
exiting=140) at /usr/local/src/zsh-2006-09-14/Src/exec.c:793
#14 0x0806afb0 in runshfunc (prog=0x97f1f90, wrap=0x0, name=0xb7ffc0b0
"prompt_bart_precmd")
   at /usr/local/src/zsh-2006-09-14/Src/exec.c:3905
#15 0x0806ad26 in doshfunc (name=0x98031c8 "prompt_bart_precmd",
prog=0x97f1f90, doshargs=0xb7ffc050, flags=0, noreturnval=0)
   at /usr/local/src/zsh-2006-09-14/Src/exec.c:3814
#16 0x0806a771 in execshfunc (shf=0x97fd3a0, args=0xb7ffc050) at
/usr/local/src/zsh-2006-09-14/Src/exec.c:3604
#17 0x080684c5 in execcmd (state=0xbff3d248, input=0, output=0,
how=18, last1=2) at /usr/local/src/zsh-2006-09-14/Src/exec.c:2576
#18 0x08065669 in execpline2 (state=0xbff3d248, pcode=195, how=18,
input=0, output=0, last1=0)
   at /usr/local/src/zsh-2006-09-14/Src/exec.c:1301
#19 0x08064d79 in execpline (state=0xbff3d248, slcode=140, how=18,
last1=0) at /usr/local/src/zsh-2006-09-14/Src/exec.c:1087
#20 0x080647c5 in execlist (state=0xbff3d248, dont_change_job=1,
exiting=0) at /usr/local/src/zsh-2006-09-14/Src/exec.c:893
#21 0x08064561 in execode (p=0x97f2080, dont_change_job=140,
exiting=140) at /usr/local/src/zsh-2006-09-14/Src/exec.c:793
#22 0x0806afb0 in runshfunc (prog=0x97f2080, wrap=0x0, name=0xb7ffc048
"precmd") at /usr/local/src/zsh-2006-09-14/Src/exec.c:3905
#23 0x0806ad26 in doshfunc (name=0x80bd22f "precmd", prog=0x97f2080,
doshargs=0x0, flags=0, noreturnval=1)
   at /usr/local/src/zsh-2006-09-14/Src/exec.c:3814
#24 0x080ae9ca in callhookfunc (name=0x80bd22f "precmd", lnklst=0x8c)
at /usr/local/src/zsh-2006-09-14/Src/utils.c:1094
#25 0x080aeadb in preprompt () at /usr/local/src/zsh-2006-09-14/Src/utils.c:1137
#26 0x0807875c in loop (toplevel=1, justonce=0) at
/usr/local/src/zsh-2006-09-14/Src/init.c:118
#27 0x0807af33 in zsh_main (argc=2, argv=0xbff3d724) at
/usr/local/src/zsh-2006-09-14/Src/init.c:1324
#28 0x08052d52 in main (argc=140, argv=0x8c) at
/usr/local/src/zsh-2006-09-14/Src/main.c:93
(gdb)

This is on a linux box at work.  uname -a reports

Linux cvs-srvr.aoainc.com 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005
i686 i686 i386 GNU/Linux

Sorry I don't currently have the time to look into this further right now.

 - Vin
--
Whoever you are, no matter how lonely,
the world offers itself to your imagination,
calls to you like the wild geese, harsh and exciting--
over and over announcing your place
in the family of things.			Mary Oliver



Messages sorted by: Reverse Date, Date, Thread, Author