From: Dave Airlie <airlied@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Serial console blocking processes in write
Date: Tue, 26 Oct 2004 17:34:29 +1000 [thread overview]
Message-ID: <21d7e99704102600347d8f6f8f@mail.gmail.com> (raw)
Hi,
I've got a system running a 2.6.9-rc1-VP-R0 (it also happens with
2.6.6 vanilla though) kernel, and a busybox 1.00-pre8 along with about
4-5 user space processes all talking out through a serial console
(/dev/ttyS0).
After about 2-3 hours of constant stuff streaming out of the serial
port, my apps all hang on writes to the fd for stderr, (2->/dev/ttyS0
in /proc/<pid>/fd). busybox seems to initially open the ttyS0 device
as O_NONBLOCK so I would assume this propogates down to my
applications as they are fork/execed by busybox.
However my kernel printks keep coming out the serial port quite happily.
If I then type any character on the other end of the console, I get
16-bytes of data (a FIFO load) sent, so if I keep transmitting chars
to the other end, I get 16-bytes for every char and eventually the log
jams seems to clear and it runs again fine for another 2-3 hours until
it seems to happen again.
Any ideas where to start looking, my debugging env is quite crap, but
I'm trying to get space on the flash to throw gdb and switch on a lot
more debugging, at the moment I've gotten busybox telnetd that I can
startup after it crashes, and strace shows be everyone stuck in the
writes....
Dave.
reply other threads:[~2004-10-26 7:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=21d7e99704102600347d8f6f8f@mail.gmail.com \
--to=airlied@gmail.com \
--cc=linux-kernel@vger.kernel.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.