Bug 6086

Summary: rpmquery crashes on a certain queryformat string
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: rpmAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: at, glebfm, imz, ldv, placeholder, vt
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2005-02-10 19:22:53 MSK
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.
$
Comment 1 Dmitry V. Levin 2005-02-10 19:35:56 MSK
This one also causes crash:

$ rpmquery --qf='%{NAME} [] ' rpm
Segmentation fault
Comment 2 Dmitry V. Levin 2005-06-30 02:30:40 MSD
Fixed in 4.0.4-alt46