Bug 444389 - rpm broken pipe error
Summary: rpm broken pipe error
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 9
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-28 05:17 UTC by Christopher Tubbs
Modified: 2009-01-07 09:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-07 09:29:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Christopher Tubbs 2008-04-28 05:17:21 UTC
Description of problem:
rpm -qa --last | anything
gives a broken pipe error message that appears to be from awk

Version-Release number of selected component (if applicable):
rpm-4.4.2.3-2.fc9.i386
gawk-3.1.5-17.fc9.i386

How reproducible:
100%

Steps to Reproduce:
1. rpm -qa --last | head
  
Actual results:
the output is exactly as expected, except an error is printed to STDERR that
says "awk: (FILENAME=- FNR=xxx) fatal: printf to "standard output" failed
(Broken pipe)"

Expected results:
no error message was expected

Additional info:
bug observed in Fedora 9 i386 (pre-release)

Comment 1 Panu Matilainen 2008-05-02 08:43:17 UTC
Yup. This comes from NSRP (indirectly invoked by NSS, which rpm now uses for
lowlevel crypto) disabling SIGPIPE which awk and many other cli tools expect for
normal pipe termination instead of EPIPE. 

Easy to fix by resetting SIGPIPE to default action for --pipe (which --last
alias uses), fixed upstream now.

Comment 2 Bug Zapper 2008-05-14 10:17:18 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Panu Matilainen 2008-07-14 12:09:58 UTC
Fixed in rawhide by the new rpm, should probably fix in F9 too...

Comment 4 Fedora Update System 2008-12-18 00:37:22 UTC
rpm-4.4.2.3-3.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing-newkey update rpm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-11390

Comment 5 Fedora Update System 2009-01-07 09:28:52 UTC
rpm-4.4.2.3-3.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.


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