From: Nico R. <nri...@cs...> - 2010-11-22 11:21:47
Attachments:
config
|
immediately segfault with con0=tty:/dev/tty10 Calling UML with con0=tty:/dev/tty10 immediately leads to segfault. uml : ~ $ bin/image initrd=bin/initrd init=/linuxrc mem=256M umid=app.dev.dpvw eth0=tuntap,,,192.168.178.21 con0=tty:/dev/tty9 con1=null con2=null con3=null con4=null con5=null con6=null con7=null con8=null con9=null con10=null con11=null con12=null root=/dev/ram0 realm=grw readonly=/dev/ubdb readwrite=/dev/ubdc ubdc=machines/app.dev.dpvw/ubdc ubda=machines/app.dev.dpvw/ubda ubdb=machines/app.dev.dpvw/ubdb Locating the bottom of the address space ... 0x1000 Locating the top of the address space ... 0xc0000000 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...nothing mounted on /dev/shm Checking PROT_EXEC mmap in /tmp/...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 Segmentation fault uml : ~ $ Whenn changing con0 to 'null' or 'fd:0,fd:1' the segfault disappears and the uml is booting without problems. The user the UML runs under is member of the tty group and able to write to /dev/ttyXY. Both UML and Host source tree is 2.6.34-gentoo-r12 from gentoo portage. uml config is attached. The last lines when running with strace are: waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED|__WALL) = 19109 ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 ptrace(PTRACE_SETREGS, 19109, 0, 0x17c59e04) = 0 ptrace(0x1f /* PTRACE_??? */, 19109, 0, 0) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSEGV}], WSTOPPED|__WALL) = 19109 ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 ptrace(PTRACE_GETFPXREGS, 19109, 0, 0x17c63d58) = 0 ptrace(PTRACE_CONT, 19109, 0, SIGSEGV) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED|__WALL) = 19109 ptrace(PTRACE_SETFPXREGS, 19109, 0, 0x17c63d58) = 0 ptrace(PTRACE_SETREGS, 19109, 0, 0x8253960) = 0 ptrace(PTRACE_CONT, 19109, 0, SIG_0) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED|__WALL) = 19109 ptrace(PTRACE_SETREGS, 19109, 0, 0x17c59e04) = 0 ptrace(0x1f /* PTRACE_??? */, 19109, 0, 0) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED|__WALL) = 19109 ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {0x8070d30, [USR1 VTALRM WINCH IO], SA_STACK|SA_NODEFER}, 8) = 0 rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTART}, {0x806d5c0, [], SA_NODEFER|SA_RESETHAND}, 8) = 0 kill(0, SIGTERM <unfinished ...> Further info: - gcc version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5) - GNU C Library stable release version 2.11.2 How can i make uml work with ttys as console i/o? Thanks in advance! Nico |
From: richard -r. w. <ric...@gm...> - 2010-11-22 13:26:49
|
On Mon, Nov 22, 2010 at 12:06 PM, Nico Rittner <nri...@cs...> wrote: > immediately segfault with con0=tty:/dev/tty10 > > Calling UML with con0=tty:/dev/tty10 immediately > leads to segfault. > > uml : ~ $ bin/image initrd=bin/initrd init=/linuxrc mem=256M > umid=app.dev.dpvw eth0=tuntap,,,192.168.178.21 con0=tty:/dev/tty9 con1=null > con2=null con3=null con4=null con5=null con6=null con7=null con8=null > con9=null con10=null con11=null con12=null root=/dev/ram0 realm=grw > readonly=/dev/ubdb readwrite=/dev/ubdc ubdc=machines/app.dev.dpvw/ubdc > ubda=machines/app.dev.dpvw/ubda ubdb=machines/app.dev.dpvw/ubdb > Locating the bottom of the address space ... 0x1000 > Locating the top of the address space ... 0xc0000000 > 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...nothing mounted on /dev/shm > Checking PROT_EXEC mmap in /tmp/...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 > Segmentation fault > uml : ~ $ > > Whenn changing con0 to 'null' or 'fd:0,fd:1' > the segfault disappears and the uml is booting > without problems. The user the UML runs > under is member of the tty group and able to > write to /dev/ttyXY. > Both UML and Host source tree is 2.6.34-gentoo-r12 > from gentoo portage. uml config is attached. > > The last lines when running with strace are: Can you please post the output of "strace ./linux con0=tty:/dev/tty9 ... 2>&1 | grep tty9" Does the problem also occur on the most current vanilla kernel? > waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED|__WALL) = > 19109 > ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 > ptrace(PTRACE_SETREGS, 19109, 0, 0x17c59e04) = 0 > ptrace(0x1f /* PTRACE_??? */, 19109, 0, 0) = 0 > --- SIGCHLD (Child exited) @ 0 (0) --- > waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSEGV}], WSTOPPED|__WALL) > = 19109 > ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 > ptrace(PTRACE_GETFPXREGS, 19109, 0, 0x17c63d58) = 0 > ptrace(PTRACE_CONT, 19109, 0, SIGSEGV) = 0 > --- SIGCHLD (Child exited) @ 0 (0) --- > waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED|__WALL) > = 19109 > ptrace(PTRACE_SETFPXREGS, 19109, 0, 0x17c63d58) = 0 > ptrace(PTRACE_SETREGS, 19109, 0, 0x8253960) = 0 > ptrace(PTRACE_CONT, 19109, 0, SIG_0) = 0 > --- SIGCHLD (Child exited) @ 0 (0) --- > waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED|__WALL) > = 19109 > ptrace(PTRACE_SETREGS, 19109, 0, 0x17c59e04) = 0 > ptrace(0x1f /* PTRACE_??? */, 19109, 0, 0) = 0 > --- SIGCHLD (Child exited) @ 0 (0) --- > waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED|__WALL) = > 19109 > ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 > rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {0x8070d30, [USR1 > VTALRM WINCH IO], SA_STACK|SA_NODEFER}, 8) = 0 > rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTART}, {0x806d5c0, [], > SA_NODEFER|SA_RESETHAND}, 8) = 0 > kill(0, SIGTERM <unfinished ...> > > > Further info: > - gcc version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5) > - GNU C Library stable release version 2.11.2 > > How can i make uml work with ttys as console i/o? > > > Thanks in advance! > > Nico > > ------------------------------------------------------------------------------ > 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-devel mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel > > -- Thanks, //richard |