Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JGtoo-0002mb-LT for mharc-grub-devel@gnu.org; Mon, 21 Jan 2008 05:23:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGtoi-0002kk-HI for grub-devel@gnu.org; Mon, 21 Jan 2008 05:23:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGtod-0002ij-MK for grub-devel@gnu.org; Mon, 21 Jan 2008 05:23:47 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGtod-0002iZ-Cn for grub-devel@gnu.org; Mon, 21 Jan 2008 05:23:43 -0500 Received: from smtp-vbr10.xs4all.nl ([194.109.24.30]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JGtod-0000fl-3W for grub-devel@gnu.org; Mon, 21 Jan 2008 05:23:43 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr10.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0LANfuj043748; Mon, 21 Jan 2008 11:23:42 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20080112031444.GA30703@thorin> <87hchf2ulp.fsf@xs4all.nl> <20080115120643.GD31275@thorin> <20080115163612.GA4905@thorin> Mail-Copies-To: mgerards@xs4all.nl Date: Mon, 21 Jan 2008 11:24:52 +0100 In-Reply-To: <20080115163612.GA4905@thorin> (Robert Millan's message of "Tue, 15 Jan 2008 17:36:12 +0100") Message-ID: <87d4rvxyq3.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Cc: devel@lists.laptop.org Subject: Re: GRUB on OLPC / XO X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 10:23:49 -0000 Robert Millan writes: > On Tue, Jan 15, 2008 at 01:06:43PM +0100, Robert Millan wrote: >> > > /* Load pre-loaded modules and free the space. */ >> > > grub_register_exported_symbols (); >> > > - grub_load_modules (); >> > > +// grub_load_modules (); >> > >> > Why? >> >> I still don't know. Memory corruption I think. I'm investigating. > > Ok, this would explain it: > > _start: 0x10000, _end: 0x1f804 > Using memory for heap: addr=0x100000, end=0x400000 > Using memory for heap: addr=0x2000, end=0x9ffff > Welcome to GRUB! > > See how our core image and the second heap chunk overlap. I'm not sure if this > is a bug in OFW's /memory/available, but in any case it doesn't hurt to add a > generic sanity check in our memory manager to avoid this sort of breakage. > > It's also be useful to protect our own stack, etc.. > > What do you think? At least some kind of check should be available. It could also be in init.c. -- Marco