zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Infinite loop (?) in "typeset"
Date: Sun, 19 Mar 2000 20:59:11 +0000	[thread overview]
Message-ID: <1000319205911.ZM17745@candle.brasslantern.com> (raw)

It seems to be trying to print out the body of the _normal function from
the $functions assoc, but I'm not quite sure.  It repeatedly executes

228         while (1) {
229             if (stack) {
230                 if (!(s = tstack))
232                 if (s->pop) {
237                 code = s->code;
238                 stack = 0;
239             } else {
243             switch (wc_code(code)) {
697                 stack = 1;
698                 break;

(gdb) where
#0  0x80a0bc4 in gettext2 (state=0xbfffefac) at ../../zsh-3.1.6/Src/text.c:229
#1  0x80a0a8a in getpermtext (prog=0x80e9ff8, c=0x80d52c8)
    at ../../zsh-3.1.6/Src/text.c:125
#2  0x40147a7a in scanfunctions (ht=0x80dda38, 
    func=0x808bb34 <printparamnode>, flags=8, dis=0)
    at ../../../zsh-3.1.6/Src/Modules/parameter.c:516
#3  0x40147aff in scanpmfunctions (ht=0x80dda38, 
    func=0x808bb34 <printparamnode>, flags=8)
    at ../../../zsh-3.1.6/Src/Modules/parameter.c:532
#4  0x806a770 in scanhashtable (ht=0x80dda38, sorted=0, flags1=0, 
    flags2=1048576, scanfunc=0x808bb34 <printparamnode>, scanflags=8)
    at ../../zsh-3.1.6/Src/hashtable.c:367
#5  0x808bf86 in printparamnode (hn=0x80c81a0, printflags=2)
    at ../../zsh-3.1.6/Src/params.c:3116
#6  0x806a8b0 in scanhashtable (ht=0x80c7438, sorted=1, flags1=0, flags2=0, 
    scanfunc=0x808bb34 <printparamnode>, scanflags=2)
    at ../../zsh-3.1.6/Src/hashtable.c:388
#7  0x80547b3 in bin_typeset (name=0x400e4980 "typeset", argv=0xbffff48c, 
    ops=0xbffff4ec "", func=0) at ../../zsh-3.1.6/Src/builtin.c:1853
#8  0x805165d in execbuiltin (args=0x400e4968, bn=0x80b1328)
    at ../../zsh-3.1.6/Src/builtin.c:368
#9  0x806140a in execcmd (state=0xbffff7a0, input=0, output=0, how=18, last1=2)
    at ../../zsh-3.1.6/Src/exec.c:2253
#10 0x805e20b in execpline2 (state=0xbffff7a0, pcode=8771, how=18, input=0, 
    output=0, last1=0) at ../../zsh-3.1.6/Src/exec.c:1179
#11 0x805d79b in execpline (state=0xbffff7a0, slcode=3074, how=18, last1=0)
    at ../../zsh-3.1.6/Src/exec.c:972
#12 0x805d199 in execlist (state=0xbffff7a0, dont_change_job=0, exiting=0)
    at ../../zsh-3.1.6/Src/exec.c:819
#13 0x805ce9b in execode (p=0x400e4928, dont_change_job=0, exiting=0)
    at ../../zsh-3.1.6/Src/exec.c:725
#14 0x807037a in loop (toplevel=1, justonce=0)
    at ../../zsh-3.1.6/Src/init.c:150
#15 0x8050c50 in main (argc=2, argv=0xbffff81c)
    at ../../zsh-3.1.6/Src/main.c:86

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


             reply	other threads:[~2000-03-19 20:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-19 20:59 Bart Schaefer [this message]
2000-03-20 10:56 Sven Wischnowsky
2000-03-20 18:17 ` Bart Schaefer

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=1000319205911.ZM17745@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.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).