[Bug 970937] Re: grub-probe coredumps with SIGSEGV
Colin Watson
cjwatson at canonical.com
Mon Apr 2 13:29:39 UTC 2012
Seems to be fixed upstream:
revno: 3824
author: Richard Laager <rlaager at wiktel.com>
committer: Vladimir 'phcoder' Serbinenko <phcoder at gmail.com>
branch nick: grub
timestamp: Fri 2012-02-03 11:02:06 +0100
message:
* util/grub-probe.c (probe): Don't crash on canonicalize_file_name
failure.
Put back lost PRINT_DRIVE.
It's just converting a segfault into a different kind of failure,
though, so I think I'll leave this until I pull in 2.00~beta* or newer
in 12.10.
** Changed in: grub2 (Ubuntu)
Status: New => Confirmed
** Changed in: grub2 (Ubuntu)
Importance: Undecided => Medium
** Changed in: grub2 (Ubuntu)
Status: Confirmed => Triaged
--
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