Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DfEeB-0003NQ-Rv for mharc-grub-devel@gnu.org; Mon, 06 Jun 2005 06:15:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DfEd5-0003GW-NY for grub-devel@gnu.org; Mon, 06 Jun 2005 06:14:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DfEcx-0003Co-Fi for grub-devel@gnu.org; Mon, 06 Jun 2005 06:14:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfEcw-00035c-4A for grub-devel@gnu.org; Mon, 06 Jun 2005 06:14:38 -0400 Received: from [130.104.239.239] (helo=sprbodj.inma.ucl.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DfEVY-0006an-CY for grub-devel@gnu.org; Mon, 06 Jun 2005 06:07:00 -0400 Received: from [130.104.239.234] (pc-babaorom.inma.ucl.ac.be [130.104.239.234]) by sprbodj.inma.ucl.ac.be (Postfix) with ESMTP id 455D419C826E for ; Mon, 6 Jun 2005 12:03:44 +0200 (CEST) Message-ID: <42A41F7E.6040403@inma.ucl.ac.be> Date: Mon, 06 Jun 2005 12:03:42 +0200 From: Vincent Guffens User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en MIME-Version: 1.0 To: The development of GRUB 2 References: <429C6B12.4080608@inma.ucl.ac.be> <429C949E.1080700@inma.ucl.ac.be> <871x7ncoh6.fsf@student.han.nl> In-Reply-To: <871x7ncoh6.fsf@student.han.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-ucl-inma-MailScanner-Information: Please contact the ISP for more information X-ucl-inma-MailScanner: Found to be clean X-MailScanner-From: guffens@inma.ucl.ac.be 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: Mon, 06 Jun 2005 10:15:50 -0000 Marco Gerards wrote: > 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. Indead the problem is still there. It is now possible to do something like: grub> ifconfig [...] grub> loopback lo (nd)tfile [...] grub> ls (lo)/ [...] grub> cat (lo)/file.txt [...] I have tested three different card: Tulip, e1000, nforce2 as well as three compilers: gcc-2.95, gcc-3.0, gcc-3.3 However, the memory problem is still there, and I have no idea where it comes from. It varies depending on the compiler, the optimization flag, and some very small changes in the code. But it is always possible to find one combination of these for which the problem appears after loading a linux kernel or after the command boot or after a cat of a text file in the loopback device. -- Vincent Guffens PhD Student UCL/CESAME tel: +32 10 47 80 30 Value your freedom, or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. -- Richard M. Stallman