Skip to contentSkip to conversation

grub-probe gets a segfault

DISCUSSION Isaac M. Marcos 4 participants 23 messages May 8, 2008 – May 30, 2008

lore
Share & tools
lore
#0 lore raw

I have open a ticket in bugs.debian.org numbered 478401 referring to a segfault that grub-probe is getting.

Robert Millan suggested to bring this problem here.

What should i do?
Am i in the right place?

Signature · 1 line
Isaac M. Marcos
#1 lore raw
Quoted 2 lines · Isaac M. Marcos

I have open a ticket in bugs.debian.org numbered 478401 referring to a segfault that grub-probe is getting.

URL for convenience of others:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478401

Quoted 3 lines

Robert Millan suggested to bring this problem here.

What should i do?

Try running update-grub manually. Try reproducing the crash in a way that doesn't involve anything Debian specific. Try the CVS version. Try debugging the codedump.

Quoted 1 line

Am i in the right place?

Yes

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
Quoted 7 lines · On Thursday 08 May 2008 11:25:24 Pavel Roskin wrote:
Quoted 2 lines · Isaac M. Marcos

I have open a ticket in bugs.debian.org numbered 478401 referring to a segfault that grub-probe is getting.

URL for convenience of others:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478401

Quoted 6 lines
Quoted 3 lines

Robert Millan suggested to bring this problem here.

What should i do?

Try running update-grub manually. Try reproducing the crash in a way that doesn't involve anything Debian specific.

Does:

# grub-probe -t device / 
involve anything Debian specific ????????
Quoted 1 line

Try the CVS version. Try debugging the codedump.

Sure, only if i knew how, :-)

Quoted 3 lines
Quoted 1 line

Am i in the right place?

Yes

Good, next step?

Signature · 1 line
Isaac M. Marcos
#3 lore raw
Quoted 3 lines · Isaac M. Marcos

Does:

# grub-probe -t device / 
involve anything Debian specific ????????

It was a generic recommendation. But if grub-probe was compiled by Debian, it's Debian specific in a certain sense.

I cannot reproduce the crash, even on a Fedora installed on a LVM volume.

Quoted 3 lines
Quoted 1 line

Try the CVS version. Try debugging the codedump.

Sure, only if i knew how, :-)

That's how to check out GRUB from CVS:

cvs -d :pserver:[email protected]:/cvsroot/grub co grub2

To build it, use:

./configure
make

As for debugging, I see you have found something already.

Quoted 1 line

Good, next step?

Try the version from CVS. Describe the problem in a concise way, so that nobody has to go through the whole discussion in the Debian bug tracker. Try using grub-probe on paths that are not on LVM (like a mounted floppy or a flash drive).

Signature · 2 lines
Regards,
Pavel Roskin
#4 lore raw
Quoted 8 lines · Pavel Roskin
Quoted 3 lines · Isaac M. Marcos

Does:

# grub-probe -t device / 
involve anything Debian specific ????????

It was a generic recommendation. But if grub-probe was compiled by Debian, it's Debian specific in a certain sense.

I don't think there's any change in Debian affecting this area. But anyway I recommend that you follow Pavel's advice and run it from CVS directly.

Quoted 2 lines

I cannot reproduce the crash, even on a Fedora installed on a LVM volume.

