About this list Date view Thread view Subject view Author view Attachment view

From: Gaz Wilson (dragon_at_dragons.org.uk)
Date: Fri 01 Apr 2005 - 09:34:04 BST


On Thu, 31 Mar 2005, Bjoern Steinbrink wrote:

> Hello,
>
> On 2005.03.31 17:56:22 +0100, Gaz Wilson wrote:
> > On Thu, 31 Mar 2005, Gilles wrote:
> >
> > > > > test01:/# ifconfig
> > > > > Segmentation fault
> > > > > test01:/# ifconfig -a
> > > > > Segmentation fault
> > > >
> ifconfig is old and only knows about named interface addresses. stable
> tools always created named interface addresses using ifconfig, but the
> alpha tools use iproute to setup networking and thus can create nameless
> interface addresses. Those are not listed by ifconfig, but you can use
> "ip addr show" or just "ip a" instead. If you want named interfaces
> addresses, you have to tell the tools about that, please check the flower
> page for details, i don't remember them ;)
> ifconfig shouldn't segfault though... strace available?
>

Morning Bjoern (and everyone else). I put a copy of strace within the vserver
and the output wasn't as big as I expected, and doesn't really tell me much,
other than the process gets sent a SEGV directly after a socket action -
see what you think:

execve("/sbin/ifconfig", ["ifconfig"], [/* 16 vars */]) = 0
uname({sys="Linux", node="test01.mydomain", ...}) = 0
brk(0) = 0x8057b28
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0
x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=7470, ...}) = 0
old_mmap(NULL, 7470, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360Y\1"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1253924, ...}) = 0
old_mmap(NULL, 1260140, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001a000
old_mmap(0x40143000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x12
9000) = 0x40143000
old_mmap(0x4014b000, 10860, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x4014b000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0
x4014e000
set_thread_area({entry_number:-1 -> 6, base_addr:0x4014e2a0, limit:1048575,
seg_
32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
usea
ble:1}) = 0
munmap(0x40018000, 7470) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
suc
h file or directory)
brk(0) = 0x8057b28
brk(0x8078b28) = 0x8078b28
brk(0) = 0x8078b28
brk(0x8079000) = 0x8079000
open("/usr/share/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or
di
rectory)
brk(0) = 0x8079000
brk(0) = 0x8079000
brk(0x8078000) = 0x8078000
brk(0) = 0x8078000
open("/usr/lib/locale/en_GB/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such
f
ile or directory)
open("/usr/lib/locale/en/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such
file
 or directory)
uname({sys="Linux", node="test01.mydomain", ...}) = 0
access("/proc/net", R_OK) = 0
access("/proc/net/unix", R_OK) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = 3
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
access("/proc/net/if_inet6", R_OK) = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not
s
upported by protocol)
access("/proc/net/ax25", R_OK) = 0
socket(PF_AX25, SOCK_DGRAM, 0) = 5
access("/proc/net/nr", R_OK) = 0
socket(PF_NETROM, SOCK_SEQPACKET, 0) = 6
access("/proc/net/rose", R_OK) = 0
socket(PF_ROSE, SOCK_DGRAM, 0) = -1 ESOCKTNOSUPPORT (Socket type not
su
pported)
access("/proc/net/ipx", R_OK) = -1 ENOENT (No such file or
directory)
access("/proc/net/appletalk", R_OK) = -1 ENOENT (No such file or
directory)
access("/proc/sys/net/econet", R_OK) = -1 ENOENT (No such file or
directory)
access("/proc/sys/net/ash", R_OK) = -1 ENOENT (No such file or
directory)
access("/proc/net/x25", R_OK) = 0
socket(PF_X25, SOCK_SEQPACKET, 0 <unfinished ...>
+++ killed by SIGSEGV +++

Luck :)

GW

-- 
   /           Gary Wilson, aka dragon/dragonlord/dragonv480            \
 .'(_.------.  e: dragon_at_northernscum.org.uk MSN: dragonv480   .------._)`.
<   _       |  Skype:dragonv480 ICQ:342070475 AIM:dragonv480   |       _   >
 `.( `------'     w: http://volvo480.northernscum.org.uk       `------' ).'
   \                w: http://www.northernscum.org.uk                   /
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 01 Apr 2005 - 09:34:22 BST by hypermail 2.1.3