From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3139 invoked from network); 4 Dec 1996 11:14:06 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 4 Dec 1996 11:14:06 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id GAA03183; Wed, 4 Dec 1996 06:00:21 -0500 (EST) Resent-Date: Wed, 4 Dec 1996 06:00:21 -0500 (EST) Message-Id: <199612041101.MAA20376@hydra.ifh.de> X-Authentication-Warning: hydra.ifh.de: Host pws@localhost didn't use HELO protocol To: zsh-workers@math.gatech.edu Subject: Re: allocation bug In-reply-to: "Peter Stephenson"'s message of "Fri, 29 Nov 1996 13:43:59 MET." <199611291244.NAA18232@hydra.ifh.de> Date: Wed, 04 Dec 1996 12:01:04 +0100 From: Peter Stephenson Resent-Message-ID: <"XKwqg2.0.dn.4dLfo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2534 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 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.