Bug 2121733

Summary: sgdisk crashes because of popt!
Product: [Fedora] Fedora Reporter: Marius Vollmer <mvollmer>
Component: gdiskAssignee: Terje Røsten <terje.rosten>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: CockpitTest
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-28 11:32:38 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:

Description Marius Vollmer 2022-08-26 12:54:54 UTC
Description of problem:

sgdisk crashes!

Version-Release number of selected component (if applicable):
gdisk-1.0.9-3.fc37.x86_64
popt-1.19~rc1-4.fc38.x86_64

How reproducible:
Always!

Steps to Reproduce:
1. sgdisk /dev/null

Actual results:
Problem opening <Q�\ for reading! Error is 2.
The specified file does not exist!

Expected results:
The specified path is a character device!

Additional info:
This is apparently because of a update to popt, which exposed a long standing bug in sgdisk.  Upstream seems to be slowly working on a fix:

https://sourceforge.net/p/gptfdisk/code/ci/5d5e76d369a412bfb3d2cebb5fc0a7509cef878d/
https://sourceforge.net/p/gptfdisk/code/merge-requests/28/

sgdisk is used by libblockdev / blivet / anaconda / udisks2 / cockpit.

Comment 1 Marius Vollmer 2022-08-26 12:56:07 UTC
Well, it doesn't actually crash, but you get the point.

Comment 2 Terje Røsten 2022-08-28 11:32:38 UTC

*** This bug has been marked as a duplicate of bug 2100391 ***

Comment 3 Marius Vollmer 2022-08-29 06:56:48 UTC
(In reply to Terje Røsten from comment #2)
> 
> *** This bug has been marked as a duplicate of bug 2100391 ***

Thanks for fixing this!  For reference, this is the build for rawhide:

https://bodhi.fedoraproject.org/updates/FEDORA-2022-23ef6d2496