Neither could I :-(

Quoted 1 line
Quoted 1 line

Good, next step?

I'm thinking that perhaps we can check the offset values against the bounds of the structure we have allocated, and abort if they miss. We need to do this anyway to support broken PVs, but I don't know if this is hiding a bug in our code somewhere else.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
#5 lore raw
Quoted 11 lines · El Friday 09 May 2008 08:32:01 Robert Millan escribió:
Quoted 7 lines · Pavel Roskin
Quoted 3 lines · Isaac M. Marcos

Does:

# grub-probe -t device /
involve anything Debian specific ????????

It was a generic recommendation. But if grub-probe was compiled by Debian, it's Debian specific in a certain sense.

I don't think there's any change in Debian affecting this area. But anyway I recommend that you follow Pavel's advice and run it from CVS directly.

Yes, i will, but it would have to wait a bit. There are other things to do.

Quoted 4 lines
Quoted 2 lines

I cannot reproduce the crash, even on a Fedora installed on a LVM volume.

Neither could I :-(

It does not happen in other two AMD64 machines here!! Only on this one.

Quoted 6 lines
Quoted 1 line
Quoted 1 line

Good, next step?

I'm thinking that perhaps we can check the offset values against the bounds of the structure we have allocated, and abort if they miss. We need to do this anyway to support broken PVs, but I don't know if this is hiding a bug in our code somewhere else.

Could you hold your idea for a little time? Thanks.

Signature · 1 line
Isaac M. Marcos
#6 lore raw
Quoted 4 lines · Isaac M. Marcos
Quoted 1 line

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?

Also, pvck should display the metadata size. Please run this:

pvck /dev/sda6

What's the metadata size? It is the same as mda_size should by gdb?

Signature · 2 lines
Regards,
Pavel Roskin
#7 lore raw
Quoted 6 lines · El Friday 09 May 2008 16:26:28 Pavel Roskin escribió:
Quoted 4 lines · Isaac M. Marcos
Quoted 1 line

Neither could I :-(

It does not happen in other two AMD64 machines here!! Only on this one.

Quoted 8 lines

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=0x638210 "hd1,5") 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 directory.

        in /home/immf/grub2-1.96+20080429/disk/lvm.c

(gdb) print mda_size
$1 = 192512

not what you though :-(

Quoted 4 lines

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 = cilindros of 16065 * 512 = 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 autodetect
/dev/sda6            3397        6561    25422831   fd  Linux raid autodetect
/dev/sda7            6562        9726    25422831   fd  Linux raid autodetect
/dev/sda8            9727       14593    39094146   8e  Linux LVM
[ some other disks ....]
Quoted 1 line

What's the metadata size? It is the same as mda_size should by gdb?

It does not seem so!!

------------------ with cvs version -------------------------------

Quoted 2 lines

That's how to check out GRUB from CVS:
cvs -d :pserver:[email protected]:/cvsroot/grub co grub2

done

Quoted 3 lines

To build it, use:
./configure
make

done OK,

/_____________________________________

# ./grub-probe -t device /
Violación 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 <http://gnu.org/licenses/gpl.html>
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 
device /

Program received signal SIGSEGV, Segmentation fault. grub_lvm_scan_device (name=0x62d1f0 "hd1,5") at disk/lvm.c:305
305 while (*q != ' ')
(gdb) print q
$1 = 0x780000 <Address 0x780000 out of bounds>
(gdb) print metadatabuf
$2 = <value optimized out>
(gdb) print rlocn->offset
No symbol "rlocn" in current context.
(gdb) print mda_size
$3 = <value optimized out>
(gdb)
_____________________________________________/
cvs version does not contain debug symbols?
Is this a useful "line of work"?

Signature · 6 lines
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
#8 lore raw
Quoted 4 lines · Isaac M. Marcos

(gdb) print mda_size
$1 = 192512

not what you though :-(

OK, we have something interesting here. mda_size is 192512 (0x2f000). rlocn->offset is 92672 (0x16a00). But (q - metadatabuf) is 325120 (0x4f600). So, the initial value of q was within the buffer, but the value that caused the segfault was outside the buffer.

It means that GRUB could not find any space character in the buffer and kept scanning until it hit unallocated space. I believe it's not valid LVM metadata.

Quoted 2 lines
$ sudo pvck /dev/sda6
  Device /dev/sda6 not found (or ignored by filtering).

So, it's not a LVM physical volume.

Quoted 1 line

/dev/sda6 3397 6561 25422831 fd Linux raid autodetect

It's a RAID partition. I guess RAID partitions have a different layout.

The fix would be to reject RAID partitions in grub_lvm_scan_device(). The only validity check in that function is presence of the LVM label in the first 4 sectors. Perhaps additional checks are needed.

Signature · 2 lines
Regards,
Pavel Roskin
#9 lore raw

2008/5/16 Pavel Roskin <[email protected]>:

Quoted 21 lines · Isaac M. Marcos
Quoted 5 lines

(gdb) print mda_size
$1 = 192512

not what you though :-(

OK, we have something interesting here. mda_size is 192512 (0x2f000). rlocn->offset is 92672 (0x16a00). But (q - metadatabuf) is 325120 (0x4f600). So, the initial value of q was within the buffer, but the value that caused the segfault was outside the buffer.

It means that GRUB could not find any space character in the buffer and kept scanning until it hit unallocated space. I believe it's not valid LVM metadata.

Quoted 2 lines
$ sudo pvck /dev/sda6
  Device /dev/sda6 not found (or ignored by filtering).

So, it's not a LVM physical volume.

Quoted 10 lines
Quoted 1 line

/dev/sda6 3397 6561 25422831 fd Linux raid

autodetect

It's a RAID partition. I guess RAID partitions have a different layout.

The fix would be to reject RAID partitions in grub_lvm_scan_device(). The only validity check in that function is presence of the LVM label in the first 4 sectors. Perhaps additional checks are needed.

Good find Pavel. :-)

Just a question, /dev/sda5 has an equivalent setup:

# pvck /dev/sda5
  Device /dev/sda5 not found (or ignored by filtering).
/dev/sda5             232        3396    25422831   fd  Linux raid
autodetect

Why grub-probe doesn't fail on /dev/sda5?

Signature · 2 lines
Cases are always threesome:
Best case, Worst case, and Just in case
#10 lore raw
Quoted 8 lines · Isaac Marcos

The fix would be to reject RAID partitions in grub_lvm_scan_device().
The only validity check in that function is presence of the LVM label in
the first 4 sectors. Perhaps additional checks are needed.

Good find Pavel. :-)

Quoted 7 lines

Just a question, /dev/sda5 has an equivalent setup:

# pvck /dev/sda5
  Device /dev/sda5 not found (or ignored by filtering).
/dev/sda5             232        3396    25422831   fd  Linux raid
autodetect

Why grub-probe doesn't fail on /dev/sda5?

I think because it has no LVM label. Maybe /dev/sda6 was holding a LVM physical volume before, and the label was not erased when it became a RAID partition.

As you can see, pvck doesn't display information partition. It means it cannot be fooled by the label. And that's what GRUB should do.

Signature · 2 lines
Regards,
Pavel Roskin
#11 lore raw
Quoted 15 lines · El Friday 16 May 2008 13:32:40 Pavel Roskin escribió:
Quoted 14 lines · Isaac Marcos

The fix would be to reject RAID partitions in grub_lvm_scan_device().
The only validity check in that function is presence of the LVM label in
the first 4 sectors. Perhaps additional checks are needed.

Good find Pavel. :-)

Just a question, /dev/sda5 has an equivalent setup:

# pvck /dev/sda5
  Device /dev/sda5 not found (or ignored by filtering).
/dev/sda5             232        3396    25422831   fd  Linux raid
autodetect
Quoted 5 lines
Quoted 1 line

Why grub-probe doesn't fail on /dev/sda5?

I think because it has no LVM label. Maybe /dev/sda6 was holding a LVM physical volume before, and the label was not erased when it became a RAID partition.

I cheked, and both partitions (sda5,sda6) have LVM labels, and correctly so:

/dev/sda5 (for example):
0000:0200 LABELONE........?ÍÉC ...LVM2 001npzaBI7ZXIhG29Uxcg1lkUIlTNTS6wbR 0000:0240 .../.............................................ð..............

sda5,sdb5,sdc5,sdd5 form a RAID5 disk (md1) ON which LVM was set up. sda6,sdb6,sdc6,sdd6 form a RAID5 disk (md2) ON which LVM was set up.

pvck /dev/md1
Found label on /dev/md1, sector 1, type=LVM2 001 Found text metadata area: offset=4096, size=192512
pvck /dev/md2
Found label on /dev/md2, sector 1, type=LVM2 001 Found text metadata area: offset=4096, size=192512

Some kind of deep interaction is going on?

Quoted 2 lines

As you can see, pvck doesn't display information partition. It means it cannot be fooled by the label. And that's what GRUB should do.

Yes, but in the meanwhile :

Today, I bump on this problem again on updating kernel. Because of this fault, update-initramfs reports a failure. It can't find "/".

grub-probe -t device / --> segfault!!

Let me explain something:
Neither "/" or "/boot" has anything to do with RAID or LVM in this system. It was setup like this exactly to prevent this kind of interferences on boot. They are "/dev/sda1" and "/dev/sda2", plain ext3 partitions.

And here comes grub-probe, testing every disk and partition on the system, testing for LVM, and many other things, and failing in the process.

I think it boils down to this main idea:
Could it test simple partitions first and if / is found, stop scanning? Why it needs to scan anything else if the requested partition has been found?

Signature · 6 lines
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
#12 lore raw
Quoted 6 lines · Isaac M. Marcos
Quoted 3 lines · El Friday 16 May 2008 13:32:40 Pavel Roskin escribió:

I think because it has no LVM label. Maybe /dev/sda6 was holding a LVM physical volume before, and the label was not erased when it became a RAID partition.

Quoted 8 lines

I cheked, and both partitions (sda5,sda6) have LVM labels, and correctly so:

/dev/sda5 (for example):
0000:0200 LABELONE........?ÍÉC ...LVM2 001npzaBI7ZXIhG29Uxcg1lkUIlTNTS6wbR 0000:0240 .../.............................................ð..............

sda5,sdb5,sdc5,sdd5 form a RAID5 disk (md1) ON which LVM was set up. sda6,sdb6,sdc6,sdd6 form a RAID5 disk (md2) ON which LVM was set up.

I suspected something like that.

Quoted 8 lines

pvck /dev/md1
Found label on /dev/md1, sector 1, type=LVM2 001 Found text metadata area: offset=4096, size=192512
pvck /dev/md2
Found label on /dev/md2, sector 1, type=LVM2 001 Found text metadata area: offset=4096, size=192512

Some kind of deep interaction is going on?

Nothing deep, really. It just shows that searching for some marker on a partition is inherently wrong. Whatever fixed marker is used, there is a substantial probability of it being found without it being a valid marker. Data on partitions is not random.

Quoted 7 lines

Let me explain something:
Neither "/" or "/boot" has anything to do with RAID or LVM in this system. It was setup like this exactly to prevent this kind of interferences on boot. They are "/dev/sda1" and "/dev/sda2", plain ext3 partitions.

And here comes grub-probe, testing every disk and partition on the system, testing for LVM, and many other things, and failing in the process.

I can fix the LVM code not to overrun the buffer. The right solution would be to improve check for LVM partitions to match pvck behavior (in addition to the overrun check).

Quoted 3 lines

I think it boils down to this main idea:
Could it test simple partitions first and if / is found, stop scanning? Why it needs to scan anything else if the requested partition has been found?

I think the idea is to reuse the code used in the bootloader. We want to give the user the full list of partitions at the boot time. And we don't want the bootloader to hang. It's better to check the same code while in the OS and find possible problems early and in the protected environment.

Signature · 2 lines
Regards,
Pavel Roskin
#13 lore raw
In reply to Isaac M. Marcos
Quoted 4 lines · Isaac M. Marcos

Today, I bump on this problem again on updating kernel. Because of this fault, update-initramfs reports a failure. It can't find "/".

grub-probe -t device / --> segfault!!

This patch should help. It checks for the buffer overrun. I still feel uneasy about applying it because it hides a bigger problem.

disk/lvm.c +4 -1
index 1d898ff..997d15c 100644
@@ -302,9 +302,12 @@ grub_lvm_scan_device (const char *name)
   rlocn = mdah->raw_locns;
   p = q = metadatabuf + grub_le_to_cpu64 (rlocn->offset);
 
-  while (*q != ' ')
+  while (*q != ' ' && q < metadatabuf + mda_size)
     q++;
 
+  if (q == metadatabuf + mda_size)
+    goto fail2;
+
   vgname_len = q - p;
   vgname = grub_malloc (vgname_len + 1);
   if (!vgname)
Signature · 2 lines
Regards,
Pavel Roskin
#14 lore raw
Quoted 8 lines · El Thursday 22 May 2008 06:22:02 Pavel Roskin escribió:
Quoted 4 lines · Isaac M. Marcos

Today, I bump on this problem again on updating kernel. Because of this fault, update-initramfs reports a failure. It can't find "/".

grub-probe -t device / --> segfault!!

This patch should help. It checks for the buffer overrun. I still feel uneasy about applying it because it hides a bigger problem.

I *completely* agree with you.

Quoted 8 lines
disk/lvm.c +0 -0
index 1d898ff..997d15c 100644
@@ -302,9 +302,12 @@ grub_lvm_scan_device (const char *name)
   rlocn = mdah->raw_locns;
   p = q = metadatabuf + grub_le_to_cpu64 (rlocn->offset);
 

disk/lvm.c grub_lvm_scan_device (const char *name) · line 313

Quoted 10 lines
disk/lvm.c +4 -1
-  while (*q != ' ')
+  while (*q != ' ' && q < metadatabuf + mda_size)
     q++;
 
+  if (q == metadatabuf + mda_size)
+    goto fail2;
+
   vgname_len = q - p;
   vgname = grub_malloc (vgname_len + 1);
   if (!vgname)

Sorry for the delay, other problems had higher priority :-)

Fine, to the problem at hand:

Patch applied, compiled, and working OK:

	$ sudo grub-probe -t device /
	/dev/sda2

Would this change be committed to cvs?

Signature · 6 lines
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
#15 lore raw
Quoted 9 lines · Isaac M. Marcos

Sorry for the delay, other problems had higher priority :-)

