Skip to contentSkip to conversation

iptables -> can't initialize iptables table `filter': Bad file descriptor

DISCUSSION Salatiel Filho 5 participants 26 messages Dec 2, 2007 – Dec 14, 2007 1 message not in the archive netfilter

lore
Share & tools
lore
#0 lore raw

HI guys , i don`t know if this is the right list , but i could not find help anywhere else.
I am having a very strange problem with my machine , i can not use iptables at all.
I have the modules compiled and loaded but i always get :

# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file descriptor
Perhaps iptables or your kernel needs to be upgraded.

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

# lsmod
Module                  Size  Used by
iptable_filter          2304  0
ip_tables              22016  1 iptable_filter

strace here:

strace iptables -L
execve("/sbin/iptables", ["iptables", "-L"], [/* 20 vars */]) = 0 uname({sys="Linux", node="LS-GL7D6", ...}) = 0
brk(0) = 0x1c000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40015000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25798, ...}) = 0 mmap2(NULL, 25798, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250\v\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9592, ...}) = 0 mmap2(NULL, 41124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40025000
mprotect(0x40027000, 32932, PROT_NONE) = 0 mmap2(0x4002e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x4002e000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", O_RDONLY)      = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\3703\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=68460, ...}) = 0 mmap2(NULL, 108188, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40030000
mprotect(0x40040000, 42652, PROT_NONE) = 0 mmap2(0x40047000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0x40047000 mmap2(0x40049000, 5788, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40049000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libselinux.so.1", O_RDONLY)  = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0 7\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=75268, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4004b000
mmap2(NULL, 109376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4004c000
mprotect(0x4005e000, 35648, PROT_NONE) = 0
mmap2(0x40065000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0x40065000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0HO\1\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1091216, ...}) = 0 mmap2(NULL, 1128068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40067000
mprotect(0x4016e000, 50820, PROT_NONE) = 0
mmap2(0x40175000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x106) = 0x40175000 mmap2(0x40178000, 9860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40178000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libsepol.so.1", O_RDONLY)    = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0h/\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=223904, ...}) = 0 mmap2(NULL, 297872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4017b000
mprotect(0x401b2000, 72592, PROT_NONE) = 0
mmap2(0x401b9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x36) = 0x401b9000 mmap2(0x401ba000, 39824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401ba000

close(3)                                = 0
mprotect(0x40175000, 8192, PROT_READ)   = 0
mprotect(0x40065000, 4096, PROT_READ)   = 0
mprotect(0x40047000, 4096, PROT_READ)   = 0
mprotect(0x4002e000, 4096, PROT_READ)   = 0
mprotect(0x4001c000, 4096, PROT_READ)   = 0
munmap(0x4001e000, 25798)               = 0
access("/etc/selinux/", F_OK)           = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x1c000
brk(0x3d000)                            = 0x3d000

open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(3, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 486

read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_INET, SOCK_RAW, IPPROTO_RAW)  = 3

getsockopt(3, SOL_IP, 0x40 /* IP_??? */, "filter\0@\0\0\0\0\340\257\6@h\262\4@\1\0\0\0\234\213\0"..., [84]) = 0 getsockopt(3, SOL_IP, 0x41 /* IP_??? */, 0x1c0c0, 0xbed05c10) = -1 EINVAL (Invalid argument)
close(3) = 0
open("/proc/sys/kernel/modprobe", O_RDONLY) = 3

read(3, "/sbin/modprobe\n", 1024)       = 15
close(3)                                = 0
fork()                                  = 22448

wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 22448 --- SIGCHLD (Child exited) @ 0 (0) ---
getsockopt(-1, SOL_IP, 0x40 /* IP_??? */, 0xbed05bb4, 0xbed05c0c) = -1 EBADF (Bad file descriptor)
write(2, "iptables v1.3.6: ", 17iptables v1.3.6: ) = 17
write(2, "can\'t initialize iptables table "..., 61can't initialize iptables table `filter': Bad file descriptor) = 61
write(2, "\n", 1
) = 1
write(2, "Perhaps iptables or your kernel "..., 54Perhaps iptables or your kernel needs to be upgraded.
) = 54
io_submit(0x3, 0, 0x8 <unfinished ... exit status 3> Process 22447 detached

strace of the child here:

strace -Ff iptables -L
execve("/sbin/iptables", ["iptables", "-L"], [/* 20 vars */]) = 0 uname({sys="Linux", node="LS-GL7D6", ...}) = 0
brk(0) = 0x1c000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40015000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25798, ...}) = 0 mmap2(NULL, 25798, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250\v\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9592, ...}) = 0 mmap2(NULL, 41124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40025000
mprotect(0x40027000, 32932, PROT_NONE) = 0 mmap2(0x4002e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x4002e000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", O_RDONLY)      = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\3703\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=68460, ...}) = 0 mmap2(NULL, 108188, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40030000
mprotect(0x40040000, 42652, PROT_NONE) = 0 mmap2(0x40047000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0x40047000 mmap2(0x40049000, 5788, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40049000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libselinux.so.1", O_RDONLY)  = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0 7\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=75268, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4004b000
mmap2(NULL, 109376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4004c000
mprotect(0x4005e000, 35648, PROT_NONE) = 0
mmap2(0x40065000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0x40065000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0HO\1\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1091216, ...}) = 0 mmap2(NULL, 1128068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40067000
mprotect(0x4016e000, 50820, PROT_NONE) = 0
mmap2(0x40175000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x106) = 0x40175000 mmap2(0x40178000, 9860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40178000

close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libsepol.so.1", O_RDONLY)    = 3

read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0h/\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=223904, ...}) = 0 mmap2(NULL, 297872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4017b000
mprotect(0x401b2000, 72592, PROT_NONE) = 0
mmap2(0x401b9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x36) = 0x401b9000 mmap2(0x401ba000, 39824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401ba000

close(3)                                = 0
mprotect(0x40175000, 8192, PROT_READ)   = 0
mprotect(0x40065000, 4096, PROT_READ)   = 0
mprotect(0x40047000, 4096, PROT_READ)   = 0
mprotect(0x4002e000, 4096, PROT_READ)   = 0
mprotect(0x4001c000, 4096, PROT_READ)   = 0
munmap(0x4001e000, 25798)               = 0
access("/etc/selinux/", F_OK)           = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x1c000
brk(0x3d000)                            = 0x3d000

open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(3, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 486

read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_INET, SOCK_RAW, IPPROTO_RAW)  = 3

getsockopt(3, SOL_IP, 0x40 /* IP_??? */, "filter\0@\0\0\0\0\340\257\6@h\262\4@\1\0\0\0\234\213\0"..., [84]) = 0 getsockopt(3, SOL_IP, 0x41 /* IP_??? */, 0x1c0c0, 0xbed24c10) = -1 EINVAL (Invalid argument)
close(3) = 0
open("/proc/sys/kernel/modprobe", O_RDONLY) = 3
read(3, "/sbin/modprobe\n", 1024) = 15
close(3) = 0
fork(Process 22506 attached
) = 22506
[pid 22505] wait4(-1, Process 22505 suspended

any help ?

Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 6 lines · Salatiel Filho

HI guys , i don`t know if this is the right list , but i could not find help anywhere else.
I am having a very strange problem with my machine , i can not use iptables at all.
I have the modules compiled and loaded but i always get :

Quoted 7 lines
# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file descriptor
Perhaps iptables or your kernel needs to be upgraded.

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

Which kernel version (please also send .config)? Did you compile iptables yourself or used a version from Debian?

#2 lore raw
Quoted 12 lines · Patrick McHardy
Quoted 11 lines · Salatiel Filho

HI guys , i don`t know if this is the right list , but i could not find help anywhere else.
I am having a very strange problem with my machine , i can not use iptables at all.
I have the modules compiled and loaded but i always get :

# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file descriptor
Perhaps iptables or your kernel needs to be upgraded.
Quoted 8 lines
Quoted 2 lines

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

Which kernel version (please also send .config)? Did you compile iptables yourself or used a version from Debian?

# uname -a
Linux LS-GL7D6 2.6.12.6-arm2 #77 Sun Dec 2 15:43:18 BRT 2007 armv5tejl GNU/Linux

Right now i am using iptables from debian, but i already try to use 1.3.8 compiled by myself and the error was the same.

.config is attached.

Thanks.

Signature · 5 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
#3 lore raw
Quoted 15 lines · Salatiel Filho
Quoted 7 lines · Patrick McHardy
Quoted 5 lines · Salatiel Filho
# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file descriptor
Perhaps iptables or your kernel needs to be upgraded.
Quoted 7 lines
Quoted 2 lines

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

Which kernel version (please also send .config)? Did you compile iptables yourself or used a version from Debian?

Quoted 6 lines
# uname -a
Linux LS-GL7D6 2.6.12.6-arm2 #77 Sun Dec 2 15:43:18 BRT 2007 armv5tejl GNU/Linux

Right now i am using iptables from debian, but i already try to use 1.3.8 compiled by myself and the error was the same.

I can't find anything responsible for this. Could you enable debugging in net/ipv4/netfilter/ip_tables.c (uncomment the #define DEBUG_* at the top) and post the output please?

#4 lore raw
Quoted 9 lines · Patrick McHardy
Quoted 8 lines · Salatiel Filho
Quoted 7 lines · Patrick McHardy
Quoted 5 lines · Salatiel Filho
# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file
descriptor
Perhaps iptables or your kernel needs to be upgraded.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

Which kernel version (please also send .config)? Did you compile iptables yourself or used a version from Debian?

This looks more like an userspace issue. The strace log shows that the netlink socket was obtained, but calls setsockopt with fd=-1. Just a guess, though.

#5 lore raw
Quoted 13 lines · Jan Engelhardt
Quoted 12 lines · Patrick McHardy
Quoted 11 lines · Salatiel Filho
Quoted 10 lines · Patrick McHardy
Quoted 7 lines · Salatiel Filho
# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file
descriptor
Perhaps iptables or your kernel needs to be upgraded.

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Which kernel version (please also send .config)? Did you compile iptables yourself or used a version from Debian?

This looks more like an userspace issue. The strace log shows that the netlink socket was obtained, but calls setsockopt with fd=-1. Just a guess, though.

My guess is that the auto loading of the module fails...

Please post the output of "lsmod"

Hilsen
Jesper Brouer

--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------

#6 lore raw
In reply to Jan Engelhardt
Quoted 11 lines · Jan Engelhardt
Quoted 10 lines · Patrick McHardy
Quoted 9 lines · Salatiel Filho
Quoted 8 lines · Patrick McHardy
Quoted 7 lines · Salatiel Filho
# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file
descriptor
Perhaps iptables or your kernel needs to be upgraded.

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Which kernel version (please also send .config)? Did you compile iptables yourself or used a version from Debian?

This looks more like an userspace issue. The strace log shows that the netlink socket was obtained, but calls setsockopt with fd=-1. Just a guess, though.

Right, I missed that, thanks. Jesper seems to be correct, if autoloading fails we close the socket and decrement sockfd_use twice, which causes iptables to not open it again for the second attempt.

Salatiel, does this patch fix the problem?

libiptc.c +0 -4
Index: libiptc/libiptc.c
===================================================================
@@ -866,10 +866,6 @@
 	CHECK(h);
 	return h;
 error:
-	if (--sockfd_use == 0) {
-		close(sockfd);
-		sockfd = -1;
-	}
 	TC_FREE(&h);
 	return NULL;
 }
#7 lore raw
Quoted 34 lines · Patrick McHardy
Quoted 11 lines · Jan Engelhardt
Quoted 10 lines · Patrick McHardy
Quoted 9 lines · Salatiel Filho
Quoted 8 lines · Patrick McHardy
Quoted 7 lines · Salatiel Filho
# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file
descriptor
Perhaps iptables or your kernel needs to be upgraded.

My machine is a ARM machine with debian 4.0.
I also have already tried 1.3.8 and got the same error.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Which kernel version (please also send .config)? Did you compile iptables yourself or used a version from Debian?

This looks more like an userspace issue. The strace log shows that the netlink socket was obtained, but calls setsockopt with fd=-1. Just a guess, though.

Right, I missed that, thanks. Jesper seems to be correct, if autoloading fails we close the socket and decrement sockfd_use twice, which causes iptables to not open it again for the second attempt.

Salatiel, does this patch fix the problem?

Index: libiptc/libiptc.c
===================================================================

libiptc.c (Arbeitskopie) line 871

Quoted 10 lines
libiptc.c (Arbeitskopie) renamed from libiptc.c (Revision 7130) +0 -4
@@ -866,10 +866,6 @@
        CHECK(h);
        return h;
 error:
-       if (--sockfd_use == 0) {
-               close(sockfd);
-               sockfd = -1;
-       }
        TC_FREE(&h);
        return NULL;
 }

I tried the patch but it didn`t work.

~# iptables --version [patched now]
iptables v1.3.8

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

~# lsmod

Module                  Size  Used by
iptable_filter          2304  0
ip_tables              22016  1 iptable_filter
snd_mixer_oss          14848  0
snd                    41976  1 snd_mixer_oss
soundcore               7524  1 snd
Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw
Quoted 24 lines · Salatiel Filho
Quoted 9 lines · Patrick McHardy

Salatiel, does this patch fix the problem?

Index: libiptc/libiptc.c
===================================================================

libiptc.c (Arbeitskopie) line 871

Quoted 10 lines
libiptc.c (Arbeitskopie) renamed from libiptc.c (Revision 7130) +0 -4
@@ -866,10 +866,6 @@
        CHECK(h);
        return h;
 error:
-       if (--sockfd_use == 0) {
-               close(sockfd);
-               sockfd = -1;
-       }
        TC_FREE(&h);
        return NULL;
 }

I tried the patch but it didn`t work.

Quoted 6 lines

~# iptables --version [patched now]
iptables v1.3.8

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Could you send another strace please?

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw

[netfilter-devel re-added. Please don't drop CCs]

Quoted 11 lines · Salatiel Filho
Quoted 9 lines · Patrick McHardy
Quoted 8 lines

I tried the patch but it didn`t work.

~# iptables --version [patched now]
iptables v1.3.8

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 8 lines
Quoted 2 lines

Could you send another strace please?

getsockopt(3, SOL_IP, 0x40 /* IP_??? */, "filter\0\0\0\0\0\0\340?\3@\310[\1@\1\0\0\0\244\213\0\0"..., [84]) = 0
brk(0) = 0x1c000
brk(0x3d000) = 0x3d000
getsockopt(3, SOL_IP, 0x41 /* IP_??? */, 0x1c0c0, 0xbea55c24) = -1

Thanks. The invalid fd usage is gone, this seems to be a problem in the interaction between kernel and userspace. Please enable debugging as I wrote a couple of mails ago and post the output.

#11 lore raw
Quoted 24 lines · Patrick McHardy

[netfilter-devel re-added. Please don't drop CCs]

Quoted 11 lines · Salatiel Filho
Quoted 9 lines · Patrick McHardy
Quoted 8 lines

I tried the patch but it didn`t work.

~# iptables --version [patched now]
iptables v1.3.8

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 8 lines
Quoted 2 lines

Could you send another strace please?

getsockopt(3, SOL_IP, 0x40 /* IP_??? */, "filter\0\0\0\0\0\0\340?\3@\310[\1@\1\0\0\0\244\213\0\0"..., [84]) = 0
brk(0) = 0x1c000
brk(0x3d000) = 0x3d000
getsockopt(3, SOL_IP, 0x41 /* IP_??? */, 0x1c0c0, 0xbea55c24) = -1

Quoted 8 lines

Thanks. The invalid fd usage is gone, this seems to be a problem in the interaction between kernel and userspace. Please enable debugging as I wrote a couple of mails ago and post the output.
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

OK. Debug enabled.

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

# dmesg
ip_tables: (C) 2000-2002 Netfilter core team
translate_table: size 632
Finished chain 1
Finished chain 2
Finished chain 3
table->private->number = 4
get_entries: 668 != 672

~# lsmod

Module                  Size  Used by
iptable_filter          2304  0
ip_tables              24672  1 iptable_filter
snd_mixer_oss          14848  0
snd                    41976  1 snd_mixer_oss
soundcore               7524  1 snd
Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#12 lore raw
Quoted 4 lines · Salatiel Filho

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 8 lines
# dmesg
ip_tables: (C) 2000-2002 Netfilter core team
translate_table: size 632
Finished chain 1
Finished chain 2
Finished chain 3
table->private->number = 4
get_entries: 668 != 672

This looks like an alignment problem. Old kernels required alignof(struct ipt_entry), which should be 4. Userspace compiled against current headers use:

struct _xt_align

{
        u_int8_t u8;
        u_int16_t u16;
        u_int32_t u32;
        u_int64_t u64;
};

#define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) \

                        & ~(__alignof__(struct _xt_align)-1))

which I guess is 8 on ARM. Does removing the u_int64_t
from the struct above in the iptables source (include/linux/netfilter/x_tables.h) help?

#13 lore raw
Quoted 26 lines · Patrick McHardy
Quoted 4 lines · Salatiel Filho

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 8 lines
# dmesg
ip_tables: (C) 2000-2002 Netfilter core team
translate_table: size 632
Finished chain 1
Finished chain 2
Finished chain 3
table->private->number = 4
get_entries: 668 != 672

This looks like an alignment problem. Old kernels required alignof(struct ipt_entry), which should be 4. Userspace compiled against current headers use:

struct _xt_align

{
         u_int8_t u8;
         u_int16_t u16;
         u_int32_t u32;
         u_int64_t u64;
};
Quoted 9 lines

#define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) \

                         & ~(__alignof__(struct _xt_align)-1))

which I guess is 8 on ARM. Does removing the u_int64_t from the struct above in the iptables source (include/linux/netfilter/x_tables.h) help?

I can not find include/linux/netfilter/x_tables.h in iptables source.

# ls -1 include/linux/netfilter/
nf_conntrack_common.h
nf_conntrack_tuple_common.h
nf_conntrack_tuple.h
nf_nat.h
Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#14 lore raw
Quoted 36 lines · Salatiel Filho
Quoted 25 lines · Patrick McHardy
Quoted 4 lines · Salatiel Filho

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 8 lines
# dmesg
ip_tables: (C) 2000-2002 Netfilter core team
translate_table: size 632
Finished chain 1
Finished chain 2
Finished chain 3
table->private->number = 4
get_entries: 668 != 672

This looks like an alignment problem. Old kernels required alignof(struct ipt_entry), which should be 4. Userspace compiled against current headers use:

struct _xt_align

{
         u_int8_t u8;
         u_int16_t u16;
         u_int32_t u32;
         u_int64_t u64;
};
Quoted 9 lines

#define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) \

                         & ~(__alignof__(struct _xt_align)-1))

which I guess is 8 on ARM. Does removing the u_int64_t from the struct above in the iptables source (include/linux/netfilter/x_tables.h) help?

Quoted 7 lines

I can not find include/linux/netfilter/x_tables.h in iptables source.

# ls -1 include/linux/netfilter/
nf_conntrack_common.h
nf_conntrack_tuple_common.h
nf_conntrack_tuple.h
nf_nat.h

Right, we only recently added it. Are you compiling against your kernel source? Otherwise check in /usr/include/linux/...

#15 lore raw
Quoted 39 lines · Patrick McHardy
Quoted 38 lines · Salatiel Filho
Quoted 25 lines · Patrick McHardy
Quoted 4 lines · Salatiel Filho

~# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 8 lines
# dmesg
ip_tables: (C) 2000-2002 Netfilter core team
translate_table: size 632
Finished chain 1
Finished chain 2
Finished chain 3
table->private->number = 4
get_entries: 668 != 672

This looks like an alignment problem. Old kernels required alignof(struct ipt_entry), which should be 4. Userspace compiled against current headers use:

struct _xt_align

{
         u_int8_t u8;
         u_int16_t u16;
         u_int32_t u32;
         u_int64_t u64;
};
Quoted 9 lines

#define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) \

                         & ~(__alignof__(struct _xt_align)-1))

which I guess is 8 on ARM. Does removing the u_int64_t from the struct above in the iptables source (include/linux/netfilter/x_tables.h) help?

I can not find include/linux/netfilter/x_tables.h in iptables source.

Quoted 9 lines
Quoted 5 lines
# ls -1 include/linux/netfilter/
nf_conntrack_common.h
nf_conntrack_tuple_common.h
nf_conntrack_tuple.h
nf_nat.h

Right, we only recently added it. Are you compiling against your kernel source? Otherwise check in /usr/include/linux/...

How do i know if i am compiling against my kernel source ? Does it auto use /usr/src/linux/... ?
anyway , i changed /usr/include/linux/linux/netfilter/x_tables.h but still the same problem.

# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument
Perhaps iptables or your kernel needs to be upgraded.
# dmesg
ip_tables: (C) 2000-2002 Netfilter core team
translate_table: size 632
Finished chain 1
Finished chain 2
Finished chain 3
table->private->number = 4
get_entries: 668 != 672
Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#16 lore raw
Quoted 11 lines · Salatiel Filho
Quoted 3 lines · Patrick McHardy

Right, we only recently added it. Are you compiling against your kernel source? Otherwise check in /usr/include/linux/...

How do i know if i am compiling against my kernel source ? Does it auto use /usr/src/linux/... ?
anyway , i changed /usr/include/linux/linux/netfilter/x_tables.h but still the same problem.

Quoted 3 lines
# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument
Perhaps iptables or your kernel needs to be upgraded.

Perhaps the 32/64 bit hacks that are still included in 1.3.8 are falsely enabled. Please post a few lines from the iptables compilation output.

#17 lore raw
Quoted 12 lines · Patrick McHardy
Quoted 11 lines · Salatiel Filho
Quoted 3 lines · Patrick McHardy

Right, we only recently added it. Are you compiling against your kernel source? Otherwise check in /usr/include/linux/...

How do i know if i am compiling against my kernel source ? Does it auto use /usr/src/linux/... ?
anyway , i changed /usr/include/linux/linux/netfilter/x_tables.h but still the same problem.

Quoted 8 lines
Quoted 3 lines
# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Invalid argument
Perhaps iptables or your kernel needs to be upgraded.

Perhaps the 32/64 bit hacks that are still included in 1.3.8 are falsely enabled. Please post a few lines from the iptables compilation output.

Should i try 1.40 ?

# make
Extensions found: IPv4:CLUSTERIP IPv4:recent IPv6:ah IPv6:esp
IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_ah_sh.o -c extensions/libipt_ah.c
cc -shared  -o extensions/libipt_ah.so extensions/libipt_ah_sh.o
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_addrtype_sh.o -c extensions/libipt_addrtype.c
cc -shared  -o extensions/libipt_addrtype.so extensions/libipt_addrtype_sh.o
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_comment_sh.o -c extensions/libipt_comment.c
cc -shared  -o extensions/libipt_comment.so extensions/libipt_comment_sh.o
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_connmark_sh.o -c extensions/libipt_connmark.c
cc -shared  -o extensions/libipt_connmark.so extensions/libipt_connmark_sh.o
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_conntrack_sh.o -c extensions/libipt_conntrack.c
Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#18 lore raw
Quoted 11 lines · Salatiel Filho
Quoted 8 lines · Patrick McHardy
Quoted 2 lines · Salatiel Filho

iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Perhaps the 32/64 bit hacks that are still included in 1.3.8 are falsely enabled. Please post a few lines from the iptables compilation output.

Should i try 1.40 ?

I don't expect it will help, but would still be worth a try.

Quoted 6 lines
# make
Extensions found: IPv4:CLUSTERIP IPv4:recent IPv6:ah IPv6:esp
IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_ah_sh.o -c extensions/libipt_ah.c

This looks OK, the 32/64 bit hacks are not enabled.

#19 lore raw
Quoted 6 lines · Patrick McHardy
Quoted 5 lines · Salatiel Filho
Quoted 4 lines · Patrick McHardy
Quoted 2 lines · Salatiel Filho

iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

Perhaps the 32/64 bit hacks that are still included in 1.3.8 are falsely enabled. Please post a few lines from the iptables compilation output.

Should i try 1.40 ?

I don't expect it will help, but would still be worth a try.

Still it doesn`t work :/

Quoted 9 lines
Quoted 6 lines
# make
Extensions found: IPv4:CLUSTERIP IPv4:recent IPv6:ah IPv6:esp
IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_ah_sh.o -c extensions/libipt_ah.c

This looks OK, the 32/64 bit hacks are not enabled.

:(

Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#20 lore raw
Quoted 28 lines · Salatiel Filho
Quoted 6 lines · Patrick McHardy
Quoted 5 lines · Salatiel Filho
Quoted 4 lines · Patrick McHardy
Quoted 2 lines · Salatiel Filho

iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

Perhaps the 32/64 bit hacks that are still included in 1.3.8 are falsely enabled. Please post a few lines from the iptables compilation output.

Should i try 1.40 ?

I don't expect it will help, but would still be worth a try.

Still it doesn`t work :/

Quoted 9 lines
Quoted 6 lines
# make
Extensions found: IPv4:CLUSTERIP IPv4:recent IPv6:ah IPv6:esp
IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_ah_sh.o -c extensions/libipt_ah.c

This looks OK, the 32/64 bit hacks are not enabled.

Quoted 9 lines

:(

--
[]'s
Salatiel

"O maior prazer do inteligente é bancar o idiota
diante de um idiota que banca o inteligente".

anything else?

Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#21 lore raw
Quoted 43 lines · Salatiel Filho
Quoted 28 lines · Salatiel Filho
Quoted 6 lines · Patrick McHardy
Quoted 5 lines · Salatiel Filho
Quoted 4 lines · Patrick McHardy
Quoted 2 lines · Salatiel Filho

iptables v1.3.8: can't initialize iptables table `filter': Invalid argument Perhaps iptables or your kernel needs to be upgraded.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

Perhaps the 32/64 bit hacks that are still included in 1.3.8 are falsely enabled. Please post a few lines from the iptables compilation output.

Should i try 1.40 ?

I don't expect it will help, but would still be worth a try.

Still it doesn`t work :/

Quoted 9 lines
Quoted 6 lines
# make
Extensions found: IPv4:CLUSTERIP IPv4:recent IPv6:ah IPv6:esp
IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.12.6-arm2/build"/include
-Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o
extensions/libipt_ah_sh.o -c extensions/libipt_ah.c

This looks OK, the 32/64 bit hacks are not enabled.

Quoted 9 lines

:(

--
[]'s
Salatiel

"O maior prazer do inteligente é bancar o idiota
diante de um idiota que banca o inteligente".

anything else?

Quoted 7 lines

--
[]'s
Salatiel

"O maior prazer do inteligente é bancar o idiota
diante de um idiota que banca o inteligente".

I forgot to mention that the kernel is crosscompiled , but iptables is natively compiled. Can this generate this problem ?

Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#22 lore raw
Quoted 2 lines · Salatiel Filho

I forgot to mention that the kernel is crosscompiled , but iptables is natively compiled. Can this generate this problem ?

It shouldn't, but I haven't seen any other complaints about this yet, so please try to either compile the kernel natively or also cross-compile iptables.

#23 lore raw
Quoted 3 lines · Patrick McHardy

It shouldn't, but I haven't seen any other complaints about this yet, so please try to either compile the kernel natively or also cross-compile iptables.

[ I'm jumping in on the end of the thread with comments not directed at anyone specific.]

I just saw an additional comment to #446685. A search for "EABI iptables" shows a known arm iptables' problem and at least one workaround is the chroot method mentioned in the report.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446685

#24 lore raw
Quoted 13 lines · Laurence J. Lane
Quoted 3 lines · Patrick McHardy

It shouldn't, but I haven't seen any other complaints about this yet, so please try to either compile the kernel natively or also cross-compile iptables.

[ I'm jumping in on the end of the thread with comments not directed at anyone specific.]

I just saw an additional comment to #446685. A search for "EABI iptables" shows a known arm iptables' problem and at least one workaround is the chroot method mentioned in the report.

Quoted 6 lines

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446685
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

I have not test the solution cause i have to download 116MB to chroot :) But im curious , if i compile both source kernel and source iptables , shouldt they be compatible ?

Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#25 lore raw
Quoted 6 lines · Salatiel Filho
Quoted 5 lines · Laurence J. Lane
Quoted 3 lines · Patrick McHardy

It shouldn't, but I haven't seen any other complaints about this yet, so please try to either compile the kernel natively or also cross-compile iptables.

Quoted 8 lines
Quoted 8 lines

[ I'm jumping in on the end of the thread with comments not directed at anyone specific.]

I just saw an additional comment to #446685. A search for "EABI iptables" shows a known arm iptables' problem and at least one workaround is the chroot method mentioned in the report.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446685

The bad fd bug visible in the strace attached to that report is the one I fixed in SVN.

Quoted 3 lines

I have not test the solution cause i have to download 116MB to chroot :) But im curious , if i compile both source kernel and source iptables , shouldt they be compatible ?

They should, unless something is causing different structure layout.

#26 lore raw
Quoted 20 lines · Patrick McHardy
Quoted 6 lines · Salatiel Filho
Quoted 5 lines · Laurence J. Lane
Quoted 3 lines · Patrick McHardy

It shouldn't, but I haven't seen any other complaints about this yet, so please try to either compile the kernel natively or also cross-compile iptables.

Quoted 8 lines
Quoted 8 lines

[ I'm jumping in on the end of the thread with comments not directed at anyone specific.]

I just saw an additional comment to #446685. A search for "EABI iptables" shows a known arm iptables' problem and at least one workaround is the chroot method mentioned in the report.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446685

The bad fd bug visible in the strace attached to that report is the one I fixed in SVN.

Quoted 7 lines
Quoted 3 lines

I have not test the solution cause i have to download 116MB to chroot :) But im curious , if i compile both source kernel and source iptables , shouldt they be compatible ?

They should, unless something is causing different structure layout.

I tried chroot in that rootfs. But when i try to run iptables i get

# iptables -L
ERROR: 0 not a valid target)
Aborted

So that is not a workaround.

Signature · 9 lines
[]'s
Salatiel

"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html