Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LyJr6-0001zl-KX for mharc-grub-devel@gnu.org; Mon, 27 Apr 2009 01:58:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyJr2-0001zf-U9 for grub-devel@gnu.org; Mon, 27 Apr 2009 01:58:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyJr0-0001zT-4C for grub-devel@gnu.org; Mon, 27 Apr 2009 01:58:11 -0400 Received: from [199.232.76.173] (port=54982 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyJqz-0001zQ-Rt for grub-devel@gnu.org; Mon, 27 Apr 2009 01:58:09 -0400 Received: from [74.93.104.97] (port=59084 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LyJqw-0003rh-28; Mon, 27 Apr 2009 01:58:06 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 909D635C00B; Sun, 26 Apr 2009 22:57:57 -0700 (PDT) Date: Sun, 26 Apr 2009 22:57:57 -0700 (PDT) Message-Id: <20090426.225757.05232059.davem@davemloft.net> To: grub-devel@gnu.org, proski@gnu.org From: David Miller In-Reply-To: <1240809937.4158.50.camel@ct> References: <1240809937.4158.50.camel@ct> 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: 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: Mon, 27 Apr 2009 05:58:14 -0000 From: Pavel Roskin Date: Mon, 27 Apr 2009 01:25:37 -0400 > Hello! > > Since the revision 2136, I'm getting a non-fatal error message: > > GRUB loading. > Welcome to GRUB! > > alloc magic is broken at 0x7fdaf20 > Aborted. Press any key to exit. > > After pressing enter, the menu appears and I can boot from it. The > description of the revision is: > > * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close() > on disk->data. > > The patch looks wrong to me. There are no calls to grub_disk_open() in > disk/fs_uuid.c. Other callers to grub_disk_close() call > grub_disk_open() as well. grub_disk_open() isn't used, but a grub_device_open() does occur during the iterator that has us find the FS_UUID device. This happens search_fs_uuid(). If we don't do this, we leave a device reference open and dangling.