2002-10-24 14:01:31

by Eric Buddington

[permalink] [raw]
Subject: 2.5.44-ac2: stack overflow in acpi_initialize_objects

2.5.44-ac2 compiled for Athlon with gcc-3.2 fails to boot with a
really exciting stack overflow that dumps hordes of stack trace on the
screen. I'm too lazy to write it all down, but the last line before
'init' refers to acpi_initialize_objects.

I can write down more of it if needed.

-Eric


2002-10-24 16:52:27

by Dave Hansen

[permalink] [raw]
Subject: Re: 2.5.44-ac2: stack overflow in acpi_initialize_objects

On Thu, 2002-10-24 at 07:20, Eric Buddington wrote:
> 2.5.44-ac2 compiled for Athlon with gcc-3.2 fails to boot with a
> really exciting stack overflow that dumps hordes of stack trace on the
> screen. I'm too lazy to write it all down, but the last line before
> 'init' refers to acpi_initialize_objects.
>
> I can write down more of it if needed.

Does it panic, or just print out a lot of the traces?

If it panics, then you were able to chew through 7.5K of stack while it
warned during the last 3.5k. Could you give us an idea of what was
being called? Something like "a bunch of ACPI routines" or "the same
function a bunch of times" would be very helpful. For right now, just
turn the CONFIG_X86_STACK_CHECK config option off.

--
Dave Hansen
[email protected]

2002-10-24 17:08:51

by Andrew Grover

[permalink] [raw]
Subject: RE: 2.5.44-ac2: stack overflow in acpi_initialize_objects

> From: David C. Hansen [mailto:[email protected]]
> On Thu, 2002-10-24 at 07:20, Eric Buddington wrote:
> > 2.5.44-ac2 compiled for Athlon with gcc-3.2 fails to boot with a
> > really exciting stack overflow that dumps hordes of stack
> trace on the
> > screen. I'm too lazy to write it all down, but the last line before
> > 'init' refers to acpi_initialize_objects.
> >
> > I can write down more of it if needed.
>
> Does it panic, or just print out a lot of the traces?

The ACPI-related call path to acpi_initialize_objects is only 3 deep:

acpi_init
acpi_bus_init
acpi_initialize_objects

...none of which have big variables on the stack.

Need more info...

-- Andy

2002-10-24 19:51:28

by Eric Buddington

[permalink] [raw]
Subject: Re: 2.5.44-ac2: stack overflow in acpi_initialize_objects

On Thu, Oct 24, 2002 at 09:56:59AM -0700, David C. Hansen wrote:
> On Thu, 2002-10-24 at 07:20, Eric Buddington wrote:
> > 2.5.44-ac2 compiled for Athlon with gcc-3.2 fails to boot with a
> > really exciting stack overflow that dumps hordes of stack trace on the
> > screen. I'm too lazy to write it all down, but the last line before
> > 'init' refers to acpi_initialize_objects.
>
> Does it panic, or just print out a lot of the traces?

It panics, and yes, it's a very long list (So I can't tell what's at
the top of it). I'm trying to get a proper record via serial-console,
but can't find my adapters. I'll post it as soon as I can get it...

-Eric