Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DjQrK-0004gt-VN for mharc-grub-devel@gnu.org; Fri, 17 Jun 2005 20:06:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DjQr7-0004Z0-F3 for grub-devel@gnu.org; Fri, 17 Jun 2005 20:06:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DjQqy-0004Ui-BQ for grub-devel@gnu.org; Fri, 17 Jun 2005 20:06:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DjQqw-0004Qp-OV for grub-devel@gnu.org; Fri, 17 Jun 2005 20:06:27 -0400 Received: from [130.104.239.239] (helo=sprbodj.inma.ucl.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DjQfe-0001Pr-OF for grub-devel@gnu.org; Fri, 17 Jun 2005 19:54:46 -0400 Received: from [192.168.0.19] (unknown [213.213.238.70]) by sprbodj.inma.ucl.ac.be (Postfix) with ESMTP id 8819C19C826E for ; Sat, 18 Jun 2005 01:52:35 +0200 (CEST) Message-ID: <42B36238.8040204@inma.ucl.ac.be> Date: Sat, 18 Jun 2005 01:52:24 +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 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: netboot and memory problem : solved ? 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: Sat, 18 Jun 2005 00:06:47 -0000 hi ! what do you think about the following change in grub_free ? Instead of (at the end of the function) if (p + p->size == p->next) { p->next->magic = 0; p->size += p->next->size; p->next = p->next->next; } [...] r->first = q; I tried the following if (p + p->size == p->next) { p->next->magic = 0; p->size += p->next->size; p->next = p->next->next; r->first = p; return; } as a reminder, my problem was that sometimes, grub2 would fataly print (error message from grub_free): free magic is broken at 0x37e50: 0x0 I'm quite sure that my problem is linked with that region of the code, but I'm not too sure about the consequences of that possible fix. At least, I can't repoduce the problem on my pc but I'll do some more testing on monday as this problem is kind of "volatile". I hope it's the one ! Have a good week-end ! -- 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