From: Mike Frysinger Date: Tue, 1 Nov 2011 14:54:16 -0400 Subject: [U-Boot] sandbox: Crash on startup In-Reply-To: References: <4EAFC0D8.6030407@arcor.de> Message-ID: <201111011454.17561.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 01 November 2011 10:01:53 Simon Glass wrote: > On Tue, Nov 1, 2011 at 2:50 AM, Matthias Weisser wrote: > > I just wanted to play around with the sandbox "arch" of u-boot maybe > > adding tun/tap support. Current head compiled successfully but crashed > > immediately after startup in board_init_f: > > > > gd = malloc(sizeof(gd_t)); > > assert(gd); > > > > memset((void *)gd, 0, sizeof(gd_t)); > > > > The simple reason was that malloc refers to u-boots internal malloc > > which is not initialized at this point. I added the following snippet > > That is odd. This commit is supposed to switch over to the system malloc(): > > fe34107 sandbox: Disable built-in malloc > > Can you please check that it is there? hmm, this was working for me, but now it's not. so something has changed ... but probably best to cut over to the mmap/virtual mapping route proposed elsewhere so that we can test the internal u-boot malloc and not worry about people accidentally breaking sandbox like this in the future. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111101/bdfab73e/attachment.pgp