Bug 1204353

Summary: abort *** Error in `/sbin/grubby': free(): invalid pointer:
Product: [Fedora] Fedora Reporter: Yanko Kaneti <yaneti>
Component: grubbyAssignee: Peter Jones <pjones>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcl, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: grubby-8.40-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-21 19:06:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/boot/grub/grub.conf none

Description Yanko Kaneti 2015-03-21 09:36:35 UTC
Created attachment 1004811 [details]
/boot/grub/grub.conf

[root@d2 ~]# /sbin/grubby --debug --grub -c /boot/grub/grub.conf --update-kernel=/boot/vmlinuz-4.0.0-0.rc4.git1.4.fc23.x86_64 --initrd /boot/initramfs-4.0.0-0.rc4.git1.4.fc23.x86_64.img '--args= LANG=en_US.UTF-8' '--title=Fedora (4.0.0-0.rc4.git1.4.fc23.x86_64) 23 (Rawhide)'
*** Error in `/sbin/grubby': free(): invalid pointer: 0x0000000000864961 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x79f6d)[0x7fab87fcaf6d]
/lib64/libc.so.6(+0x81874)[0x7fab87fd2874]
/lib64/libc.so.6(cfree+0x4c)[0x7fab87fd73cc]
/sbin/grubby[0x409f54]
/sbin/grubby[0x405116]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7fab87f71840]
/sbin/grubby[0x405199]
======= Memory map: ========
00400000-0040f000 r-xp 00000000 08:01 3037239                            /usr/sbin/grubby
0060e000-0060f000 r--p 0000e000 08:01 3037239                            /usr/sbin/grubby
0060f000-00610000 rw-p 0000f000 08:01 3037239                            /usr/sbin/grubby
00610000-00611000 rw-p 00000000 00:00 0 
00864000-00885000 rw-p 00000000 00:00 0                                  [heap]
7fab87b35000-7fab87b4b000 r-xp 00000000 08:01 3029141                    /usr/lib64/libgcc_s-5.0.0-20150319.so.1
7fab87b4b000-7fab87d4a000 ---p 00016000 08:01 3029141                    /usr/lib64/libgcc_s-5.0.0-20150319.so.1
7fab87d4a000-7fab87d4b000 r--p 00015000 08:01 3029141                    /usr/lib64/libgcc_s-5.0.0-20150319.so.1
7fab87d4b000-7fab87d4c000 rw-p 00016000 08:01 3029141                    /usr/lib64/libgcc_s-5.0.0-20150319.so.1
7fab87d4c000-7fab87d50000 r-xp 00000000 08:01 3025692                    /usr/lib64/libuuid.so.1.3.0
7fab87d50000-7fab87f4f000 ---p 00004000 08:01 3025692                    /usr/lib64/libuuid.so.1.3.0
7fab87f4f000-7fab87f50000 r--p 00003000 08:01 3025692                    /usr/lib64/libuuid.so.1.3.0
7fab87f50000-7fab87f51000 rw-p 00000000 00:00 0 
7fab87f51000-7fab88111000 r-xp 00000000 08:01 3016664                    /usr/lib64/libc-2.21.90.so
7fab88111000-7fab88311000 ---p 001c0000 08:01 3016664                    /usr/lib64/libc-2.21.90.so
7fab88311000-7fab88315000 r--p 001c0000 08:01 3016664                    /usr/lib64/libc-2.21.90.so
7fab88315000-7fab88317000 rw-p 001c4000 08:01 3016664                    /usr/lib64/libc-2.21.90.so
7fab88317000-7fab8831b000 rw-p 00000000 00:00 0 
7fab8831b000-7fab88326000 r-xp 00000000 08:01 3017539                    /usr/lib64/libpopt.so.0.0.0
7fab88326000-7fab88526000 ---p 0000b000 08:01 3017539                    /usr/lib64/libpopt.so.0.0.0
7fab88526000-7fab88527000 r--p 0000b000 08:01 3017539                    /usr/lib64/libpopt.so.0.0.0
7fab88527000-7fab88528000 rw-p 0000c000 08:01 3017539                    /usr/lib64/libpopt.so.0.0.0
7fab88528000-7fab88565000 r-xp 00000000 08:01 3018328                    /usr/lib64/libblkid.so.1.1.0
7fab88565000-7fab88765000 ---p 0003d000 08:01 3018328                    /usr/lib64/libblkid.so.1.1.0
7fab88765000-7fab88769000 r--p 0003d000 08:01 3018328                    /usr/lib64/libblkid.so.1.1.0
7fab88769000-7fab8876a000 rw-p 00041000 08:01 3018328                    /usr/lib64/libblkid.so.1.1.0
7fab8876a000-7fab8876b000 rw-p 00000000 00:00 0 
7fab8876b000-7fab8878e000 r-xp 00000000 08:01 3025154                    /usr/lib64/ld-2.21.90.so
7fab88948000-7fab8894c000 rw-p 00000000 00:00 0 
7fab8898c000-7fab8898e000 rw-p 00000000 00:00 0 
7fab8898e000-7fab8898f000 r--p 00023000 08:01 3025154                    /usr/lib64/ld-2.21.90.so
7fab8898f000-7fab88990000 rw-p 00024000 08:01 3025154                    /usr/lib64/ld-2.21.90.so
7fab88990000-7fab88991000 rw-p 00000000 00:00 0 
7fff50cfa000-7fff50d1b000 rw-p 00000000 00:00 0                          [stack]
7fff50d67000-7fff50d69000 r--p 00000000 00:00 0                          [vvar]
7fff50d69000-7fff50d6b000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)


Message: Process 16250 (grubby) of user 0 dumped core.
                
                Stack trace of thread 16250:
                #0  0x00007fab87f86ad8 __GI_raise (libc.so.6)
                #1  0x00007fab87f8876a __GI_abort (libc.so.6)
                #2  0x00007fab87fcaf72 __libc_message (libc.so.6)
                #3  0x00007fab87fd2874 malloc_printerr (libc.so.6)
                #4  0x00007fab87fd73cc __GI___libc_free (libc.so.6)
                #5  0x0000000000409f54 updateInitrd (grubby)
                #6  0x0000000000405116 main (grubby)
                #7  0x00007fab87f71840 __libc_start_main (libc.so.6)
                #8  0x0000000000405199 _start (grubby)


Version-Release number of selected component (if applicable):
grubby-8.37-1.fc22.x86_64

How reproducible:
Always

Comment 1 Yanko Kaneti 2015-03-21 17:11:09 UTC
This is a different run but the line with the bogus free is 

#6  0x0000000000409f54 in updateInitrd (cfg=cfg@entry=0xe68580, 
    image=0xe686f0 "/boot/vmlinuz-4.0.0-0.rc4.git1.4.fc23.x86_64", 
    prefix=0xe68910 "", 
    initrd=0xe68770 "/boot/initramfs-4.0.0-0.rc4.git1.4.fc23.x86_64.img", 
    title=0xe68890 "Fedora (4.0.0-0.rc4.git1.4.fc23.x86_64) 23 (Rawhide)")
    at grubby.c:3393

Comment 2 Fedora Update System 2015-04-14 18:50:41 UTC
grubby-8.39-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/grubby-8.39-1.fc22

Comment 3 Fedora Update System 2015-04-15 19:46:46 UTC
grubby-8.40-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/grubby-8.40-1.fc22

Comment 4 Fedora Update System 2015-04-17 18:37:01 UTC
Package grubby-8.40-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grubby-8.40-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6243/grubby-8.40-1.fc22
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-04-21 19:06:01 UTC
grubby-8.40-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.