Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 81130 - SRPMS: `rpm -bb` hangs if compile-error has been encountered
SRPMS: `rpm -bb` hangs if compile-error has been encountered
Product: Red Hat Linux
Classification: Retired
Component: compat-gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2003-01-05 03:16 EST by Sysoltsev Slawa
Modified: 2007-04-18 12:49 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-07 09:38:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
log done by `rpmbuild --define "_topdir $(pwd)/.." --define "_tmppath $(pwd)/../tmp" -bb` (77.71 KB, application/x-gzip-compressed)
2003-01-05 03:19 EST, Sysoltsev Slawa
no flags Details

  None (edit)
Description Sysoltsev Slawa 2003-01-05 03:16:25 EST
Description of problem:
I can't build compat-gcc-7.3-2.96.110 by GNU cc - amongst warnings compiler 
emits error and then rpm hangs. Problem appear when output from rpm is 
pipelined, for example like `rpm ... | tee LOG`.
As I could get from `ps`, system waits two /bin/sh, which are spawned somewhere 
during build. They have parent PID as 1 and they don't exit. So parent of `rpm` 
becomes <defunct> waiting infinitely for child cleaning.
In this tracker you shouldn't mind about compilation errors during build but you 
should pay attention to such ill-formed build process, where compilation error 
causes hanging. Seems something inside has been finished unclearly. As 
installation script is usually run with root privilege, extra attention should be paid to 

I’ll attach the log, done by ` rpmbuild --define "_topdir $(pwd)/.." --define "_tmppath 
$(pwd)/../tmp" -bb compat-gcc.spec 2>&1 | tee LOG` command with ctrl/C in the 
end (when it hangs). Feel free to contact me if you can’t reproduce this bug (I note 
that you are to have error inside build, so probably erroneous patch will be needed 
for you).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. rpm -i compat-gcc-7.3-2.96.110.src.rpm
2. cd to SPECS directory
3. rpmbuild --define "_topdir $(pwd)/.." --define "_tmppath $(pwd)/../tmp" -bb 
compat-gcc.spec 2>&1 | tee LOG

Actual results:
Installation error and hanging

Expected results:
At least any exit without hanging and without extra running program left in memory.

Additional info:
Comment 1 Sysoltsev Slawa 2003-01-05 03:19:16 EST
Created attachment 89140 [details]
log done by `rpmbuild --define "_topdir $(pwd)/.." --define "_tmppath $(pwd)/../tmp" -bb`

archived, to unpack: tar -xzvf LOG.tgz
Comment 2 Jakub Jelinek 2004-10-07 09:38:31 EDT
compat-gcc with 2.96-RH is no longer included in the distribution.

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