Bug 1204353 - abort *** Error in `/sbin/grubby': free(): invalid pointer:
Summary: abort *** Error in `/sbin/grubby': free(): invalid pointer:
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: grubby
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-21 09:36 UTC by Yanko Kaneti
Modified: 2015-04-21 19:06 UTC (History)
2 users (show)

Fixed In Version: grubby-8.40-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-21 19:06:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
/boot/grub/grub.conf (5.61 KB, text/plain)
2015-03-21 09:36 UTC, Yanko Kaneti
no flags Details

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.


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