zsh-workers
 help / color / mirror / code / Atom feed
From: Dave Yost <Dave@Yost.com>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: zsh malloc bug
Date: Wed, 2 Jun 2004 11:21:20 -0700	[thread overview]
Message-ID: <pdy98830611045dbce3ca1d0698@[209.128.98.50]> (raw)
In-Reply-To: <200406020932.i529WIfO024138@news01.csr.com>

At 10:32 AM +0100 2004-06-02, Peter Stephenson wrote:
>Dave Yost wrote:
>> Z% echo $ZSH_VERSION
>> 4.1.1
>> Z% uname -a
>> Darwin ip2 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004; r
>> oot:xnu/xnu-517.7.7.obj~7/RELEASE_PPC  Power Macintosh powerpc
>
>Thanks for the report... could you try 4.2.0?  Traps have changed in
>various ways and this doesn't happen after a short test on my latest
>code.

zsh 4.2.0 hangs on my cygwin system when I try some of these scenarios.

BTW, the TRAPxxx documentation should be more explicit about whether trapping the event prevents exit and what happens if you exit explicitly from within the trap.

Thanks

Dave

==============================
#!/bin/zsh

reason=

TRAPINT() {
	#echo int
	reason=int
	exit 100
}

TRAPZERR() {
	#echo zerr
	reason=zerr
	exit 101 # is this necessary?
}

TRAPEXIT() {
	echo exit $reason
	# exit?
}

sleep $1

# Try ^C here sometimes.

echo after sleep

set -e

cp

echo after command


  reply	other threads:[~2004-06-02 23:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 18:01 Dave Yost
2004-06-02  9:32 ` Peter Stephenson
2004-06-02 18:21   ` Dave Yost [this message]
2004-06-08 13:20     ` Peter Stephenson
2004-06-08 18:09       ` RANDOMSMALL <range> [ <seed> ] Dave Yost
2004-06-08 21:20         ` Peter Stephenson
2004-06-08 21:51           ` PATCH: " Peter Stephenson
2004-06-08 21:55         ` Larry Bakst
2004-06-16 19:13       ` zsh malloc bug Dave Yost
2004-06-16 19:16 Dave Yost
2004-07-26 13:05 ` Peter Stephenson
2004-07-26 16:48   ` Bart Schaefer
2004-07-26 16:57     ` 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='pdy98830611045dbce3ca1d0698@[209.128.98.50]' \
    --to=dave@yost.com \
    --cc=pws@csr.com \
    --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).