From: David Howells <dhowells@redhat.com>
To: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.cz>
Subject: Re: Strange intermittent EIO error when writing to stdout since v3.8.0
Date: Thu, 06 Jun 2013 18:31:01 +0100 [thread overview]
Message-ID: <12790.1370539861@warthog.procyon.org.uk> (raw)
In-Reply-To: <20130606115417.GA520@x4>
Markus Trippelsdorf <markus@trippelsdorf.de> wrote:
> OSError: [Errno 5] Input/output error
>
> Basically 'emerge' just writes the build output to stdout in a loop:
I've just upgraded to kernel-3.9.4-200.fc18.x86_64 and I'm now regularly
seeing something very similar from the tee run by "fedpkg local" to log its
output when building a cross-compiler gcc RPM:
tee: standard output: Input/output error
tee: write error
Slapping strace on tee after the "Input/output error" line has occurred shows
that tee is still running and still pushing lines from its stdin to the output
named on its command line, but has ceased writing to its stdout.
The stdout is (or was) a TTY that's either the communications channel to an
xterm or the channel to an emacs buffer. With the xterm, the process can be
suspended (CTRL+Z) stuff can be written to the tty and then the process can be
rstarted. Indeed, stderr for tee goes to the same tty - and must still be
functional otherwise I wouldn't see the aforementioned error messages...
In ps fax, the tee process can be seen at the bottom of the subtree:
5158 ? S 0:06 \_ /usr/bin/xterm
5198 pts/3 Ss+ 0:00 | \_ bash
5386 pts/3 Sl 4:50 | \_ emacs -geometry 100x77
10258 pts/8 SNs+ 0:00 | \_ /usr/bin/python /usr/bin/fedpkg local
10267 pts/8 SN+ 0:00 | \_ rpmbuild --define _sourcedir /dat
10462 pts/8 SN+ 0:00 | | \_ /bin/sh -e /var/tmp/rpm-tmp.x
16248 pts/8 SN+ 0:00 | | \_ make -j12
16249 pts/8 SN+ 0:00 | | \_ /bin/sh -c fail= fail
16253 pts/8 SN+ 0:00 | | \_ /bin/sh -c fail=
16254 pts/8 SN+ 0:00 | | \_ make all-am
16256 pts/8 SN+ 0:00 | | \_ /bin/sh -
16265 pts/8 SN+ 0:00 | | | \_ /bin/
16688 pts/8 SN+ 0:00 | | | \_ /
16700 pts/8 RN+ 0:00 | | |
16704 pts/8 SN+ 0:00 | | |
16267 pts/8 SN+ 0:00 | | \_ /bin/sh -
16279 pts/8 SN+ 0:00 | | | \_ /bin/
16694 pts/8 SN+ 0:00 | | | \_ /
16707 pts/8 RN+ 0:00 | | |
16713 pts/8 SN+ 0:00 | | |
16289 pts/8 SN+ 0:00 | | \_ /bin/sh -
16306 pts/8 SN+ 0:00 | | | \_ /bin/
17045 pts/8 SN+ 0:00 | | | \_ /
17046 pts/8 RN+ 0:00 | | |
17047 pts/8 SN+ 0:00 | | |
16799 pts/8 SN+ 0:00 | | \_ /bin/sh -
16801 pts/8 SN+ 0:00 | | | \_ /bin/
17051 pts/8 SN+ 0:00 | | | \_ /
17053 pts/8 RN+ 0:00 | | |
16819 pts/8 SN+ 0:00 | | \_ /bin/sh -
16822 pts/8 SN+ 0:00 | | | \_ /bin/
16943 pts/8 SN+ 0:00 | | | \_ /
16950 pts/8 RN+ 0:00 | | |
16951 pts/8 SN+ 0:00 | | |
16903 pts/8 SN+ 0:00 | | \_ /bin/sh -
16915 pts/8 SN+ 0:00 | | \_ /bin/
17024 pts/8 SN+ 0:00 | | \_ /
17026 pts/8 RN+ 0:00 | |
17028 pts/8 SN+ 0:00 | |
10268 pts/8 SN+ 0:00 | \_ tee .build-4.8.1-1.1.fc20.log
tee's fds look like:
warthog>ls -l /proc/10268/fd/
total 0
lr-x------. 1 dhowells dhowells 64 Jun 6 18:24 0 -> pipe:[1595614]
lrwx------. 1 dhowells dhowells 64 Jun 6 18:24 1 -> /dev/pts/8
lrwx------. 1 dhowells dhowells 64 Jun 6 18:23 2 -> /dev/pts/8
l-wx------. 1 dhowells dhowells 64 Jun 6 18:24 3 -> /data/fedora/cros
David
next prev parent reply other threads:[~2013-06-06 17:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 11:54 Markus Trippelsdorf
2013-06-06 14:18 ` Peter Hurley
2013-06-06 14:37 ` Markus Trippelsdorf
2013-06-07 15:39 ` Peter Hurley
2013-06-07 16:07 ` Markus Trippelsdorf
2013-06-07 18:22 ` Mikael Pettersson
2013-06-13 10:39 ` Markus Trippelsdorf
2013-06-13 14:16 ` Peter Hurley
2013-06-13 14:51 ` Markus Trippelsdorf
2013-06-13 15:25 ` [PATCH] tty: Debug EIO from write() Peter Hurley
2013-06-13 16:16 ` Markus Trippelsdorf
2013-06-13 16:29 ` Peter Hurley
2013-06-13 19:56 ` [PATCH] tty: Fix transient pty write() EIO Peter Hurley
2013-06-16 17:31 ` Mikael Pettersson
2013-06-11 22:14 ` Strange intermittent EIO error when writing to stdout since v3.8.0 Orion Poplawski
2013-06-13 10:38 ` Markus Trippelsdorf
2013-06-07 19:56 ` David Howells
2013-06-06 14:41 ` Mikael Pettersson
2013-06-06 17:31 ` David Howells [this message]
2013-06-06 18:41 ` Markus Trippelsdorf
2013-06-08 18:56 ` Rob Landley
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=12790.1370539861@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=markus@trippelsdorf.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®