# sgdisk --version GPT fdisk (sgdisk) version 1.0.9.1 Segmentation fault (core dumped) # Reproduces every time on my machine (x86_64, Sisyphus) and on hifive unmatched (sisyphus_riscv64).
Backtrace on x86_64 with debug symbols installed: #0 0x00007ffff7980a19 in __strlen_avx2 () from /lib64/libc.so.6 #1 0x00007ffff789f9bf in __GI___strdup (s=0x0) at strdup.c:41 #2 0x0000555555559292 in GPTDataCL::DoOptions (argv=<optimized out>, argc=<optimized out>, this=0x7fffffffc5c0) at /usr/src/debug/gptfdisk-1.0.9/gptcl.cc:158 #3 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/gptfdisk-1.0.9/sgdisk.cc:20 Line 158 of gptcl.cc indeed calls strdup, which does not accept NULLs as first argument.
gptfdisk-1.0.9.1-alt1 -> sisyphus: Wed Oct 05 2022 Alexey Shabalin <shaba@altlinux> 1.0.9.1-alt1 - Fix NULL dereference when duplicating string argument (ALT#43956)
Исправлено в gdisk-1.0.9.1-alt1: $ /usr/sbin/sgdisk --version; echo $? GPT fdisk (sgdisk) version 1.0.9.1 0