Encountered a segfault after executing "brctl stp show" command
Hi,
I was playing with the brctl utility and typed wrong brctl command:
brctl show stp
And after this I encountered segfault:
[root@vortex3l-115 ~]# strace brctl stp show
execve("/usr/sbin/brctl", ["brctl", "stp", "show"], [/* 20 vars */]) = 0
uname({sys="Linux", ", ...}) = 0
brk(0) = 0x506000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95556000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=16723, ...}) = 0
mmap(NULL, 16723, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95557000
close(3) = 0
open("/usr/lib64/libsysfs.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200/\360"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=51776, ...}) = 0
mmap(0x33def00000, 1096328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x33def00000
mprotect(0x33def0c000, 1047176, PROT_NONE) = 0
mmap(0x33df00b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x33df00b000
close(3) = 0
open("/lib64/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\305\201"..., 640) = 640
lseek(3, 624, SEEK_SET) = 624
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\4\0\0\0"..., 32) = 32
fstat(3, {st_mode=S_IFREG|0755, st_size=1489097, ...}) = 0
mmap(0x33de800000, 2305992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x33de800000
mprotect(0x33de92a000, 1085384, PROT_NONE) = 0
mmap(0x33dea29000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x129000) = 0x33dea29000
mmap(0x33dea2f000, 16328, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x33dea2f000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9555c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9555d000
mprotect(0x33dea29000, 12288, PROT_READ) = 0
arch_prctl(ARCH_SET_FS, 0x2a9555cda0) = 0
munmap(0x2a95557000, 16723) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
brk(0) = 0x506000
brk(0x527000) = 0x527000
open("/proc/mounts", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
read(4, "rootfs / rootfs rw 0 0\n/proc /pr"..., 1024) = 417
close(4) = 0
munmap(0x2a95557000, 4096) = 0
lstat("/sys/class/net", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 14808 detached
/var/log/messages was showing following lines:
Oct 4 02:46:18 vortex3l-115 kernel: brctl[13892]: segfault at
0000000000000000 rip 0000000000401b15 rsp 0000007fbffff980 error 4
Oct 4 02:47:34 vortex3l-115 kernel: brctl[14196]: segfault at
0000000000000000 rip 0000000000401b15 rsp 0000007fbffff980 error 4
Oct 4 02:47:52 vortex3l-115 kernel: brctl[14268]: segfault at
0000000000000000 rip 0000000000401b15 rsp 0000007fbffff980 error 4
My system's info is as follows:
[root@vortex3l-115 ~]# cat /etc/issue
Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
Kernel \r on an \m
[root@vortex3l-115 ~]# uname -a
Linux 2.6.9-22.EL.3leafsmp #1 SMP Fri Sep 28 22:49:36 PDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Thanks and regards,
---Dhananjay.
Quoted 5 lines · On Thu, 4 Oct 2007 15:48:18 +0530 "Dhananjay" <[email protected]>…
Hi,
I was playing with the brctl utility and typed wrong brctl command:
brctl show stp
Fixed long ago.
The distribution is shipping an old version of bridge utils:
RHEL ships some old version probably 1.0.
Version shipped by Fedora core 7 is 1.1
Current version is 1.2
Repository:
git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git
Signature · 1 line
Stephen Hemminger <[email protected]>