Bug 127227 - Segv. when building an RPM with an empty .fc file
Segv. when building an RPM with an empty .fc file
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
powerpc Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-07-04 17:36 EDT by W. Michael Petullo
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

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

Attachments (Terms of Use)

  None (edit)
Description W. Michael Petullo 2004-07-04 17:36:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.6)
Gecko/20040510 Epiphany/1.2.4

Description of problem:
The rpm command consistently crashes with a segv. when building a
package that contains an empty SELinux file context definition file. 
For example, if the specification file contains:


and pam_keyring.fc is an empty file then the rpmbuild process will die:

+ install --owner=root --group=root --mode=0644
+ install --owner=root --group=root --mode=0644 config/pam_keyring.fc
files: pam_keyring-0.0.2-0.fdr.1
make: *** [rpm] Error 139

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

How reproducible:

Steps to Reproduce:
See above.  I can provide a tarball and RPM specification that causes
this crash if needed.

Additional info:
Comment 1 Jeff Johnson 2004-07-04 17:47:12 EDT
"Don't do that." is the only answer I got atm.
Comment 2 Jeff Johnson 2004-07-04 17:50:10 EDT
In fact, %policy is headed out of rpmbuild and *.spec files
entirely. There is no reason to attempt adding %policy
any more at all.

WONTFIX, in the sense that s/%policy// is no fix at all.

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