Fine, to the problem at hand:

Patch applied, compiled, and working OK:

	$ sudo grub-probe -t device /
	/dev/sda2

Would this change be committed to cvs?

Probably not. There are more sanity check that are needed there, so I'm leaving it to whoever is familiar with LVM.

Signature · 2 lines
Regards,
Pavel Roskin
#16 lore raw
In reply to Pavel Roskin
Quoted 8 lines · Pavel Roskin
Quoted 4 lines · Isaac M. Marcos

Today, I bump on this problem again on updating kernel. Because of this fault, update-initramfs reports a failure. It can't find "/".

grub-probe -t device / --> segfault!!

This patch should help. It checks for the buffer overrun. I still feel uneasy about applying it because it hides a bigger problem.

The constraints are a bit unusual here. We don't have a handler for exceptions, so this error could mean your machine stops booting. And additionally this code is in fact run in situations where LVM might not be used (e.g. grub-probe is probing something in an unrelated partition).

In both cases IMHO it's much more desireable to avoid the problem and accept the lesser evil that our LVM code might not be as complete, but at least it's robust.

So I'd recommend to get this patch in. If that makes you feel better about this, how about adding a warning message in this fail condition? (though, note we have many fail conditions like this one in that function, and these don't have any warning atm).

Quoted 18 lines
disk/lvm.c +4 -1
index 1d898ff..997d15c 100644
@@ -302,9 +302,12 @@ grub_lvm_scan_device (const char *name)
   rlocn = mdah->raw_locns;
   p = q = metadatabuf + grub_le_to_cpu64 (rlocn->offset);
 
