public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: Matthew Wilcox <willy@debian.org>
Cc: jsimmons@transvirtual.com, linux-kernel@vger.kernel.org
Subject: Re: 2.5.26 broken on headless boxes
Date: Thu, 18 Jul 2002 23:04:54 +0200	[thread overview]
Message-ID: <B4822306FB3@vcnet.vc.cvut.cz> (raw)

On 18 Jul 02 at 21:32, Matthew Wilcox wrote:
> On Thu, Jul 18, 2002 at 01:18:57PM -0700, William Lee Irwin III wrote:
> > On Thu, Jul 18, 2002 at 02:29:46PM +0100, Matthew Wilcox wrote:
> > >>>EIP; c01b7695 <visual_init+85/e0>   <=====
> > >>>edx; f7906600 <END_OF_CODE+37502e5c/????>
> > >>>edi; c03dcc00 <vc_cons+0/fc>
> > >>>esp; c3d45e7c <END_OF_CODE+39426d8/????>
> > > Trace; c01b7773 <vc_allocate+83/140>
> > > Trace; c01baa25 <con_open+19/88>
> > > Trace; c01ac08c <tty_open+20c/394>
> > > Trace; c0145a83 <link_path_walk+683/874>
> > > Trace; c0144ed7 <permission+27/2c>
> > > Trace; c0146373 <may_open+5f/2ac>
> > > Trace; c013c33a <chrdev_open+66/98>
> > > Trace; c013b001 <dentry_open+e1/1b0>
> > > Trace; c013af16 <filp_open+52/5c>
> > > Trace; c013b307 <sys_open+37/74>
> > > Trace; c0108893 <syscall_call+7/b>
> > 
> > This is the 4th one of these I've seen in the last two days. Any chance
> > of being able to compile with -g and get an addr2line on the EIP? I've
> > tried to reproduce it myself, but haven't gotten it to happen yet.
> 
> seems fairly obvious what's happening with a couple of printks...
> 
>     printk("visual_init: sw = %p, conswitchp = %p, currcons = %d, init = %d\n",
>                     sw, conswitchp, currcons, init);
> 
> gets me the interesting fact that sw & conswitchp are both NULL.
> later on, we call:
>     sw->con_init(vc_cons[currcons].d, init);
> which seems like it would be the exact cause, no?
> 
> now whether putting a:
> 
>     if (!sw)
>         return;
> 
> call into visual_init or whether we should determine earlier never to
> call visual_init, I don't know.  The people who know about the console
> have been conspicuously silent so far...

You have enabled CONFIG_VT without CONFIG_VGA_CONSOLE and 
CONFIG_DUMMY_CONSOLE. It is illegal configuration.

To fix oopses, either enable 'Framebuffer devices' under 'Console
drivers' section (you do not have to enable any fbdev driver, just
check this option...), or disable CONFIG_VT. See arch/*/kernel/setup.c
for explanation, no code in VT subsystem kernel expects conswitchp == NULL,
but couple of architectures leaves sometime conswitchp uninitialized.

It would be possible to add error return path to visual_init, but
I think that adding

  conswitchp = &dummy_con;
+ #else
+ #error No console defined with CONFIG_VT enabled
  #endif
  #endif

at the end of setup.c will work same way, as open of /dev/tty* will
never suceed with your config with added error path anyway.
                                            Best regards,
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                

             reply	other threads:[~2002-07-18 21:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-18 21:04 Petr Vandrovec [this message]
2002-07-18 21:18 ` 2.5.26 broken on headless boxes Matthew Wilcox
  -- strict thread matches above, loose matches on Subject: below --
2002-07-18 22:16 Petr Vandrovec
2002-07-18 22:20 ` Arnaldo Carvalho de Melo
2002-07-18 23:01 ` James Simmons
2002-07-18 21:42 Petr Vandrovec
2002-07-18 21:45 ` Matthew Wilcox
     [not found] <20020717165538.D13352@parcelfarce.linux.theplanet.co.uk.suse.lists.linux.kernel>
2002-07-18 12:45 ` Andi Kleen
2002-07-18 23:07   ` James Simmons
2002-07-19  9:45     ` Andi Kleen
2002-07-17 15:55 Matthew Wilcox
2002-07-18  1:06 ` William Lee Irwin III
2002-07-18  9:48   ` Re[3]: " Tobias Rittweiler
2002-07-18 10:46     ` William Lee Irwin III
2002-07-18 12:29       ` Re[2]: " Tobias Rittweiler
2002-07-18 20:17         ` William Lee Irwin III
2002-07-18 13:29   ` Matthew Wilcox
2002-07-18 20:18     ` William Lee Irwin III
2002-07-18 20:32       ` Matthew Wilcox
2002-07-18 20:37         ` William Lee Irwin III

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=B4822306FB3@vcnet.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=jsimmons@transvirtual.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=willy@debian.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