Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LycON-0001C5-Bn for mharc-grub-devel@gnu.org; Mon, 27 Apr 2009 21:45:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LycOK-0001BW-HV for grub-devel@gnu.org; Mon, 27 Apr 2009 21:45:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LycOH-0001Ay-9t for grub-devel@gnu.org; Mon, 27 Apr 2009 21:45:45 -0400 Received: from [199.232.76.173] (port=50973 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LycOF-0001Au-JR for grub-devel@gnu.org; Mon, 27 Apr 2009 21:45:43 -0400 Received: from [74.93.104.97] (port=46763 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LycOD-0001Wx-OM; Mon, 27 Apr 2009 21:45:41 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id E6BEC35C184; Mon, 27 Apr 2009 18:45:33 -0700 (PDT) Date: Mon, 27 Apr 2009 18:45:33 -0700 (PDT) Message-Id: <20090427.184533.105744402.davem@davemloft.net> To: grub-devel@gnu.org, proski@gnu.org From: David Miller In-Reply-To: <1240882672.29799.10.camel@mj> References: <20090426.225757.05232059.davem@davemloft.net> <1240871171.11406.106.camel@mj> <1240882672.29799.10.camel@mj> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: [PATCH] Re: Revision 2136 breaks two-disk configuarion 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, 28 Apr 2009 01:45:50 -0000 From: Pavel Roskin Date: Mon, 27 Apr 2009 21:37:52 -0400 > On Mon, 2009-04-27 at 18:26 -0400, Pavel Roskin wrote: > >> It's entirely possible that the problem is elsewhere. But I have no >> experience debugging memory problems in GRUB, so it will take time >> before I find out. > > Done! disk->partition should not be copied by reference. This patch > fixes the broken magic problem. The issue with mixing device and disk > functions could be addressed separately. > > ChangeLog: > disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy > parent's partition, don't copy it by reference, as it gets freed > on close. Thanks for fixing this Pavel. I suspect this bug is why the close was left as a NOP function all of this time. Please commit this as it seems you haven't already :-) I'll take a look at your other patch too.