-  while (*q != ' ')
+  while (*q != ' ' && q < metadatabuf + mda_size)
     q++;
 
+  if (q == metadatabuf + mda_size)
+    goto fail2;
+
   vgname_len = q - p;
   vgname = grub_malloc (vgname_len + 1);
   if (!vgname)
Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)
#17 lore raw
Quoted 15 lines · El Wednesday 28 May 2008 09:06:51 Robert Millan escribió:
Quoted 8 lines · Pavel Roskin
Quoted 4 lines · Isaac M. Marcos

Today, I bump on this problem again on updating kernel. Because of this fault, update-initramfs reports a failure. It can't find "/".

grub-probe -t device / --> segfault!!

This patch should help. It checks for the buffer overrun. I still feel uneasy about applying it because it hides a bigger problem.

The constraints are a bit unusual here. We don't have a handler for exceptions, so this error could mean your machine stops booting. And additionally this code is in fact run in situations where LVM might not be used (e.g. grub-probe is probing something in an unrelated partition).

Quoted 8 lines

In both cases IMHO it's much more desireable to avoid the problem and accept the lesser evil that our LVM code might not be as complete, but at least it's robust.

So I'd recommend to get this patch in. If that makes you feel better about this, how about adding a warning message in this fail condition? (though, note we have many fail conditions like this one in that function, and these don't have any warning atm).

