Re: [uml-user] 100% CPU when con0=fd:0,fd:1 and stdin not a tty
Peter Yes it does not work to me either. I can use - butI can not do /dev/null. Then the vmlinux get stuck. My kernel is 2.6.32.24. Locating the bottom of the address space ... 0x1000 Locating the top of the address space ... 0xc000 Core dump limits : soft - 0 hard - NONE Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...OK Checking for the skas3 patch in the host: - /proc/mm...not found: No such file or directory - PTRACE_FAULTINFO...not found - PTRACE_LDT...not found UML running in SKAS0 mode Adding 3125248 bytes to physical memory to account for exec-shield gap [4.79] line_ioctl: tty0: unknown ioctl: 0x5600 And it is always at: (gdb) bt #0 0x0054c410 in __kernel_vsyscall () #1 0x001a1970 in __nanosleep_nocancel () from /lib/libc.so.6 #2 0x080774a1 in idle_sleep (nsecs=194379572) at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/arch/um/os-Linux/time.c:185 #3 0x08062e8f in default_idle () at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/arch/um/kernel/process.c:248 #4 0x08063386 in cpu_idle () at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/arch/um/kernel/process.c:256 #5 0x0830d8b7 in rest_init () at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/init/main.c:434 #6 0x080498ea in start_kernel () at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/init/main.c:684 #7 0x0804c37c in start_kernel_proc (unused=0x0) at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/arch/um/kernel/skas/process.c:46 #8 0x08075661 in run_kernel_thread (fn=0x804c350 start_kernel_proc, arg=0x0, jmp_ptr=0xb96889c) at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/arch/um/os-Linux/process.c:267 #9 0x08063142 in new_thread_handler () at /home/aapace/PERFORCE/7.1.1.R01-aapace-calabasas/engr/sw/tps/kernel/linux/arch/um/kernel/process.c:151 #10 0x in ?? () David 2010/11/25 Péter Szabó pts...@gmail.com vmlinux . 0- log_file 21 I'm using kernel 2.6.31.1. Try running it with vmlinux /dev/null vmlinux input_file (no need to redirect stdout or stderr, it didn't make a difference for me) or cat input_file | vmlinux . Neither of which works for me, they produce the errors I've described in my previous e-mail. Could you please confirm that the commands above work for you? -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 100% CPU when con0=fd:0,fd:1 and stdin not a tty
vmlinux . 0- log_file 21 I'm using kernel 2.6.31.1. Try running it with vmlinux /dev/null vmlinux input_file (no need to redirect stdout or stderr, it didn't make a difference for me) or cat input_file | vmlinux . Neither of which works for me, they produce the errors I've described in my previous e-mail. Could you please confirm that the commands above work for you? -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 100% CPU when con0=fd:0,fd:1 and stdin not a tty
Hi Peter I run vmlinux in the background using vmlinux . 0- log_file 21 and it works fine for me. David 2010/11/20 Péter Szabó pts...@gmail.com Hi, I'm running linux con0=fd:0,fd:1 /dev/null and I get 100% CPU usage before UML can mount the root file system. If I remove `/dev/null', it works like a charm. It seems that UML doesn't work if stdin is not a tty. Redirecting stdout always works. Locating the bottom of the address space ... 0x0 Locating the top of the address space ... 0xc000 Core dump limits : soft - 0 hard - NONE Checking that ptrace can change system call numbers...Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...OK Checking for the skas3 patch in the host: - /proc/mm...not found - PTRACE_FAULTINFO...not found - /proc/mm...not found - PTRACE_FAULTINFO... - PTRACE_LDT...not found - PTRACE_LDT...UML running in SKAS0 mode Adding 28913664 bytes to physical memory to account for exec-shield gap [0.00] Linux version 2.6.36 (r...@narancs) (gcc version 4.1.2) #42 Sat Nov 20 23:23:55 CET 2010 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 12083 [0.00] Kernel command line: con=null ssl=null con0=fd:0,fd:1 mem=20M ubdb=hello.in root=98:0 [0.00] PID hash table entries: 256 (order: -2, 1024 bytes) [0.00] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [0.00] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [0.00] Memory: 18528k available [0.00] Hierarchical RCU implementation. [0.00] RCU-based detection of stalled CPUs is disabled. [0.00] Verbose stalled-CPUs detection is disabled. [0.00] NR_IRQS:15 [0.00] Calibrating delay loop... 3512.72 BogoMIPS (lpj=17563648) [0.28] pid_max: default: 32768 minimum: 301 [0.28] Mount-cache hash table entries: 512 [0.28] Checking for host processor cmov support...Yes [0.28] Checking that host ptys support output SIGIO...Yes [0.28] Checking that host ptys support SIGIO on close...No, enabling workaround [0.28] Using 2.6 host AIO [0.28] bio: create slab bio-0 at 0 [0.28] Switching to clocksource itimer [0.28] Host TLS support detected [0.28] Detected host type: i386 (GDT indexes 6 to 9) [0.28] io scheduler noop registered [0.28] io scheduler cfq registered (default) [0.28] Initialized stdio console driver [0.28] Console initialized on /dev/tty0 [0.28] console [tty0] enabled [0.28] Initializing software serial port version 1 [0.28] ubda: unknown partition table [0.28] ubdb: unknown partition table At this point it hangs unless stdin is s tty. Without /dev/null, it continues and mounts the root filesystem. I've tried to add some random printk()s to arch/um/drivers/chan_kern.c, and it seems that enable_chan is called only once, but it returns many times. Maybe there is a buffer overflow and a stack corruption somewhere? Thanks, Péter -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user