Bug 116421 - Segmentation fault with "iptables-restore -c"
Summary: Segmentation fault with "iptables-restore -c"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: iptables
Version: 9
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-20 22:15 UTC by Edson Da Luz
Modified: 2007-03-27 04:14 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-02-26 14:22:07 UTC
Embargoed:


Attachments (Terms of Use)

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.


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