Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2165136 - grub2-2.06-77.fc38 crashing in `grub2-mkconfig`
Summary: grub2-2.06-77.fc38 crashing in `grub2-mkconfig`
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: rawhide
Hardware: x86_64
OS: All
unspecified
high
Target Milestone: ---
Assignee: Javier Martinez Canillas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: openqa
Depends On:
Blocks: F38BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2023-01-27 20:07 UTC by Adam Williamson
Modified: 2023-01-27 22:47 UTC (History)
6 users (show)

Fixed In Version: grub2-2.06-78.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-27 22:47:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
backtrace of crashed grub2-probe (deleted)
2023-01-27 20:35 UTC, Adam Williamson
no flags Details

Description Adam Williamson 2023-01-27 20:07:38 UTC
grub2-2.06-77.fc38 seems to crash consistently in an openQA test which runs `grub2-mkconfig -o $(readlink -m /etc/grub2.cfg)`. The journal shows:

Jan 27 11:54:03 localhost.localdomain kernel: grub2-probe[1792]: segfault at 28 ip 0000559ac5b459e6 sp 00007ffceea96e40 error 4 in grub2-probe[559ac5a54000+102000] likely on CPU 1 (core 1, socket 0)
Jan 27 11:54:03 localhost.localdomain kernel: Code: c7 b8 00 00 00 00 e8 7c dd fe ff 48 8b 45 c8 48 89 c6 48 8d 05 6b b2 03 00 48 89 c7 b8 00 00 00 00 e8 8b b4 fe ff 48 8b 45 90 <48> 8b 40 28 48 85 c0 74 11 48 8b 45 90 48 8b 40 28 48 8b 40 10 48
Jan 27 11:54:03 localhost.localdomain audit[1792]: ANOM_ABEND auid=0 uid=0 gid=0 ses=3 subj=unconfined_u:unconfined_r:bootloader_t:s0-s0:c0.c1023 pid=1792 comm="grub2-probe" exe="/usr/sbin/grub2-probe" sig=11 res=1
Jan 27 11:54:03 localhost.localdomain systemd[1]: Created slice system-systemd\x2dcoredump.slice - Slice /system/systemd-coredump.
Jan 27 11:54:03 localhost.localdomain audit: BPF prog-id=138 op=LOAD
Jan 27 11:54:03 localhost.localdomain audit: BPF prog-id=139 op=LOAD
Jan 27 11:54:03 localhost.localdomain audit: BPF prog-id=140 op=LOAD
Jan 27 11:54:03 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@0-1796-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 27 11:54:03 localhost.localdomain systemd[1]: Started systemd-coredump - Process Core Dump (PID 1796/UID 0).
Jan 27 11:54:03 localhost.localdomain systemd-coredump[1797]: Resource limits disable core dumping for process 1792 (grub2-probe).
Jan 27 11:54:03 localhost.localdomain systemd-coredump[1797]: Process 1792 (grub2-probe) of user 0 dumped core.
Jan 27 11:54:03 localhost.localdomain systemd[1]: systemd-coredump: Deactivated successfully.

I haven't backtraced the dump yet.

Comment 1 Adam Williamson 2023-01-27 20:32:54 UTC
This breaks install: https://openqa.fedoraproject.org/tests/1722170

so marking it as a Beta blocker as a violation of "The installer must be able to complete an installation to a single disk using automatic partitioning" (and any other "install must work" criterion).

Comment 2 Adam Williamson 2023-01-27 20:35:17 UTC
Created attachment 1940804 [details]
backtrace of crashed grub2-probe

Here's a backtrace of the crashed grub2-probe process. Note before the backtrace, gdb shows the message "142    ../grub-core/disk/diskfilter.c: Bad file descriptor."

Comment 3 Robbie Harwood 2023-01-27 22:47:50 UTC
With new build, this no longer reproduces under local testing.


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