NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/60403: efi -v dumps core
>Number: 60403
>Category: bin
>Synopsis: efi -v dumps core
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 04 15:55:00 +0000 2026
>Originator: Ricardo Branco
>Release:
>Organization:
>Environment:
NetBSD nbsd.fritz.box 11.0_RC5 NetBSD 11.0_RC5 (GENERIC) #0: Tue Jun 30 14:30:15 UTC 2026 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The `efi -v` command dumps core.
>How-To-Repeat:
# gdb /sbin/efi efi.core
GNU gdb (GDB) 15.1
Copyright (C) 2024 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--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /sbin/efi...
Reading symbols from /usr/libdata/debug//sbin/efi.debug...
[New process 1998]
Core was generated by `efi'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007497d98d6f7a in _lwp_kill () from /lib/libc.so.12
(gdb) thread apply all bt full
Thread 1 (process 1998):
#0 0x00007497d98d6f7a in _lwp_kill () from /lib/libc.so.12
No symbol table info available.
#1 0x00007497d98e6584 in abort () at /usr/src/lib/libc/stdlib/abort.c:74
mask = {__bits = {4294967263, 4294967295, 4294967295, 4294967295}}
#2 0x00007497d989da2d in __assert13 (file=file@entry=0x7fa6eb "/usr/src/sbin/efi/devpath.c", line=line@entry=94, function=function@entry=0x7fe6e0 <__func__.0> "collapse_list", failedexpr=failedexpr@entry=0x7fa707 "next == NULL") at /usr/src/lib/libc/gen/assert.c:72
buf = "assertion \"next == NULL\" failed: file \"/usr/src/sbin/efi/devpath.c\", line 94, function \"collapse_list\"\n\000\000\000\000\000\000\000\000\000\000P\000\000\000\000\000\000\300\000 \331\227t\000\000\000\000\000\000\000\001\000\000\000\020\000\000\000\000\000\000\200w\\\377\177\177\000\000d:\206\331\227t\000\000\000\020", '\000' <repeats 14 times>, "\177w\\\377\177\177\000\000\000P", '\000' <repeats 14 times>...
l = <optimized out>
#3 0x00000000007eea99 in collapse_list (dlen=<optimized out>, dmsg=0x0, plen=<optimized out>, head=0x7f7fff5c7af0) at /usr/src/sbin/efi/devpath.c:94
blk = 0x7497d971c270
next = 0x7497d971c2a0
bp = <optimized out>
path = 0x7497d96f2000 "PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/MAC(8c32237fea21,0)/IPv4(0.0.0.0,HOPOPT,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)"
blk = <optimized out>
next = <optimized out>
bp = <optimized out>
path = <optimized out>
__func__ = "collapse_list"
#4 devpath_parse (dp=dp@entry=0x7497d9712070, dplen=<optimized out>, dmsg=0x0) at /usr/src/sbin/efi/devpath.c:158
head = {sqh_first = 0x7497d971c180, sqh_last = 0x7497d971c320}
blk = <optimized out>
u = <optimized out>
dlen = <optimized out>
plen = <optimized out>
ep = <optimized out>
#5 0x00000000007f73b4 in show_boot_data (v=v@entry=0x7497d9715050, debug=debug@entry=131072, max_namelen=max_namelen@entry=0) at /usr/src/sbin/efi/showvar.c:372
info = {name = 0x7497d9733080 "Boot0002", Attributes = 1, Description = 0x7497d96fc000 "UEFI: PXE IPv4 Realtek PCIe 2.5GBE Family Controller", devpath = 0x7497d9712070, OptionalData = 0x7497d9712142 "", OptionalDataSize = 4}
u = {cp = 0x7497d9712000 "\001", bb = 0x7497d9712000}
args = <optimized out>
dmsg = 0x0
path = <optimized out>
sz = <optimized out>
dbg = false
verbose = true
ep = <optimized out>
__func__ = "show_boot_data"
#6 0x00000000007f7873 in show_variable (v=0x7497d9715050, debug=debug@entry=131072, max_namelen=max_namelen@entry=0) at /usr/src/sbin/efi/showvar.c:549
preg = {re_magic = 62053, re_nsub = 7, re_endp = 0x0, re_g = 0x7497d9735000}
tp = <optimized out>
tbl = {{name = 0x7fbb32 "AuditMode", fn = 0x7f7146 <show_array8_data>}, {name = 0x7fbb3c "BootCurrent", fn = 0x7f70d8 <show_array16_data>}, {name = 0x7fb954 "BootNext", fn = 0x7f70d8 <show_array16_data>}, {name = 0x7fbb48 "BootOptionSupport", fn = 0x7f7708 <show_BootOptionSupport_data>}, {name = 0x7fa33e "BootOrder", fn = 0x7f70d8 <show_array16_data>}, {name = 0x7fbb5a "BootOrderDefault", fn = 0x7f70d8 <show_array16_data>}, {name = 0x7fbba8 "ConIn", fn = 0x7f71b6 <show_filelist_data>}, {name = 0x7fbbae "ConInDev", fn = 0x7f71b6 <show_filelist_data>}, {name = 0x7fbbb7 "ConOut", fn = 0x7f71b6 <show_filelist_data>}, {name = 0x7fbbbe "ConOutDev", fn = 0x7f71b6 <show_filelist_data>}, {name = 0x7fbbc8 "DriverOrder", fn = 0x7f70d8 <show_array16_data>}, {name = 0x7fbbd4 "ErrOut", fn = 0x7f71b6 <show_filelist_data>}, {name = 0x7fbbdb "ErrOutDev", fn = 0x7f71b6 <show_filelist_data>}, {name = 0x7fbbe5 "KEK", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbbe9 "KEKDefault", fn = 0x7ee3cb <
show_cert_data>}, {name = 0x7fbbf4 "OsIndications", fn = 0x7f768c <show_OsIndications_data>}, {name = 0x7fbc02 "OsIndicationsSupported", fn = 0x7f768c <show_OsIndications_data>}, {name = 0x7fbc19 "PK", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbc1c "PKDefault", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbc26 "PlatformLang", fn = 0x7f7627 <show_asciiz_data>}, {name = 0x7fbc33 "PlatformLangCodes", fn = 0x7f7627 <show_asciiz_data>}, {name = 0x7fbc45 "ProtectedBootOptions", fn = 0x7f70d8 <show_array16_data>}, {name = 0x7fbc5a "SecureBoot", fn = 0x7f7146 <show_array8_data>}, {name = 0x7fbc65 "SetupMode", fn = 0x7f7146 <show_array8_data>}, {name = 0x7fbc6f "SignatureSupport", fn = 0x7f7540 <show_uuid_array_data>}, {name = 0x7fbc80 "SysPrepOrder", fn = 0x7f70d8 <show_array16_data>}, {name = 0x7fb976 "Timeout", fn = 0x7f708c <show_Timeout_data>}, {name = 0x7fbc8d "VendorKeys", fn = 0x7f7146 <show_array8_data>}, {name = 0x7fbb6b "db", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb9e "d
bDefault", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb6e "dbr", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb72 "dbrDefault", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb7d "dbt", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb81 "dbtDefault", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb8c "dbx", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb90 "dbxDefault", fn = 0x7ee3cb <show_cert_data>}, {name = 0x7fbb9b "devdbDefault", fn = 0x7ee3cb <show_cert_data>}}
dbg = false
rv = 8400984
#7 0x00000000007f8f75 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/sbin/efi/main.c:702
max_namelen = 17
flags = 131072
longopts = {{name = 0x7fa050 "brief", has_arg = 0, flag = 0x0, val = 256}, {name = 0x7fa45a "debug", has_arg = 2, flag = 0x0, val = 257}, {name = 0x7fa460 "append-binary-args", has_arg = 1, flag = 0x0, val = 64}, {name = 0x7fa473 "inactive", has_arg = 2, flag = 0x0, val = 65}, {name = 0x7fa475 "active", has_arg = 2, flag = 0x0, val = 97}, {name = 0x7fa47c "delete-bootnum", has_arg = 2, flag = 0x0, val = 66}, {name = 0x7fa483 "bootnum", has_arg = 1, flag = 0x0, val = 98}, {name = 0x7fa117 "create-only", has_arg = 0, flag = 0x0, val = 67}, {name = 0x7fa123 "create", has_arg = 0, flag = 0x0, val = 99}, {name = 0x7fa12a "remove-dups", has_arg = 0, flag = 0x0, val = 68}, {name = 0x7fa48b "disk", has_arg = 1, flag = 0x0, val = 100}, {name = 0x7fa155 "no-reconnect", has_arg = 0, flag = 0x0, val = 70}, {name = 0x7fa158 "reconnect", has_arg = 0, flag = 0x0, val = 102}, {name = 0x7fa490 "show-gpt", has_arg = 2, flag = 0x0, val = 71}, {name = 0x7fa18a "help", has_arg = 0, flag = 0x0, va
l = 104}, {name = 0x7fa19c "label", has_arg = 1, flag = 0x0, val = 76}, {name = 0x7fa499 "loader", has_arg = 1, flag = 0x0, val = 108}, {name = 0x7fa1d4 "delete-bootnext", has_arg = 0, flag = 0x0, val = 78}, {name = 0x7fa1db "bootnext", has_arg = 1, flag = 0x0, val = 110}, {name = 0x7fa223 "delete-bootorder", has_arg = 0, flag = 0x0, val = 79}, {name = 0x7fa22a "bootorder", has_arg = 1, flag = 0x0, val = 111}, {name = 0x7fa4a0 "part", has_arg = 1, flag = 0x0, val = 112}, {name = 0x7fa271 "quiet", has_arg = 0, flag = 0x0, val = 113}, {name = 0x7fa4a5 "regexp", has_arg = 1, flag = 0x0, val = 82}, {name = 0x7fa284 "driver", has_arg = 0, flag = 0x0, val = 114}, {name = 0x7fa29a "delete-timeout", has_arg = 0, flag = 0x0, val = 84}, {name = 0x7fa292 "timeout", has_arg = 1, flag = 0x0, val = 116}, {name = 0x7fa2c4 "version", has_arg = 0, flag = 0x0, val = 86}, {name = 0x7fa2e2 "verbose", has_arg = 0, flag = 0x0, val = 118}, {name = 0x7fa4ac "write-signature", has_arg = 2, flag = 0x0, val =
119}, {name = 0x7fa4bc "remove-bootorder", has_arg = 1, flag = 0x0, val = 88}, {name = 0x7fa4cd "prefix-bootorder", has_arg = 1, flag = 0x0, val = 120}, {name = 0x7fa35f "sysprep", has_arg = 0, flag = 0x0, val = 121}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
act_create = act_create
act_set_active = act_set_active
act_del_variable = act_del_variable
act_del_bootnext = act_del_bootnext
act_set_bootnext = act_set_bootnext
act_del_bootorder = act_del_bootorder
act_set_bootorder = act_set_bootorder
act_prefix_bootorder = act_prefix_bootorder
act_remove_bootorder = act_remove_bootorder
act_del_bootorder_dups = act_del_bootorder_dups
act_set_timeout = act_set_timeout
act_del_timeout = act_del_timeout
act_show = act_show
act_show_gpt = act_show_gpt
action = act_show
var_array = 0x7497d971a000
var_hdl = 0x803058 <list_head>
fname = 0x0
i = 2
var_cnt = 8
ch = <optimized out>
efi_fd = 3
byte_order = {val = 16909060, b = "\004\003\002\001"}
__func__ = "main"
(gdb)
>Fix:
Home |
Main Index |
Thread Index |
Old Index