From: Michael Breuer <mbreuer@majjas.com>
To: linux-kernel@vger.kernel.org
Subject: tty_io.c - disassociate_ctty attempted to write to tty = NULL question/problem?
Date: Mon, 04 Jan 2010 18:01:17 -0500 [thread overview]
Message-ID: <4B42733D.6050704@majjas.com> (raw)
While looking into something else, had debugging turned on and came
across this:
Jan 1 15:11:42 mail kernel: error attempted to write to tty [0x(null)]
= NULL
[running 2.6.32 from git - with the recent devpts ionode patch applied]
Looks like this happens when (at least in my case), init retarts mingetty.
Basically:
do_exit -> disassocate_ctty(1) (for tty1).
disassociate->vhangup->do_tty_hangup
In do_tty_hangup, p->signal->tty is set to NULL, where p==current.
On return, the aforementioned error message is generated.
I'm thinking that the cleanup of the tty structure is therefore not
happening properly. I wrote a small patch to enter the cleanup code
anyway in this once instance and saw no changes to the system behavior.
Main question is what should be going on here? From my testing, it looks
like this pretty much a special case involving init->mingetty start/stop
on the tty where the console is connected (usually tty1).
I got here by trying to figure out why I'm getting sky2 interrupt errors
- but only when I've got a mingetty running on tty1.
next reply other threads:[~2010-01-04 23:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 23:01 Michael Breuer [this message]
2010-01-05 0:12 ` tty_io.c - disassociate_ctty attempted to write to tty = NULL question/problem? Alan Cox
2010-01-05 5:48 ` Michael Breuer
2010-01-05 10:47 ` Alan Cox
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=4B42733D.6050704@majjas.com \
--to=mbreuer@majjas.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox