Bug 6086 - rpmquery crashes on a certain queryformat string
: rpmquery crashes on a certain queryformat string
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/rpm)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2005-02-10 19:22 by
Modified: 2005-06-30 02:30 (History)


Attachments


Note

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


Description From 2005-02-10 19:22:53
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 From 2005-02-10 19:35:56 -------
This one also causes crash:

$ rpmquery --qf='%{NAME} [] ' rpm
Segmentation fault
------- Comment #2 From 2005-06-30 02:30:40 -------
Fixed in 4.0.4-alt46