zsh-workers
 help / color / mirror / code / Atom feed
From: Dave Sainty <David.Sainty@Comp.VUW.AC.NZ>
To: zsh-workers@math.gatech.edu
Subject: BIG bug!
Date: Sun, 04 Jun 1995 19:25:53 +1200	[thread overview]
Message-ID: <199506040725.TAA26352@bats.comp.vuw.ac.nz> (raw)


This bug has a very weird effect that could cause a lot of strife! The
effect appears to be that at the end of .'ing a script (including
login scripts), zsh is likely to jump back into the middle of the
script and start again! This causes infinite loops, or weird errors
with no apparent cause (I could not see where the unmatched " was,
because my login script was being jumped into halfway through a line
with a " near the start!)

At the end of the letter is a uuencoded/gzipped script that will show
the bug if "zsh -f script-name"'d. It is my login script with
everything removed that doesn't affect the bug. Also, the exact size
of the file is vital, which is why I'm mailing it as binary. It has a
"return" statement strategically placed in the middle of the script,
that xtrace shows is executed at the end of the script! Magic! :-)
This is visible on Solaris and Alpha/OSF boxes at any rate.

This is new since beta 8. In fact, it seems to be Peter Stephenson's
fault, if I may point the finger... ;-) The fault appears after
applying patch 6160 to exec.c (In which a typo was fixed also by patch
6197, but this does not solve the problem here).

This code does very little new, simply exiting under certain
conditions, so there must be a logic problem in the condition it exits
on. But I don't have a clue what is going on in this code, so I'll
leave it to someone who does. (Peter?)

And yeah.... That did take a lot of hunting! But I have so much work
to do, I was just looking for a reason to procrastinate! :-)

Dave.


             reply	other threads:[~1995-06-04  7:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-04  7:25 Dave Sainty [this message]
1995-06-05  9:33 ` P.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=199506040725.TAA26352@bats.comp.vuw.ac.nz \
    --to=david.sainty@comp.vuw.ac.nz \
    --cc=zsh-workers@math.gatech.edu \
    /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).