Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MmEXL-000776-F0 for mharc-grub-devel@gnu.org; Fri, 11 Sep 2009 18:24:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmEXJ-00075j-Ph for grub-devel@gnu.org; Fri, 11 Sep 2009 18:24:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmEXF-00072T-5s for grub-devel@gnu.org; Fri, 11 Sep 2009 18:24:09 -0400 Received: from [199.232.76.173] (port=59845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmEXF-00072H-1a for grub-devel@gnu.org; Fri, 11 Sep 2009 18:24:05 -0400 Received: from c60.cesmail.net ([216.154.195.49]:31815) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MmEXE-0001su-FN for grub-devel@gnu.org; Fri, 11 Sep 2009 18:24:04 -0400 Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 11 Sep 2009 18:24:03 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id 1CE3C34C69 for ; Fri, 11 Sep 2009 18:23:58 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <1252414728.2872.2.camel@fz.local> References: <1252414728.2872.2.camel@fz.local> Content-Type: text/plain Date: Fri, 11 Sep 2009 18:23:57 -0400 Message-Id: <1252707837.3447.16.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [Fwd: Re: Bug#545460: segfault during update of grub-pc package] 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: Fri, 11 Sep 2009 22:24:10 -0000 On Tue, 2009-09-08 at 14:58 +0200, Felix Zielcke wrote: > > Program received signal SIGSEGV, Segmentation fault. > > 0x080490a8 in probe_raid_level (disk=0x0) at > > /home/work/src/grub2/util/grub-probe.c:94 > > 94 if (disk->dev->id != GRUB_DISK_DEVICE_RAID_ID) > > (gdb) bt > > #0 0x080490a8 in probe_raid_level (disk=0x0) at > > /home/work/src/grub2/util/grub-probe.c:94 > > #1 0x08049293 in probe (path=0x0, device_name=0xbffffea0 > > "/dev/mapper/rhenvar-lvol0") at /home/work/src/grub2/util/grub-probe.c:167 > > #2 0x0804982f in main (argc=4, argv=0xbffffd74) at > > /home/work/src/grub2/util/grub-probe.c:417 > > Should we just check if disk or disk-dev is NULL or is this a more > serious problem where something else needs a change? Let's not do it blindly. probe_raid_level is called with the NULL argument when going over the list. We need to understand how we get such an element in the list. Then we can think how to fix it. -- Regards, Pavel Roskin