bugzilla-daemon at netfilter.org
2013-Oct-25 14:16 UTC
[Bug 869] New: Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869
Summary: Segmentation fault when listing table/set
Product: nftables
Version: unspecified
Platform: All
OS/Version: Debian GNU/Linux
Status: NEW
Severity: major
Priority: P5
Component: nft
AssignedTo: pablo at netfilter.org
ReportedBy: ave_it_son1 at hotmail.com
Estimated Hours: 0.0
nft list table filter was working ok until I added the following set command:
root at Deb1:/home/alex/nftables# nft add set filter ipv4_ad { type
ipv4_address\;}
root at Deb1:/home/alex/nftables#
root at Deb1:/home/alex/nftables#
root at Deb1:/home/alex/nftables# nft list table filter
Segmentation fault
root at Deb1:/home/alex/nftables# nft list table filter
Segmentation fault
As you can see I now get a Segfault. I get the same when attempting to list the
set.
root at Deb1:/home/alex/nftables# nft list set filter ipv4_ad
Segmentation fault
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Oct-25 14:21 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869
--- Comment #1 from ave_it_son1 at hotmail.com 2013-10-25 16:21:56 CEST ---
Deleting the set has fixed it.
root at Deb1:/home/alex/nftables# nft delete set filter ipv4_ad
root at Deb1:/home/alex/nftables# nft list table filter
table ip filter {
chain input {
type filter hook input priority 0;
}
chain forward {
type filter hook forward priority 0;
}
chain output {
type filter hook output priority 0;
}
}
What does the 'filter' section of the command above refer to? The guide
says to
use 'global' but it does not allow me to enter this.
root at Deb1:/home/alex/nftables# nft add set global ipv4_ad { type
ipv4_address\;}
internal:0:0-0: Error: Could not add set: No such file or directory
As it took 'filter' as a replacement for 'global' I had assumed
they were
somehow linked to the table name.
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Oct-25 14:22 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869
ave_it_son1 at hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Oct-25 14:40 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869 --- Comment #2 from ave_it_son1 at hotmail.com 2013-10-25 16:40:27 CEST --- Created attachment 416 --> https://bugzilla.netfilter.org/attachment.cgi?id=416 strace when running command -- Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Oct-25 15:12 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869
Pablo Neira Ayuso <pablo at netfilter.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #3 from Pablo Neira Ayuso <pablo at netfilter.org> 2013-10-25
17:12:34 CEST ---
strace is not very useful, please better post a valgrind/gdb trace
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Oct-25 16:20 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869 --- Comment #4 from Phil Oester <netfilter at linuxace.com> 2013-10-25 18:20:50 CEST --- Created attachment 417 --> https://bugzilla.netfilter.org/attachment.cgi?id=417 Proposed libnftables patch The attached patch should fix this for you. -- Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Oct-25 16:23 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869
Phil Oester <netfilter at linuxace.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |netfilter at linuxace.com
--- Comment #5 from Phil Oester <netfilter at linuxace.com> 2013-10-25
18:23:32 CEST ---
(In reply to comment #1)
> What does the 'filter' section of the command above refer to? The
guide says to
> use 'global' but it does not allow me to enter this.
>
> As it took 'filter' as a replacement for 'global' I had
assumed they were
> somehow linked to the table name.
Filter is the name of the table. There is no table named "global"
unless you
create one (nft add table global).
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Oct-25 16:27 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869
Phil Oester <netfilter at linuxace.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |DUPLICATE
--- Comment #6 from Phil Oester <netfilter at linuxace.com> 2013-10-25
18:27:16 CEST ---
Just looked at bug 868, and this is the same issue. Closing this bug as dupe.
*** This bug has been marked as a duplicate of bug 868 ***
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
bugzilla-daemon at netfilter.org
2013-Nov-05 17:50 UTC
[Bug 869] Segmentation fault when listing table/set
https://bugzilla.netfilter.org/show_bug.cgi?id=869 --- Comment #7 from ave_it_son1 at hotmail.com 2013-11-05 18:50:00 CET --- It works for me. Great work thanks guys! -- Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.