Bug 592294 - grubby segfaults when default kernel is Fedora
Summary: grubby segfaults when default kernel is Fedora
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: grubby
Version: 6.0
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
: 599962 625306 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-14 13:41 UTC by Ian Pilcher
Modified: 2018-10-27 13:16 UTC (History)
7 users (show)

Fixed In Version: grubby-7.0.15-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-11-10 20:36:26 UTC
Target Upstream Version:

Attachments (Terms of Use)
grub.conf (1.53 KB, text/plain)
2010-05-14 13:42 UTC, Ian Pilcher
no flags Details

Description Ian Pilcher 2010-05-14 13:41:22 UTC
Description of problem:
I have RHEL 6 beta installed alongside Fedora 12.  The default stanza in
grub.conf is the latest Fedora 12 kernel (see attached grub.conf).  This
is causing grubby to segfault:

[root@localhost ~]# grubby --default-kernel
grubby recieved SIGSEGV!  Backtrace (7):

I tried installing the relevant debuginfo packages and getting a back-
trace, but I didn't get anything useful:

[root@localhost ~]# gdb /sbin/grubby
GNU gdb (GDB) Red Hat Enterprise Linux (7.1-18.el6)
Copyright (C) 2010 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-redhat-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /sbin/grubby...Reading symbols from /usr/lib/debug/sbin/grubby.debug...done.
(gdb) set args --default-kernel
(gdb) run
Starting program: /sbin/grubby --default-kernel

Program received signal SIGSEGV, Segmentation fault.
__strcmp_ssse3 () at ../sysdeps/x86_64/strcmp.S:107
107		movlpd	(%rsi), %xmm2
(gdb) bt
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/strcmp.S:107
#1  0x000000000040695e in suitableImage (entry=<value optimized out>, bootPrefix=<value optimized out>, 
    skipRemoved=<value optimized out>, flags=<value optimized out>) at grubby.c:1297
#2  0x0000000000407b56 in main (argc=<value optimized out>, argv=<value optimized out>) at grubby.c:3168

If I edit grub.conf and set the default to the RHEL 6 stanza, grubby

[root@localhost ~]# grubby --default-kernel

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Install attached grub.conf
2.  Run "grubby --default-kernel"
Actual results:

Expected results:
Should return /boot/vmlinuz-

Additional info:

Comment 1 Ian Pilcher 2010-05-14 13:42:46 UTC
Created attachment 414051 [details]

Comment 3 RHEL Program Management 2010-05-14 15:55:04 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 4 Brian Lane 2010-06-07 22:59:37 UTC
*** Bug 599962 has been marked as a duplicate of this bug. ***

Comment 6 Alexander Todorov 2010-07-20 15:03:42 UTC
Tested with snap #8 (0715.0) - a system where both Fedora and RHEL6 are installed .I can boot into both OSes without traceback. When making Fedora the default boot is happy. Moving to VERIFIED.

Comment 7 Brian Lane 2010-08-19 19:12:25 UTC
*** Bug 625306 has been marked as a duplicate of this bug. ***

Comment 10 releng-rhel@redhat.com 2010-11-10 20:36:26 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.