zsh-workers
 help / color / mirror / code / Atom feed
From: "Vin Shelton" <acs@alumni.princeton.edu>
To: "Zsh hackers list" <zsh-workers@sunsite.dk>
Subject: Core dump with latest CVS
Date: Thu, 14 Sep 2006 17:02:34 -0400	[thread overview]
Message-ID: <20a807210609141402v31714a98wab9b75ff7736327@mail.gmail.com> (raw)

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


             reply	other threads:[~2006-09-14 21:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14 21:02 Vin Shelton [this message]
2006-09-15  9:57 ` Peter Stephenson
2006-09-15 10:15   ` Peter Stephenson
2006-09-15 13:08   ` Peter Stephenson
2006-09-15 15:16     ` Bart Schaefer
2006-09-15 15:36       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20a807210609141402v31714a98wab9b75ff7736327@mail.gmail.com \
    --to=acs@alumni.princeton.edu \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).