From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23194: Benign error in installation image: "stty: standard input: Input/output error" Date: Mon, 04 Apr 2016 16:50:40 +0200 Message-ID: <87fuv1ctrz.fsf@gnu.org> References: <87lh4v7m5c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an5qO-0007Q3-0z for bug-guix@gnu.org; Mon, 04 Apr 2016 10:51:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an5qI-0007OX-9p for bug-guix@gnu.org; Mon, 04 Apr 2016 10:51:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an5qI-0007OS-6n for bug-guix@gnu.org; Mon, 04 Apr 2016 10:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1an5qI-0003Kd-1m for bug-guix@gnu.org; Mon, 04 Apr 2016 10:51:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87lh4v7m5c.fsf@gmail.com> (Chris Marusich's message of "Sat, 02 Apr 2016 14:09:51 -0700") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Chris Marusich Cc: 23194@debbugs.gnu.org Chris Marusich skribis: > In the installation image for GuixSD v0.10.0, I get some I/O errors on > the terminal just before/during/after the MOTD is displayed: > > "stty: standard input: Input/output error" These appear to come from the =E2=80=98unicode_start=E2=80=99 command, run = by the =E2=80=98console-font=E2=80=99 services. =E2=80=98unicode_start=E2=80=99 i= s a shell script in the =E2=80=98kbd=E2=80=99 package that does: stty iutf8 In a =E2=80=98guix system vm gnu/system/install.scm=E2=80=99 VM in current = master, I sometimes get a different message: unicode_start skipped on not a tty The =E2=80=9Cnot a tty=E2=80=9D string comes from the =E2=80=98tty=E2=80=99= command (Coreutils). We get it when: ttyname (STDIN_FILENO); returns NULL; this can happen if =E2=80=98tcgetattr=E2=80=99 returns NULL (= see ttyname.c in libc.) The =E2=80=98stty=E2=80=99 error you mention also happens when =E2=80=98tcg= etattr=E2=80=99 fails and returns EIO (stty.c in Coreutils): --8<---------------cut here---------------start------------->8--- device_name =3D _("standard input"); if (tcgetattr (STDIN_FILENO, &mode)) error (EXIT_FAILURE, errno, "%s", device_name); --8<---------------cut here---------------end--------------->8--- =E2=80=98tcgetattr=E2=80=99 is actually an alias for the TCGETS ioctl. Loo= king at the kernel, I don=E2=80=99t see under what circumstances we can get EIO. That=E2=80=99s all I have for now! Thanks for your report. Ludo=E2=80=99.