Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug: ZSH crashes upon receiving SIGINT
- X-seq: zsh-workers 34691
- From: John <da_audiophile@xxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Bug: ZSH crashes upon receiving SIGINT
- Date: Mon, 9 Mar 2015 17:46:43 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1425923209; bh=oiJbuwqbkH02ckOL3W45S5FqzaVuQvF6myhAvrEUrb4=; h=Date:From:Reply-To:To:Subject:From:Subject; b=Y1XVrc/u7fKmPIm3ycfIuJB4mR+VZ5QZp4WN1Depd2IIOfUEEJqGKFnEJ4B9bxwb8HW7YHN/A01ZY1TT0zs/w83f43UPr0svfBsJ/Crc9lti8oZDrJKLKdSqZyJSockd0Dg6V3zY6LQ2g/fbFqM+jVbOYLgYdqbjh1CMya/FH9c7v7r6RL1Tnh2+OU+PEj1I8n2TSDGhpUd1x8zjYdGvfZmurh7tO1KC+XBQe4DLy3Qbhwi2NcdI6oPPCRC1hCKdx2xvlOSy9m4tdX1Pu+sZwY6WtA4UM1rpdfRhG4D6+kUPigAEw1rMUBFHaheUaAd/0MCSjotCH9nhYeHTLGROtw==
- 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
- Reply-to: John <da_audiophile@xxxxxxxxx>
Background: Arch Linux[1] has a bash script used for installing the distro and or fixing a broken distro which is shipped with the live CD called 'arch-chroot.'
Bug: ZSH is not capable of defending itself against SIGINT and crashes from within a chroot. No other shell tested (
mksh, bash, dash, fish, and tcsh) seems to suffer from this deficiency. In a recent bug report[2], the Arch devs believe this bug to be contained within ZSH, not within their code.
How to trigger the bug:
1) Mount an Arch partition and install 'zsh' within it
2) Execute the chroot command from another Arch env: arch-chroot /mnt/mini /bin/zsh
3) Hit ctrl+c in the chroot
Example of the bug:
# arch-chroot /mnt/mini /bin/zsh
#
<<hit ctrl-c>>
# umount: /mnt/mini/dev/pts: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
umount: /mnt/mini/dev: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
%
zsh: error on TTY read: Input/output error
Thank you for the time and I am glad to provide additional info or testing.
PLEASE CC ME ON ANY REPLY AS I AM NOT SUBSCRIBED TO THIS ML.
1. https://www.archlinux.org
2. https://bugs.archlinux.org/task/44073
Messages sorted by:
Reverse Date,
Date,
Thread,
Author