From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: zsh-3.1.9-dev-6 crashes occassionally
Date: Mon, 30 Oct 2000 11:10:14 +0100 [thread overview]
Message-ID: <20001030111014.A32725@picard.franken.de> (raw)
In-Reply-To: <200010300832.JAA18859@beta.informatik.hu-berlin.de>; from wischnow@informatik.hu-berlin.de on Mon, Oct 30, 2000 at 09:32:00AM +0100
[-- Attachment #1: Type: text/plain, Size: 3063 bytes --]
On Mon, Oct 30, 2000 at 09:32:00AM +0100,
Sven Wischnowsky <wischnow@informatik.hu-berlin.de> wrote:
> Thomas Koehler wrote:
>
> > Hi there,
> > I have the following problem with zsh-3.1.9-dev-6 on Debian GNU/Linux
> > for i386:
> > Sometimes, while trying to complete, zsh crashes and dumps core. In
> > fact, the problem has been there for quite a while now, perhaps it has
> > been there since the new completions system has been introduced - I
> > don't know. The problem is: I can't reproduce the bug. It just happens
> > to occur every once in a while.
> > Well, this is not the only problem: Sometimes, zsh forgets its
> > completion settings. I use this line in my .zshrc:
> > zstyle ':completion:*' completer _complete _ignored _match _correct _approx=
> > imate _prefix
> > Now, sometimes, for some strange reason, zsh forgets to complete on tab
> > and starts to _correct things right away: For example, I had a directory
> > "abcdef" and a directory "abx" and typed "cd abc<TAB>" which resulted in
> > "cd abx".
>
> Thomas sent me his .zshrc, I tried, but couldn't reproduce it. But I
> think I know where it comes from and why I never could reproduce it
> (he reported it already quite some time ago, I think; or something
> similar?).
Yes, I reported this a while ago.
> Thomas uses a trap handler for the ALRM signal and with TMOUT=1 to
> update his prompt. The trap handler uses several local parameters.
> Since zsh invokes (shell-code) trap handler asynchronously from the
> signal handler, this could easily mess up the parameter table if the
> signal comes at a time when the completion code is playing with the
> parameter table itself.
Ugh.
Would it help if I'd change my signal handler not to use local
parameters?
> We talked about this several times already. We either need to protect
> parts of the code (blocking signals there) or we should make the
> signal handlers do as little as possible, setting only some flags or
> something like that and call the trap handler shell-code somewhere
> else where it can be called savely. We `decided' to use the second
> solution, I think (and the first one is expensive and we have to find
> all the right places and...).
>
> We could also use a mixture: a global flag that tells the signal code
> that it's save to invoke the trap handler right away but normally it
> would only make them be called later. That flag could be set when zsh
> is waiting for an external command, reading somethin or whatever.
> (This could be a good reason to finally write a function that is
> called everywhere zsh waits for something. And then we could allow
> modules to hook into it or something.)
Sounds like a nice idea.
> Bye
> Sven
CU,
Thomas
--
Thomas Köhler Email: jean-luc@picard.franken.de | LCARS - Linux
<>< WWW: http://jeanluc-picard.de | for Computers
IRC: jeanluc | on All Real
PGP public key available from Homepage! | Starships
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2000-10-30 10:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-30 8:32 Sven Wischnowsky
2000-10-30 9:56 ` Peter Stephenson
2000-10-30 10:10 ` Thomas Köhler [this message]
2000-10-30 16:18 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
2000-11-08 10:54 Sven Wischnowsky
2000-11-08 9:41 Sven Wischnowsky
2000-11-08 10:33 ` Thomas Köhler
2000-11-01 9:41 Sven Wischnowsky
2000-11-03 15:42 ` Bart Schaefer
2000-11-05 17:55 ` Thomas Köhler
2000-10-31 15:42 Sven Wischnowsky
2000-10-31 13:19 Sven Wischnowsky
2000-10-31 13:51 ` Peter Stephenson
2000-10-31 14:01 ` Sven Wischnowsky
2000-10-31 15:25 ` Bart Schaefer
2000-10-31 15:43 ` Andrej Borsenkow
2000-10-30 10:25 Sven Wischnowsky
2000-10-24 7:53 Sven Wischnowsky
2000-10-23 13:04 Sven Wischnowsky
2000-10-23 15:12 ` Thomas Köhler
2000-10-21 12:34 Thomas Köhler
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=20001030111014.A32725@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=zsh-workers@sunsite.auc.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).