From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: I was attempting to use /usr/lib/rpm/tgpg to verify rpm signatures but the program failed. I investiaged the script a bit and it appeared that the following line was causing a segfault: rpm -qp -vv --qf '%{siggpg:armor}' $pkg > $detached This occured with any of the red hat errata rpms including the following sample rpm: http://www.kleemann.org/crap/fetchmail-5.9.0-21.8.0.i386.rpm If I remove ':armor' then rpm no longer seg faults. This bug surfaced from the following thread on the rpm mailing list: https://listman.redhat.com/mailman/private/rpm-list/2002-December/017411.html Jeff Johnson suggested that I enter this into bugzilla. Version-Release number of selected component (if applicable): 4.1 How reproducible: Always
Reproduced, thanks for the report.
Crapola, an attempt to output unformatted binary data directly broke %{siggpg:armor}. Fixed in rpm-4.2-0.46, mktemp handling in the tgpg script as well.