On Mon, Dec 20, 2004 at 09:57:59PM +0100, Enrico Scholz wrote:
> > as pointed out by Hollow, confirmed by me and workarounded by Bertl,
> > vsched with hard limits segfaults after setting the values.  by ading
> > '-- true' to the command line, it stops segfaulting while continue
> > working correctly.
> Sorry, can not reproduce it. Can you give an example please?

Sure, happens here on amd64, Hollow has it on i386. I myself use
2.6.10-rc3-vs1.9.3.11:
# vsched --xid 49161 --fill-rate 2 --interval 100 --tokens 499 --tokens-min 1 
--tokens-max 999 --prio-bias 0        
Segmentation fault
# vsched --xid 49161 --fill-rate 2 --interval 100 --tokens 499 --tokens-min 1 
--tokens-max 999 --prio-bias 0 -- true
#

Both methods set the values correctly according to '# cat
/proc/virtual/49161/sched'

I attach an strace of the failed call:

# strace vsched --xid 49161 --fill-rate 2 --interval 100 --tokens 499 
--tokens-min 1 --tokens-max 999 --prio-bias 0
execve("/usr/sbin/vsched", ["vsched", "--xid", "49161", "--fill-rate", "2", 
"--interval", "100", "--tokens", "499", "--tokens-min", "1", "--tokens-max", 
"999", "--prio-bias", "0"], [/* 15 vars */]) = 0
uname({sys="Linux", node="master1a", ...}) = 0
brk(0)                                  = 0x502000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a9556a000
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("/usr/lib/tls/x86_64/libvserver.so.0", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat("/usr/lib/tls/x86_64", 0x7fbffff1e0) = -1 ENOENT (No such file or 
directory)
open("/usr/lib/tls/libvserver.so.0", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat("/usr/lib/tls", 0x7fbffff1e0)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libvserver.so.0", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat("/usr/lib/x86_64", 0x7fbffff1e0)   = -1 ENOENT (No such file or directory)
open("/usr/lib/libvserver.so.0", 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\0006\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=638544, ...}) = 0
mmap(NULL, 1088368, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a9566c000
mprotect(0x2a95675000, 1051504, PROT_NONE) = 0
mmap(0x2a9576c000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 
0x2a9576c000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=14059, ...}) = 0
mmap(NULL, 14059, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95776000
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\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\324\1\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0644, st_size=1294400, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a9577a000
mmap(NULL, 2353800, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2a9577b000
mprotect(0x2a9589d000, 1165960, PROT_NONE) = 0
mmap(0x2a9597b000, 241664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x100000) = 0x2a9597b000
mmap(0x2a959b6000, 14984, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a959b6000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a959ba000
arch_prctl(0x1002, 0x2a959ba090)        = 0
munmap(0x2a95776000, 14059)             = 0
vserver(0, 0x3f, 0, 0, 0)               = 65572
vserver(0xe010003, 0xc009, 0x7fbffffac0, 0x2, 0) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Regards,
        Adrian
-- 
LiHAS - LinuxHaus Stuttgart              Fon:  +49 (7 11) 2 85 19 05
Inh.: Adrian Reyer                       Fax:  +49 (7 11) 5 78 06 92
                                         Mail: [EMAIL PROTECTED]
Linux, Netzwerke, Consulting & Support   http://lihas.de/
_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to