I also believe It should be included. How is that done?

Quoted 18 lines
Quoted 18 lines
disk/lvm.c +4 -1
index 1d898ff..997d15c 100644
@@ -302,9 +302,12 @@ grub_lvm_scan_device (const char *name)
   rlocn = mdah->raw_locns;
   p = q = metadatabuf + grub_le_to_cpu64 (rlocn->offset);
 
-  while (*q != ' ')
+  while (*q != ' ' && q < metadatabuf + mda_size)
     q++;
 
+  if (q == metadatabuf + mda_size)
+    goto fail2;
+
   vgname_len = q - p;
   vgname = grub_malloc (vgname_len + 1);
   if (!vgname)
Signature · 6 lines
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
#18 lore raw

Quoting "Isaac M. Marcos" <[email protected]>:

Quoted 6 lines
Quoted 4 lines

So I'd recommend to get this patch in. If that makes you feel better about this, how about adding a warning message in this fail condition? (though, note we have many fail conditions like this one in that function, and these don't have any warning atm).

I also believe It should be included. How is that done?

OK, I've applied the patch.

Signature · 2 lines
Regards,
Pavel Roskin
#19 lore raw
In reply to Pavel Roskin
Quoted 3 lines · On Thursday 08 May 2008 17:45:27 Pavel Roskin wrote:
Quoted 2 lines · Isaac M. Marcos
Quoted 1 line

