From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Lethal option-related bug
Date: Mon, 29 Jul 1996 17:59:28 +0200 [thread overview]
Message-ID: <199607291559.RAA10028@hydra.ifh.de> (raw)
I just submitted a batch job for the first time with an unpatched
3.0-pre4 and it dumped core straight away. (I think the shell is
still yelling out `Don't release me! Don't release me!'.)
It turns out to be easy to reproduce:
./zsh -s
zsh: 7863 segmentation fault (core dumped) ./zsh -s
The backtrace is
#0 0x47d9b4 in inittyptab () at utils.c:2510
#1 0x47fed4 in dosetopt (optno=92, value=1, force=268534416) at utils.c:3330
#2 0x447094 in parseargs (argv=0x7fffaf48) at init.c:242
#3 0x4463f0 in main (argc=0, argv=0x7fffaf44) at init.c:60
and the problem is that ifs is null in inittyptab; possibly not too
surprising, since it gets initialised in setupvals(), which is called
a few lines after parseargs() in main(). It looks like SHINSTDIN
wants inittytab set up before the shell's set up enough for it.
I could probably hack round this, but I'm not confident of producing
the right fix, so I'll leave it.
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
next reply other threads:[~1996-07-29 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-29 15:59 Peter Stephenson [this message]
1996-07-29 18:03 ` Zoltan Hidvegi
1996-07-30 8:19 ` 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=199607291559.RAA10028@hydra.ifh.de \
--to=pws@ifh.de \
--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).