Bug 78862

Summary: rpmbuild segfaults on (erroneous) --rebuild <specfile>
Product: [Retired] Red Hat Raw Hide Reporter: Luca Barbieri <ldb>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-02 14:26:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Luca Barbieri 2002-12-02 12:42:00 UTC
Description of Problem:
If rpmbuild --rebuild is incorrectly called on a specfile, it segfaults.

Version-Release number of selected component (if applicable):
rpm-build-4.2-0.12

How Reproducible:
Every time.

Steps to Reproduce:
1. rpmbuild --rebuild <specfile>

Actual Results:
Segmentation fault

Expected Results:
An error message notifying the user that the file is not an SRPMS should be printed.

Additional Information:

Comment 1 Michael Lee Yohe 2002-12-02 14:26:23 UTC
This behavior does not affect the Red Hat Linux 8 release of RPM (rpm-4.1-1.06):

$ rpmbuild --rebuild xscreensaver.spec 
Installing xscreensaver.spec
error: xscreensaver.spec cannot be installed


Comment 2 Jeff Johnson 2002-12-02 14:56:14 UTC
Yup. Fixed in rpm-4.2-0.17.

Comment 3 Michael Lee Yohe 2002-12-02 14:59:35 UTC
Resolution == Rawhide?

Comment 4 Jeff Johnson 2002-12-02 15:02:52 UTC
Yup, our paths crossed while adding comments.