rpm-4.0.4-alt41 What is queried is not important, originally discovered with --specfile. Steps to Reproduce: $ rpm -q rpm rpm-4.0.4-alt41 $ rpm -q --qf='[a]*' rpm Segmentation fault $ Another case (with an error message): $ rpm -q --qf='%{NAME}-[^-]*-[^-]*\.%{ARCH}' --specfile feat/drivers-console-unicode/kernel-feat-drivers-console-unicode.spec memory alloc (3705981875 bytes) returned NULL. $
This one also causes crash: $ rpmquery --qf='%{NAME} [] ' rpm Segmentation fault
Fixed in 4.0.4-alt46