Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-iptables causes the python interperter to segfault when trying to create a conntrack match #53

Closed
chutz opened this issue Feb 3, 2014 · 5 comments

Comments

@chutz
Copy link

chutz commented Feb 3, 2014

This is with iptables-1.4.20, and python-iptables-0.3.0 reproducible every time on multiple machines:

Python 2.7.5 (default, Dec  2 2013, 19:51:53) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import iptc
>>> rule = iptc.Rule()
>>> iptc.Match(rule, 'conntrack')
Segmentation fault
@ldx
Copy link
Owner

ldx commented Feb 4, 2014

I can reproduce this, looking into it.

@chutz
Copy link
Author

chutz commented Feb 4, 2014

Bisecting narrowed it down to commit 2bf0827 which is not exactly surprising.

I have a gdb backtrace as well, if that would help.

ldx pushed a commit that referenced this issue Feb 4, 2014
@ldx
Copy link
Owner

ldx commented Feb 4, 2014

Can you give the linked commit a spin? This should fix the problem.

I'll also add a test later, and will merge into master if it looks good at your side as well.

Thanks!

@chutz
Copy link
Author

chutz commented Feb 4, 2014

This does fix that issue.

@chutz
Copy link
Author

chutz commented Feb 4, 2014

Using the "issue53" branch with all the commits there makes everything work as expected.

Thanks

@ldx ldx closed this as completed in 789b63e Feb 5, 2014
ldx added a commit that referenced this issue Feb 5, 2014
a-martynovich pushed a commit to GreatFruitOmsk/python-iptables that referenced this issue May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants