Bug 465766
| Summary: | yum localinstall hangs if package produces large number of errors (rpm scriplet stderr pipe blocks) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Grahame Bowland <g.bowland> |
| Component: | yum | Assignee: | Seth Vidal <skvidal> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 11 | CC: | ffesti, g.bowland, james.antill, jnovy, katzj, pmatilai, tim.lauridsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-07-10 23:13:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Grahame Bowland
2008-10-06 10:03:49 UTC
Does this NOT happen if the same package is in a repository? I had a quick look at this earlier ... I'm pretty sure it happens all the time, the basic problem being: 1. _setupOutputLogging() creates a write pipe. 2. rpm/scriptlets write to that while "blocking" yum 3. _scriptOutput() only does a single read() call. ...I'm not sure how much we'll buy if we change #3, really I think we need to have #2 fixed. This message is a reminder that Fedora 8 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 8. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '8'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 8's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 8 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Unless I'm completely mistaken at what yum does... a process trying to communicate with itself over a pipe will block if pipe size happens to be exceeded, yes. You'd need to launch a reader thread for the scriptlet output to avoid blocking. I assume that means it's really hard to fix inside rpm? Well, yeh, we can do a reader process ... basically: yum code <= process <= rpm code ...it just seemed like it'd be better to fix in rpm, if we could. As any API caller has to do something like the above currently (which is non-obvious). Anyway, yeh, we'll fix it. Ok, I've created two packages at: http://james.fedorapeople.org/yum/test-packages/ ...out-out spews lots of stuff to stdout (on %pre/%post%preun%postun), and out-err spews it to stderr ... AFAICS they both work fine on 3.0.1 (+RHEL-5 GA rpm) and current HEAD (+latest F10 rpm). So Grahame, do you have an rpm that produces the problem? This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping closing this as we have no feedback. |