Try the CVS version. Try debugging the codedump.

Done, same segfault.

Quoted 8 lines

As for debugging, I see you have found something already.

Quoted 1 line

Good, next step?

Try the version from CVS. Describe the problem in a concise way, so that nobody has to go through the whole discussion in the Debian bug tracker. Try using grub-probe on paths that are not on LVM (like a mounted floppy or a flash drive).

Neither" /" or "/boot" are in a LVM partition!!!!!!!!!

cvs version

# ./grub-probe -t device /
	Violación de segmento
# ./grub-probe -t device /boot
	Violación de segmento
# ./grub-probe -t device /dev/cdrom		# cd
	Violación de segmento
# ./grub-probe -t device /fd0				# floppy
	Violación de segmento
# ./grub-probe -t device dvd				# dvd
	Violación de segmento
# ./grub-probe -t device /dev/	sdg1			# USB pen drive
	Violación de segmento
# ./grub-probe help						# ?? anything
	Violación de segmento
# ./grub-probe -help
	Works
# ./grub-probe --help
	Works

system version

# grub-probe -t device /
	Violación de segmento
# grub-probe -t device /boot
	Violación de segmento
# grub-probe help						# ?? again
	Violación de segmento
# grub-probe -help
	Works ok!

Same commands tested on two other machines (one with lvm's one without) All commands don't segfault on the system version (not cvs).

Could you make anything out of this?
Does this help in any way?

Signature · 6 lines
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
#20 lore raw
Quoted 6 lines · Isaac M. Marcos
Quoted 3 lines · On Thursday 08 May 2008 17:45:27 Pavel Roskin wrote:
Quoted 2 lines · Isaac M. Marcos
Quoted 1 line

Try the CVS version. Try debugging the codedump.

Done, same segfault.

I'm seeing a similar segmentation fault today on a new Dell R200 (quad-core). The same version (everything the same) works on my dual-core X60s.

Command is 'grub-probe -d /dev/sda14'

Using an older CVS version from February works fine. I'll need to verify further as the older grub version is run on 2.6.25-rc and now I'm in 2.6.26-rc3. Don't know whether that makes a difference. And partition is reiserfs.

Jeff.

#21 lore raw
Quoted 10 lines · Jeff Chua

I'm seeing a similar segmentation fault today on a new Dell R200 (quad-core). The same version (everything the same) works on my dual-core X60s.

Command is 'grub-probe -d /dev/sda14'

Using an older CVS version from February works fine. I'll need to verify further as the older grub version is run on 2.6.25-rc and now I'm in 2.6.26-rc3. Don't know whether that makes a difference. And partition is reiserfs.

The original report was about a segfault due to a RAID partition mistaken for an LVM partition. I don't see any information in your report suggesting that your case is similar.

Signature · 2 lines
Regards,
Pavel Roskin
#22 lore raw
Quoted 8 lines · Pavel Roskin
Quoted 6 lines · Jeff Chua

I'm seeing a similar segmentation fault today on a new Dell R200 (quad-core). The same version (everything the same) works on my dual-core X60s.

Command is 'grub-probe -d /dev/sda14'

Quoted 8 lines
Quoted 4 lines

Using an older CVS version from February works fine. I'll need to verify further as the older grub version is run on 2.6.25-rc and now I'm in 2.6.26-rc3. Don't know whether that makes a difference. And partition is reiserfs.

The original report was about a segfault due to a RAID partition mistaken for an LVM partition. I don't see any information in your report suggesting that your case is similar.

Sorry. But, I got segmentation fault and I don't know why. But I dig into it when I get back to office tomorrow.

Thanks,
Jeff.