From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu
Subject: Re: allocation bug
Date: Wed, 04 Dec 1996 12:01:04 +0100 [thread overview]
Message-ID: <199612041101.MAA20376@hydra.ifh.de> (raw)
In-Reply-To: "Peter Stephenson"'s message of "Fri, 29 Nov 1996 13:43:59 MET." <199611291244.NAA18232@hydra.ifh.de>
I wrote:
> % echo | cat &
> [1] 20940 20941
> %
>
> [1] + 20940 done echo |
> 20941 done cat
> BUG: permanent allocation in getstrvalue
This comes from the REPORTTIME code. Presumably it showed up here
because the job exited and caused a SIGCHLD while zle was active.
Maybe there's more possible nastiness in code that can get called from
the signal handler?
*** Src/jobs.c~ Tue Nov 26 09:55:31 1996
--- Src/jobs.c Wed Dec 4 11:05:09 1996
***************
*** 654,666 ****
static long clktck = 0;
Value v;
char *s = "REPORTTIME";
! int reporttime;
/* if the time keyword was used */
if (j->stat & STAT_TIMED)
return 1;
! if (!(v = getvalue(&s, 0)) || (reporttime = getintvalue(v)) < 0)
return 0;
/* can this ever happen? */
--- 654,669 ----
static long clktck = 0;
Value v;
char *s = "REPORTTIME";
! int reporttime, itest;
/* if the time keyword was used */
if (j->stat & STAT_TIMED)
return 1;
! HEAPALLOC {
! itest = !(v = getvalue(&s, 0)) || (reporttime = getintvalue(v)) < 0;
! } LASTALLOC;
! if (itest)
return 0;
/* can this ever happen? */
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
next prev parent reply other threads:[~1996-12-04 11:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-29 12:43 Peter Stephenson
1996-12-04 11:01 ` Peter Stephenson [this message]
1996-12-04 21:13 ` Zoltan Hidvegi
1999-09-26 17:03 Allocation bug Peter Stephenson
1999-09-27 15:55 ` 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=199612041101.MAA20376@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).