From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DdAGx-00062m-Cv for mharc-grub-devel@gnu.org; Tue, 31 May 2005 13:11:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdAGv-00061y-Nc for grub-devel@gnu.org; Tue, 31 May 2005 13:11:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdAGv-00061T-2K for grub-devel@gnu.org; Tue, 31 May 2005 13:11:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdAGu-00061D-VF for grub-devel@gnu.org; Tue, 31 May 2005 13:11:21 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdAG8-0003WO-Ni for grub-devel@gnu.org; Tue, 31 May 2005 13:10:33 -0400 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 0ABBA8D5D for ; Tue, 31 May 2005 19:08:39 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 02981-06 for ; Tue, 31 May 2005 18:09:14 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 3B9948DBF for ; Tue, 31 May 2005 19:08:37 +0200 (CEST) Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id EF6A7C046 for ; Tue, 31 May 2005 19:08:36 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <429C6B12.4080608@inma.ucl.ac.be> <429C949E.1080700@inma.ucl.ac.be> From: Marco Gerards Date: Tue, 31 May 2005 19:08:37 +0200 In-Reply-To: <429C949E.1080700@inma.ucl.ac.be> (Vincent Guffens's message of "Tue, 31 May 2005 18:45:18 +0200") Message-ID: <871x7ncoh6.fsf@student.han.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: network support : memory management problem 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: Tue, 31 May 2005 17:11:22 -0000 Vincent Guffens writes: > it looks like the problem is gone. I changed the way I allocate the > memory to hold a block. I changed from: > > int load_block () > char * p = (char *) grub_malloc(len*sizeof(char)); > > to > > int load_block () > char * p; > [...] > p = (char *) grub_malloc(len*sizeof(char)); This code is just the same. I think the problem is still there but just does not show up anymore. I have seen a similar error before, but I did not have the time to debug it. > but still, I would be interested in documentation about the memory > layout and the memory management of grub2, if available. AFAIK there is none. But you can ask specific questions of course. -- Marco