Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: ZSH crashes upon receiving SIGINT
- X-seq: zsh-workers 34699
- From: John <da_audiophile@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: Bug: ZSH crashes upon receiving SIGINT
- Date: Wed, 11 Mar 2015 18:38:18 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1426099099; bh=KI2gtxLI2xC8MTBlbTuXiKZFOpLrvkFS2F8jJafrCW8=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=rfecBmFgz7YG18AQWu+nRr0Ewyo/1EuqXP/MqMMYL23aOxVeSazM1okSc68ASi3YkxpR3gE4JHQS+CGNcvWvDl4ah495mWvgzXFTmO2a7MGXIQe3WI5c12KusUpoi5XYk7VvjFuvYHy/TVdm/WeOTnW2tT6f+C1e6VeD2xBR5u2BArKGOvu23KZqjQG1v6G1dgjtjnRG1vqp/Wt0FFUfnVJbg1ZemoAIdQvTCJokUMAALYzyTYuUK3zJ23COgHpk04DQje9ku1WvAAQ+nmpSjRJC06i0m9zLEPjQTI1sn20i0HkWMhfLRnHA/T1d72l658e8B9EAQ2NRKXpdIbLRBA==
- In-reply-to: <150310174327.ZM13990@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <150310174327.ZM13990@torch.brasslantern.com>
- Reply-to: John <da_audiophile@xxxxxxxxx>
> I took at look at this script. The "unmount" is coming from the
> exit trap of the bash process that starts the whole thing off.
>
> So I *think* what's happening is:
>
> Bash starts "unshare" which becomes the TTY process group leader.
>
> Unshare starts zsh which does not make itself the process group leader
> (see previous -workers list discussions of zsh executing inside PID
> namespaces, of which "unshare" creates one).
>
> The ^C therefore is delivered to "unshare" which exits, ending the
> bash script and executing the trap, which removes the tty device.
>
> This causes zsh to get I/O error and exit.
>
> It's *possible* that this is already "fixed" in development
> versions
> of zsh, though most of the PID namespace changes had to do with avoiding
> being process group leader rather than forcibily becoming so. It's also
> not clear that this is actually zsh's problem; it seems to me that the
> arch-chroot script and/or "unshare" are not doing things they should
> be.
Thank you for the reply. Not too sure that I can add anything intelligent to the discussion, but I can confirm that the latest zsh from git (5.0.7.336.ge85906e) does not fix this issue.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author