From: "Salatiel Filho" <salatiel.filho@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: iptables -> can't initialize iptables table `filter': Bad file descriptor
Date: Sun, 2 Dec 2007 16:22:58 -0300 [thread overview]
Message-ID: <beb91d720712021122w93088ccjf4544c591df3c4b5@mail.gmail.com> (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 ?
--
[]'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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2007-12-02 19:22 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-02 19:22 Salatiel Filho [this message]
2007-12-03 8:07 ` iptables -> can't initialize iptables table `filter': Bad file descriptor Patrick McHardy
2007-12-03 12:35 ` Salatiel Filho
2007-12-04 8:18 ` Patrick McHardy
2007-12-04 8:51 ` Jan Engelhardt
2007-12-04 8:58 ` Jesper Dangaard Brouer
2007-12-04 9:14 ` Patrick McHardy
2007-12-04 14:16 ` Salatiel Filho
2007-12-04 14:18 ` Patrick McHardy
[not found] ` <beb91d720712040645w76be238bmdd9dc362bf601755@mail.gmail.com>
2007-12-04 15:07 ` Patrick McHardy
2007-12-04 15:40 ` Salatiel Filho
2007-12-04 15:57 ` Patrick McHardy
2007-12-04 16:05 ` Salatiel Filho
2007-12-04 16:15 ` Patrick McHardy
2007-12-04 16:32 ` Salatiel Filho
2007-12-05 8:05 ` Patrick McHardy
2007-12-05 11:39 ` Salatiel Filho
2007-12-06 9:51 ` Patrick McHardy
2007-12-06 11:25 ` Salatiel Filho
2007-12-09 13:34 ` Salatiel Filho
2007-12-09 14:11 ` Salatiel Filho
2007-12-11 10:29 ` Patrick McHardy
2007-12-13 21:41 ` Laurence J. Lane
2007-12-13 22:14 ` Salatiel Filho
2007-12-14 9:22 ` Patrick McHardy
2007-12-14 12:39 ` Salatiel Filho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=beb91d720712021122w93088ccjf4544c591df3c4b5@mail.gmail.com \
--to=salatiel.filho@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).