You are not logged in.

#1 2014-11-10 22:15:35

toni
Member
Registered: 2011-10-15
Posts: 437

efibootmgr outputs weird errors

efibootmgr reports below when typing: efibootmgr -v

BootCurrent: 0011
Timeout: 2 seconds
BootOrder: 0004,0011,0000,0001,0002,0003
Boot0000* Windows Boot Manager
Error in 'efibootmgr': free() : invalid pointer: 0x.............
===== Backtrace ==========
/usr/lib/libc.so.6 (......)
efibootmgr [.....]
/usr/lib/libc.so.6 (_libc_start_main+0xf0)[.....]
efibootmgr[......]
===== Memory map ========
.................... /usr/lib/efibootmgr
.................... /usr/lib/libgcc-5.so.1
.................... /usr/lib/libdl-2.20.so
.................... /usr/lib/libresolv.2.20.so
.................... /usr/lib/libc.2.20.so
.................... /usr/lib/libefivar.so.0
.................... /usr/lib/libpci.so.3.2.1
.................... /usr/lib/ld-2.20.so

How can I solve this?

Offline

#2 2014-11-11 04:54:29

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: efibootmgr outputs weird errors

It sounds like a bug in efibootmgr. Here is what you should do:

1) recompile efibootmgr and glibc from ABS with '!strip' and 'debug' flags. This provide more information about crash stack trace.
2) report bug upstream (efibootmgr)


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2014-11-11 04:56:10

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: efibootmgr outputs weird errors

Also try efibootmgr from [testing] (version 0.11). The problem might be fixed upstream already.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#4 2014-11-11 20:38:56

toni
Member
Registered: 2011-10-15
Posts: 437

Re: efibootmgr outputs weird errors

anatolik wrote:

It sounds like a bug in efibootmgr. Here is what you should do:

1) recompile efibootmgr and glibc from ABS with '!strip' and 'debug' flags. This provide more information about crash stack trace.
2) report bug upstream (efibootmgr)

I am not used to compile packages so could you indicate me a wiki page which I can consult in order for perfomings these tasks?

Offline

#5 2014-11-11 20:52:41

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: efibootmgr outputs weird errors

toni wrote:

I am not used to compile packages so could you indicate me a wiki page which I can consult in order for perfomings these tasks?

https://wiki.archlinux.org/index.php/Arch_Build_System
https://wiki.archlinux.org/index.php/Makepkg


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#6 2014-11-11 23:43:44

\hbar
Member
Registered: 2014-03-15
Posts: 165

Re: efibootmgr outputs weird errors

It's an incompatibility between efivar 0.15 and efibootmgr 0.8 . When efibootmgr 0.11 makes it from testing to core, it should work fine. In the meantime, if you don't want to compile the package yourself, you can install efibootmgr-git from the aur.

Offline

#7 2014-11-13 23:52:11

toni
Member
Registered: 2011-10-15
Posts: 437

Re: efibootmgr outputs weird errors

\hbar wrote:

It's an incompatibility between efivar 0.15 and efibootmgr 0.8 . When efibootmgr 0.11 makes it from testing to core, it should work fine. In the meantime, if you don't want to compile the package yourself, you can install efibootmgr-git from the aur.

I have installed below packages:

efibootmgr 0.11.0-1
efivar 0.15-1

Now efibootmgr outputs correct information without crashing:

