zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: [BUG] some zsh completion fail in some cases if more than 9 jobs
Date: Tue, 11 Nov 2003 19:55:33 +0000	[thread overview]
Message-ID: <7494.1068580533@csr.com> (raw)
In-Reply-To: "Felix Rosencrantz"'s message of "Wed, 05 Nov 2003 07:15:51 PST." <20031105151551.56421.qmail@web10409.mail.yahoo.com>

Felix Rosencrantz wrote:
> I reported that I would double the value of MAXJOBS in my builds,
> which helped me.   Though it might be nice to have a more dynamic solution.

I've been looking at this.  The big problem is the possibility that
something in the shell is holding onto a pointer to a job struct when
you reallocate the job table.  I can get around this when freeing up by
relegating this to the top level.  However, when we need to expand the
table we are deep down inside the shell before we have any inkling that
this is nececessary.

It looks like we might get a way with it, since the only point where we
inititialiase a new job is at the top of execpline(), where it's
benign.  However, I'm not at all sure we can guarantee the state of
functions lower down the call stack (where the current function is at the
top) at that point.  This might take a lot of investigation.  Doing it
comprehensively would be hell, but maybe putting in debug tests will be
sufficient.

Doubling MAXJOB to 100 is much easier.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


  reply	other threads:[~2003-11-11 19:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-05 14:34 Oliver Kiddle
2003-11-05 15:15 ` Felix Rosencrantz
2003-11-11 19:55   ` Peter Stephenson [this message]
2003-11-12 14:02     ` 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=7494.1068580533@csr.com \
    --to=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).