zsh-workers
 help / color / mirror / code / Atom feed
From: John <da_audiophile@yahoo.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Bug: ZSH crashes upon receiving SIGINT
Date: Mon, 9 Mar 2015 17:46:43 +0000 (UTC)	[thread overview]
Message-ID: <262321015.1750177.1425923203098.JavaMail.yahoo@mail.yahoo.com> (raw)

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


             reply	other threads:[~2015-03-09 17:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-09 17:46 John [this message]
2015-03-10 10:46 ` Peter Stephenson
2015-03-10 11:16   ` Peter Stephenson
2015-03-10 22:06   ` John
2015-03-11  0:43     ` Bart Schaefer
2015-03-11  9:44       ` Peter Stephenson
2015-03-11 19:55         ` Peter Stephenson
2015-03-11 18:38       ` John
2015-03-11 20:09         ` Peter Stephenson
2015-03-11 23:23           ` John
2015-03-11 23:31             ` Bart Schaefer
2015-03-11 23:47               ` John
2015-03-12  5:11                 ` Andrew Janke
2015-03-12 19:06                   ` John
2015-03-12 19:58                 ` Peter Stephenson
2015-03-13  4:00                   ` Bart Schaefer
2015-03-13  6:44       ` Han Pingtian

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=262321015.1750177.1425923203098.JavaMail.yahoo@mail.yahoo.com \
    --to=da_audiophile@yahoo.com \
    --cc=zsh-workers@zsh.org \
    /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).