BootCurrent: 0005
Timeout: 2 seconds
BootOrder: 0005,0000,0001,0002,0003,0004,0002,0000,0000
Boot0000* Windows Boot Manager	HD(2,200800,32000,977cd65a-eba5-11e3-b3df-60029210ec8f)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* UEFI: IP4 Realtek PCIe GBE Family Controller	ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(MAC(d897ba11434f,0)..BO
Boot0002* UEFI: IP6 Realtek PCIe GBE Family Controller	ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(MAC(d897ba11434f,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000..BO
Boot0003* Linux Boot Manager	HD(4,2522e800,200000,1af51a36-df2b-48ce-b0df-727d1dacdf30)File(\EFI\gummiboot\gummibootx64.efi)
Boot0004* Gummiboot	HD(4,2522e800,200000,1af51a36-df2b-48ce-b0df-727d1dacdf30)File(\EFI\gummiboot\gummibootx64.efi)
Boot0005* UEFI: Generic Flash Disk 8.07	ACPI(a0341d0,0)PCI(14,0)USB(3,0)HD(1,800,1dfc00,0002ffa3)..BO

I have observed that in my EFI partition a new folder grub has been created after installing new efibootmgr 0.11.0-1. Now my boot partition (EFI System partition) looks like below:


/boot
|-- EFI
|   |-- Boot
|   |   `-- BOOTX64.EFI
|   `-- gummiboot
|       `-- gummibootx64.efi
|-- grub
|   `-- grub.cfg
|-- initramfs-linux-fallback.img
|-- initramfs-linux.img
|-- loader
|   |-- entries
|   |   `-- arch.conf
|   `-- loader.conf
`-- vmlinuz-linux

6 directories, 8 files

Also I posted here my blkid output:

/dev/sda1: LABEL="ARCH_201411" UUID="CE97-B268" TYPE="vfat" PARTUUID="0002ffa3-01"
/dev/sdb2: UUID="d95a78a9-f22c-4558-ac49-cec0cf2f980f" TYPE="ext4" PARTUUID="5cbfd28a-df68-4752-86d8-9863f2a0969f"
/dev/sdb3: UUID="Q5w0H1-Efb8-H03m-un9v-wsqG-vT8t-3yeSY3" TYPE="LVM2_member" PARTUUID="7f33830c-d668-4cfa-92f5-84835f4c9fbf"
/dev/sdb4: LABEL="UEFI" UUID="DED6-7DD2" TYPE="vfat" PARTUUID="1af51a36-df2b-48ce-b0df-727d1dacdf30"
/dev/sdc1: LABEL="System" UUID="7496938096934192" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="977cd652-eba5-11e3-b3df-60029210ec8f"
/dev/sdc2: UUID="4094-1C14" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="977cd65a-eba5-11e3-b3df-60029210ec8f"
/dev/sdc3: UUID="C0C09561C0955F0A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="977cd65c-eba5-11e3-b3df-60029210ec8f"
/dev/sdc4: LABEL="TI31299800C" UUID="3ED09800D097BC99" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="977cd664-eba5-11e3-b3df-60029210ec8f"
/dev/sdc5: LABEL="Recovery" UUID="48801C7E801C74A2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="7ede7fc5-3852-11e4-9167-d897ba11434f"
/dev/loop0: TYPE="squashfs"
/dev/loop1: UUID="ece4aa52-a24f-4585-a448-f43320f58b05" TYPE="ext4"
/dev/loop2: UUID="ece4aa52-a24f-4585-a448-f43320f58b05" TYPE="ext4"
/dev/mapper/arch_airootfs: UUID="ece4aa52-a24f-4585-a448-f43320f58b05" TYPE="ext4"
/dev/mapper/VolGroup00-lvolswap: UUID="40b01f68-9104-4213-bd81-e76050b97492" TYPE="swap"
/dev/mapper/VolGroup00-lvolhome: UUID="9cdde0e7-2fb9-470c-8592-075d34a26999" TYPE="ext4"
/dev/mapper/VolGroup00-lvolroot: UUID="b43132f0-7cee-4d3a-a634-40f3ce4f133f" TYPE="ext4"
/dev/mapper/VolGroup00-lvolvar: UUID="a5ad70cb-25ef-462a-9962-ff321f266bca" TYPE="ext4"
/dev/sdb1: PARTUUID="6d28aac9-0ca1-4345-9257-a4d97508e98d"

Anyway, gummiboot menu does not appear so I cannot boot into arch linux. Why?

Last edited by toni (2014-11-13 23:58:39)

Offline

#8 2014-11-14 00:09:06

\hbar
Member
Registered: 2014-03-15
Posts: 165

Re: efibootmgr outputs weird errors

Isn't windows before gummiboot in your boot order? If so, then there would be no reason for gummiboot to show up. Also, I doubt that efibootmgr touched /boot.

Offline

#9 2014-11-14 00:27:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: efibootmgr outputs weird errors

This is a [Solved] thread now with a crosspost: https://wiki.archlinux.org/index.php/Fo … ss-Posting

Continuing in the original thread: https://bbs.archlinux.org/viewtopic.php?id=189642


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB