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

From: Ola Lundqvist (opal_at_debian.org)
Date: Fri 22 Apr 2005 - 05:58:35 BST


forwarded 305449 vserver_at_list.linux-vserver.org
thanks

Hello

I got this bugreport from Martin. He has also reported that the same problem
exist on 0.30.206.

If this can be solved it would be good. I do not have access to such a machine
for debugging but Martin obviously have. :)

When you reply, please cc Martin <inkubus_at_interalpha.co.uk> and 305449_at_bugs.debian.org.

Happy hacking

Regards,

// Ola

On Wed, Apr 20, 2005 at 04:16:55AM +0100, Martin wrote:
> Package: util-vserver
> Version: 0.30.204-5
>
> Am trying to get a cserver set up running on a sparc64 machine. The
> kernel patch works fine and the kernel runs as normal. I seem to be
> able to change security context:
>
> devnull:~# chcontext --xid 1122 bash
> New security context is 1122
> devnull:~# ps aux
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 1 0.3 0.0 1632 704 ? S 02:28 0:13 init [2]
> root 8900 0.9 0.0 3120 1776 ttyS0 S 03:26 0:00 bash
> root 8903 0.0 0.0 2952 1136 ttyS0 R+ 03:26 0:00 ps aux
> devnull:~#
>
> and I seem to be able to chbind however vserver seems to throw bus
> errors.
>
> When executing:
> newvserver --hostname XXX --domain YYY --ip ZZZ
> all works fine except starting the server
> <snip>
> WARNING: can not find configuration, assuming legacy method
> /usr/sbin/newvserver: line 606: 8764 Bus error vserver
> $VHOST
> exec /vserver-config.sh
> WARNING: can not find configuration, assuming legacy method
> /usr/sbin/newvserver: line 636: 8781 Bus error vserver
> $VHOST
> exec /etc/init.d/rc 0
> WARNING: can not find configuration, assuming legacy method
> Stopping the virtual server frequency
> Server frequency is not running
> Restarting rebootmgr.
> Stopping the reboot manager
> Starting the reboot manager
>
> You should now adjust /etc/vservers/frequency.conf to suit your needs,
> or else just go ahead and type Vserver frequency start' to start
> your new virtual server. debian/rules!
>
> <>
>
> and trying to start the server manually gives:
>
> devnull:~# vserver XXX start
> WARNING: can not find configuration, assuming legacy method
> Starting the virtual server XXX
> Server XXX is not running
> /usr/lib/util-vserver/legacy/vserver: line 779: 8856 Bus error
> $NICECMD $_CHBIND $SILENT $IPOPT --bcast $IPROOTBCAST $_CHCONTEXT_COMPAT
> $SILENT $DISCONNECT $CAPS $FLAGS $
> CTXOPT $HOSTOPT $DOMAINOPT --secure $_SAVE_S_CONTEXT $PKGSTATEDIR/$1.ctx
> $_CAPCHROOT $CHROOTOPT . $STARTCMD
> devnull:~#
>
> Trying to: strace -v vserver -v XXX exec bash gives
>
> execve("/usr/sbin/chbind", ["/usr/sbin/chbind", "--ip", "ZZZ",
> "--bcast", "ZZ.255", "/usr/lib/util-vserver/chcontext-compat", "--flag",
> "lock", "--flag", "nproc", "--cap",
> "CAP_NET_RAW", "--secure", "--hostname", "XXX",
> "/usr/lib/util-vserver/legacy/save_s_context",
> "/var/run/vservers/XXX.ctx", "/usr/lib/util-vserver/capchroot",
> "--suid", "ro
> ot", ".", "bash"], ["HZ=100", "HOSTNAME=XXX", "TERM=vt102",
> "SHELL=/bin/bash", "HUSHLOGIN=FALSE",
> "OLDPWD=/var/lib/vservers/frequency", "USER=root",
> "PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin",
> "MAIL=/var/mail/root", "PWD=/var/lib/vservers/XXX",
> "PS1=[\\u_at_vserver:XXX \\W]", "HOME=/root", "SHLVL=1"
> , "LOGNAME=root"]) = 0
> open("/proc/net/dev", O_RDONLY) = 3
> read(3, "Inter-|
> Receive | Transmit\n
> face |bytes packets errs drop fifo frame compressed
> multicast|bytes packets errs drop fifo
> colls carrier compressed\n lo: 782 8 0 0 0
> 0 0 0 782 8 0 0 0 0
> 0 0\n eth0:39603419 29767 0 0
> 0 0 0 0 1341471 19374 0 0 0
> 0 0 0\n eth1: 0 0 0 0 0
> 0 0 0 "..., 8192) = 1553
> read(3, "", 6639) = 0
> close(3) = 0
> mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0x70000000
> open("/proc/net/dev", O_RDONLY) = 3
> read(3, "Inter-|
> Receive | Transmit\n
> face |bytes packets errs drop fifo frame compressed
> multicast|bytes packets errs drop fifo
> colls carrier compressed\n lo: 782 8 0 0 0
> 0 0 0 782 8 0 0 0 0
> 0 0\n eth0:39603419 29767 0 0
> 0 0 0 0 1341471 19374 0 0 0
> 0 0 0\n eth1: 0 0 0 0 0
> 0 0 0 "..., 8192) = 1553
> read(3, "", 6639) = 0
> close(3) = 0
> --- SIGBUS (Bus error) @ 0 (0) ---
> +++ killed by SIGBUS +++
>
> Stracing this subprocess gives the same output - thus I conclude that
> the problem is with chbind:
>
> [00010a90] open("/proc/net/dev", O_RDONLY) = 3
> [00010a90] read(3, "Inter-| Receive "..., 8192) = 1553
> [00010a90] read(3, "", 6639) = 0
> [00010a90] close(3) = 0
> [00010a90] mmap(NULL, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x70000000
> [00010a90] open("/proc/net/dev", O_RDONLY) = 3
> [00010a90] read(3, "Inter-| Receive "..., 8192) = 1553
> [00010a90] read(3, "", 6639) = 0
> [00010a90] close(3) = 0
> [00011130] --- SIGBUS (Bus error) @ 0 (0) ---
> [????????] +++ killed by SIGBUS +++
>
> I appreciate this is something of an obscure bug but I'd be most
> greatful for any help fixing it.
>
> Cheers,
> - Martin
>
> --
> Martin
> inkubus_at_interalpha.co.uk
> "Seasons change, things come to pass"
>
>
>

-- 
 --------------------- Ola Lundqvist ---------------------------
/  opal_at_debian.org                     Annebergsslingan 37      \
|  opal_at_lysator.liu.se                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------
_______________________________________________
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 22 Apr 2005 - 06:07:23 BST by hypermail 2.1.3