[Bug 913] New: Memory allocation failure, Segmentation fault (core dumped) when running 'nft list tables'
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Fri Apr 4 14:37:14 CEST 2014
https://bugzilla.netfilter.org/show_bug.cgi?id=913
Summary: Memory allocation failure, Segmentation fault (core
dumped) when running 'nft list tables'
Product: nftables
Version: unspecified
Platform: x86_64
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P5
Component: kernel
AssignedTo: pablo at netfilter.org
ReportedBy: vaclav.strachon at gmail.com
Estimated Hours: 0.0
Hi,
I've deployed latest (and then upgraded) Arch Linux on digitalocean.com. Tried
to list nft tables and got core dump:
[root at rust ~]# uname -a
Linux rust 3.13.7-1-ARCH #1 SMP PREEMPT Mon Mar 24 20:06:08 CET 2014 x86_64
GNU/Linux
[root at rust ~]# nft list tables
Memory allocation failure
Segmentation fault (core dumped)
[root at rust ~]# journalctl -f
-- Logs begin at Fri 2013-03-29 01:07:20 UTC. --
Apr 04 12:26:12 rust systemd[1623]: Starting Basic System.
Apr 04 12:26:12 rust systemd[1623]: Reached target Basic System.
Apr 04 12:26:12 rust systemd[1623]: Starting Default.
Apr 04 12:26:12 rust systemd[1623]: Reached target Default.
Apr 04 12:26:12 rust systemd[1623]: Startup finished in 7ms.
Apr 04 12:26:12 rust systemd[1]: Started User Manager for UID 0.
Apr 04 12:26:27 rust systemd-udevd[112]: renamed network interface eth0 to ens3
Apr 04 12:26:27 rust kernel: nft[1629]: segfault at 0 ip 00007f5ddc420f31 sp
00007fffdc927c70 error 4
Apr 04 12:26:27 rust kernel: in libmnl.so.0.1.0[7f5ddc41f000+4000]
Apr 04 12:26:27 rust systemd-coredump[1632]: Process 1629 (nft) dumped core.
[root at rust ~]# strace nft list tables
execve("/usr/bin/nft", ["nft", "list", "tables"], [/* 17 vars */]) = 0
brk(0) = 0x1023000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=29889, ...}) = 0
mmap(NULL, 29889, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f46579c0000
close(3) = 0
open("/usr/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20g\1\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=346071, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f46579bf000
mmap(NULL, 2397472, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f465755e000
mprotect(0x7f465759e000, 2097152, PROT_NONE) = 0
mmap(0x7f465779e000, 32768, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40000) = 0x7f465779e000
mmap(0x7f46577a6000, 5408, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f46577a6000
close(3) = 0
open("/usr/lib/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\314\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=488208, ...}) = 0
mmap(NULL, 2583424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f46572e7000
mprotect(0x7f465735d000, 2093056, PROT_NONE) = 0
mmap(0x7f465755c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x75000) = 0x7f465755c000
close(3) = 0
open("/usr/lib/libnftnl.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0U\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=94696, ...}) = 0
mmap(NULL, 2189768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f46570d0000
mprotect(0x7f46570e6000, 2093056, PROT_NONE) = 0
mmap(0x7f46572e5000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f46572e5000
close(3) = 0
open("/usr/lib/libmnl.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\34\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=22896, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f46579be000
mmap(NULL, 2117928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f4656eca000
mprotect(0x7f4656ece000, 2097152, PROT_NONE) = 0
mmap(0x7f46570ce000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f46570ce000
close(3) = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\34\2\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2022349, ...}) = 0
mmap(NULL, 3832336, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f4656b22000
mprotect(0x7f4656cc0000, 2097152, PROT_NONE) = 0
mmap(0x7f4656ec0000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19e000) = 0x7f4656ec0000
mmap(0x7f4656ec6000, 14864, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4656ec6000
close(3) = 0
open("/usr/lib/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0P\1\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=411616, ...}) = 0
mmap(NULL, 2508688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f46568bd000
mprotect(0x7f465691d000, 2093056, PROT_NONE) = 0
mmap(0x7f4656b1c000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5f000) = 0x7f4656b1c000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f46579bd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f46579bc000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f46579bb000
arch_prctl(ARCH_SET_FS, 0x7f46579bc700) = 0
mprotect(0x7f4656ec0000, 16384, PROT_READ) = 0
mprotect(0x7f4656b1c000, 16384, PROT_READ) = 0
mprotect(0x7f46570ce000, 4096, PROT_READ) = 0
mprotect(0x7f46572e5000, 4096, PROT_READ) = 0
mprotect(0x7f465755c000, 4096, PROT_READ) = 0
mprotect(0x7f465779e000, 8192, PROT_READ) = 0
mprotect(0x63a000, 4096, PROT_READ) = 0
mprotect(0x7f46579c8000, 4096, PROT_READ) = 0
munmap(0x7f46579c0000, 29889) = 0
brk(0) = 0x1023000
brk(0x1044000) = 0x1044000
open("/etc/iproute2/rt_marks", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/iproute2/rt_realms", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=112, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f46579c7000
read(3, "#\n# reserved values\n#\n0\tcosmos\n#"..., 4096) = 112
read(3, "", 4096) = 0
close(3) = 0
munmap(0x7f46579c7000, 4096) = 0
socket(PF_NETLINK, SOCK_RAW, 12) = -1 EPROTONOSUPPORT (Protocol not
supported)
write(2, "Memory allocation failure\n", 26Memory allocation failure
) = 26
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)
Is there anything I've missed? Should I upgrade kernel or some library?
Thanks,
Vaclav
--
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the netfilter-buglog
mailing list