From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JvYL2-0002jS-Am for mharc-grub-devel@gnu.org; Mon, 12 May 2008 09:45:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvYL0-0002j2-Lp for grub-devel@gnu.org; Mon, 12 May 2008 09:45:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvYKy-0002iX-8Q for grub-devel@gnu.org; Mon, 12 May 2008 09:45:10 -0400 Received: from [199.232.76.173] (port=41070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvYKy-0002iU-11 for grub-devel@gnu.org; Mon, 12 May 2008 09:45:08 -0400 Received: from an-out-0708.google.com ([209.85.132.248]:34780) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvYKx-0000as-6b for grub-devel@gnu.org; Mon, 12 May 2008 09:45:07 -0400 Received: by an-out-0708.google.com with SMTP id c38so450244ana.84 for ; Mon, 12 May 2008 06:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:x-face:mime-version:content-disposition:content-type:content-transfer-encoding:message-id; bh=JTXayOyrHiIzrqucJQBec5gh0L6yGQEs3OhLeBqLiKY=; b=uIxd/MGVgqQ8cyTwCYpkm5MXpzhYyefCghm4IfOVcgXXT9Z8BuLY2B/NnIJT+r33N31jPI4UymFIh2s6xwN830oKGLEEUo2JhnAGoyn0kUrNpPyPpgbdjb3IYDScEQlTytPJ/3RLaPHAbmQ+PcTAg1SP9Q+2ED63M/AdSFDktJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to:x-face:mime-version:content-disposition:content-type:content-transfer-encoding:message-id; b=H/8FMnq/gBDANUME49Z4wiutAFxLdzDY8Wj7J8vDJs168xuSXXbPf/6/z3bChDF3tIZaWF1agmw5wAenPIHmbAUQfOMTvq5J6ZFgRXuY2IP5hj72vK9h7QMyp2Pf2+jdhRB8Wyja3jObxz8+h3aGg1DXlnbjoflMIFKzo3rZQlA= Received: by 10.100.11.7 with SMTP id 7mr8157845ank.56.1210599906009; Mon, 12 May 2008 06:45:06 -0700 (PDT) Received: from dsktop01.iafcg.loc ( [190.75.165.30]) by mx.google.com with ESMTPS id d21sm13394399and.0.2008.05.12.06.45.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 May 2008 06:45:04 -0700 (PDT) From: "Isaac M. Marcos" To: grub-devel@gnu.org Date: Mon, 12 May 2008 09:14:54 -0430 User-Agent: KMail/1.9.9 References: <200805080454.54578.isaacmarcos100010@gmail.com> <200805091213.27785.isaacmarcos100010@gmail.com> <1210366588.14815.11.camel@dv> In-Reply-To: <1210366588.14815.11.camel@dv> X-Face: x-y\t15800Zgk#"~:Drp1}fo=N%pB*F8(J'>p}vH!s^cOfk.OkJcPPD#tY{V}N3:"-2Y>=?utf-8?q?B=0A=09RudWYi=5BV?=(q[woD:$pX],WnaV2Pp"&mBYiTK3g}RJsiBFy3IGy'H+&N,g0%lZ5; $Ows7Zyv1D2r8s=]C=]6QHY=YyEr\; 1=F4C76~*(=?utf-8?q?2l=7B9=23=0A=09Z=5Db1dNIHPtCCvypAZi-0=5D=25kTcGn=27x8A=5C=5F-/?= =?utf-8?q?7PW8=60?= X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Cc: Pavel Roskin Subject: Re: grub-probe gets a segfault 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, 12 May 2008 13:45:10 -0000 El Friday 09 May 2008 16:26:28 Pavel Roskin escribi=C3=B3: > On Fri, 2008-05-09 at 12:13 -0430, Isaac M. Marcos wrote: > > > Neither could I :-( > > > > It does not happen in other two AMD64 machines here!! > > Only on this one. > > That confirms my suspicion that the problem is not related to any x86_64 > issues. > > I checked the bug history more carefully, and I think that rlocn->offset > may be correct. 92672 is 0x16a00, which is a nice rounded number. > > If q is out of bounds, it probably means that mda_size was less than > 0x16a00. Could you please print mda_size in the debugger? Program received signal SIGSEGV, Segmentation fault. 0x0000000000421b7c in grub_lvm_scan_device (name=3D0x638210 "hd1,5")=20 at /home/immf/grub2-1.96+20080429/disk/lvm.c:305 305 /home/immf/grub2-1.96+20080429/disk/lvm.c: No such file or director= y. in /home/immf/grub2-1.96+20080429/disk/lvm.c (gdb) print mda_size $1 =3D 192512 not what you though :-( > > Also, pvck should display the metadata size. Please run this: > > pvck /dev/sda6 $ sudo pvck /dev/sda6 Device /dev/sda6 not found (or ignored by filtering). But fdisk reports the disks: $ sudo fdisk -l Disco /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units =3D cilindros of 16065 * 512 =3D 8225280 bytes Disk identifier: 0x680c4421 Disposit. Inicio Comienzo Fin Bloques Id Sistema /dev/sda1 * 1 26 208813+ 83 Linux /dev/sda2 27 153 1020127+ 83 Linux /dev/sda3 154 231 626535 82 Linux swap / Solaris /dev/sda4 232 14593 115362765 5 Extendida /dev/sda5 232 3396 25422831 fd Linux raid autodete= ct /dev/sda6 3397 6561 25422831 fd Linux raid autodete= ct /dev/sda7 6562 9726 25422831 fd Linux raid autodete= ct /dev/sda8 9727 14593 39094146 8e Linux LVM [ some other disks ....] > What's the metadata size? It is the same as mda_size should by gdb? It does not seem so!! =2D----------------- with cvs version ------------------------------- > That's how to check out GRUB from CVS: > cvs -d :pserver:anoncvs@cvs.savannah.gnu.org:/cvsroot/grub co grub2 done > To build it, use: > ./configure > make done OK, /_____________________________________ # ./grub-probe -t device / Violaci=C3=B3n de segmento # gdb ./grub-probe GNU gdb 6.7.1-debian Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -t device / Starting program: /home/immf/DescargaFirefox/grub-cvs/grub2/grub-probe -t=20 device / Program received signal SIGSEGV, Segmentation fault. grub_lvm_scan_device (name=3D0x62d1f0 "hd1,5") at disk/lvm.c:305 305 while (*q !=3D ' ') (gdb) print q $1 =3D 0x780000
(gdb) print metadatabuf $2 =3D (gdb) print rlocn->offset No symbol "rlocn" in current context. (gdb) print mda_size $3 =3D (gdb) =20 _____________________________________________/ cvs version does not contain debug symbols? Is this a useful "line of work"? =2D-=20 Isaac M. Marcos GPG key 0xC9045C1B 5633 ECAF 44B1 8A5D 9371 DCDA 4620 A016 C904 5C1B The only place success comes before work is in the dictionary. VINCE LOMBARDI