Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 116421

Summary: Segmentation fault with "iptables-restore -c"
Product: [Retired] Red Hat Linux Reporter: Edson Da Luz <edson.daluz>
Component: iptablesAssignee: Thomas Woerner <twoerner>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 9   
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: 2004-02-26 14:22:07 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 Edson Da Luz 2004-02-20 22:15:47 UTC
Description of problem:
"iptables-restore" crashes with a "segmentation fault" error when used
with option "-c" and a configuration file created manually. After
several tests I found out that the problem happens when the
configuration file doesn't have the packet/byte counters (e.g. [0:0])
included with the chain names (lines beginnibg with ":"). The counters
must be included in the file in order for "iptables-restore -c" to
work properly. If "iptables-restore" is used without "-c", then the
counters can be omitted from the file.

Version-Release number of selected component (if applicable):
iptables-1.2.7a-2 (original Red Hat 9 distribution)

How reproducible:

Steps to Reproduce:
1. Use iptables-save to create a configuration file.
2. Edit this file and remove all packet/byte counters (e.g. [0:0])
from the file.
3. Load the same file with "iptables-restore -c".
  
Actual results:
"iptables-restore -c" crashes.

Expected results:
"iptables-restore -c" should work properly I think.

Additional info:

Comment 1 Thomas Woerner 2004-02-26 14:22:07 UTC
Fixed in rawhide in rpm iptables-1.2.9-2.3 or newer.