Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh4.0.1-pre4 : backticks fail if SHLVL nonexistant
- X-seq: zsh-workers 14383
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list), Richard Curnow <Richard.Curnow@xxxxxx>
- Subject: Re: zsh4.0.1-pre4 : backticks fail if SHLVL nonexistant
- Date: Fri, 18 May 2001 14:24:19 +0100
- In-reply-to: Your message of "Fri, 18 May 2001 13:30:31 BST." <20010518133031.E6141@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
> I've downloaded and built zsh4.0.1-pre4. I was finding that any attempt
> to use backtick-substitution was resulting in a core dump. I rebuilt
> with -g and tracked it down to a null pointer 'pm' in setiparam, for an
> attempt to set SHLVL from line 2316 of exec.c. Unfortunately, I had
> SHLVL being unset by a line in my .zshenv. (In order to reduce the
> environment to a clean initial state before adding new defintions, I
> unset everything except for a defined list of variables at the start of
> .zshenv. Previously, SHLVL wasn't one ofthem. It worked OK with zsh
> v3.1.5).
I can reproduce such a crash reliably with:
% unset SHLVL
% (( SHLVL-- ))
BUG: parameter not created
zsh: segmentation fault (core dumped) ./zsh
This probably doesn't involve the line in exec.c, but it's almost certainly
the same root, so it'll give something to work on. (The BUG message only
appears if configured with --enable-zsh-debug.)
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author