[Bug 970937] Re: grub-probe coredumps with SIGSEGV
Colin Watson
cjwatson at canonical.com
Thu Apr 5 10:44:57 UTC 2012
*** This bug is a duplicate of bug 938724 ***
https://bugs.launchpad.net/bugs/938724
OK, with the aid of bug 938724 I now see why this is a problem. I'll
mark this one as a duplicate since the other was considerably earlier;
but expect a fix soon.
** This bug has been marked a duplicate of bug 938724
`grub-probe --target=device inaccessible-path` crashes
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/970937
Title:
grub-probe coredumps with SIGSEGV
Status in “grub2” package in Ubuntu:
Triaged
Bug description:
I was trying to update grub into the image that I created when I saw
update-grub crash. After probing a little further it appeared that
grub-probe was crashing. grub-probe crashes when a query is made for
a device type when an unknown/non-existent file is given.
It is not a problem if a valid filename is given.
This happens in ubuntu precise 12.04 beta2 distribution.
bash-4.2# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu precise (development branch)
Release: 12.04
Codename: precise
gdb grub-probe
GNU gdb (Ubuntu/Linaro 7.4-2012.02-0ubuntu2) 7.4-2012.02
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/sbin/grub-probe...(no debugging symbols found)...done.
(gdb) r --target=device /tmp/helloworld
Starting program: /usr/sbin/grub-probe --target=device /tmp/helloworld
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000000000432912 in ?? ()
(gdb) x/i $rip
=> 0x432912: cmpb $0x0,(%r15)
(gdb) p $r15
$1 = 0
(gdb) quit
bash-4.2# grub-probe --target=device /
/dev/loop4
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/970937/+subscriptions
More information about the foundations-bugs
mailing list