Bug 6086 - rpmquery crashes on a certain queryformat string
Summary: rpmquery crashes on a certain queryformat string
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-10 19:22 MSK by Ivan Zakharyaschev
Modified: 2005-06-30 02:30 MSD (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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