Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2013 14:00:06 +0100
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Is this related to the general panic discussed in freebsd-current?
Message-ID:  <20130505140006.0d671ba5@bender>
In-Reply-To: <6D0E82C9-79D1-4804-9B39-3440F99AA8FE@kientzle.com>
References:  <51835891.4050409@thieprojects.ch> <03971BD1-4ADE-4435-BDD0-B94B62634F1D@bsdimp.com> <5183BF8C.4040406@thieprojects.ch> <CCABA43A-6D7E-4310-9F68-AEE54C88F431@kientzle.com> <6D0E82C9-79D1-4804-9B39-3440F99AA8FE@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 4 May 2013 15:44:37 -0700
Tim Kientzle <tim@kientzle.com> wrote:
> I'm baffled.  If I insert a printf into the loop in stack_capture,
> the kernel boots. But the generated assembly looks perfectly correct
> to me in either case.  So inserting the printf must have some
> side-effect.
> 
> The stack does end up aligned differently:  The failing version puts
> 16 bytes on the stack, the working version puts 24 bytes.  But I
> can't figure out how that would explain what I'm seeing...

It feels like an alignment issue but those stack sizes should both be
valid. Are you able to send me the asm for the working and broken
versions of the function?

Also which ABI are you using? I have not been able to reproduce it with
EABI, but that may have been because I have a patched clang I've been
using to track down another issue.

Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130505140006.0d671ba5>