1 |
immediately segfault with con0=tty:/dev/tty10 |
2 |
|
3 |
Calling UML with con0=tty:/dev/tty10 immediately |
4 |
leads to segfault. |
5 |
|
6 |
uml : ~ $ bin/image initrd=bin/initrd init=/linuxrc mem=256M |
7 |
umid=app.dev.dpvw eth0=tuntap,,,192.168.178.21 con0=tty:/dev/tty9 |
8 |
con1=null con2=null con3=null con4=null con5=null con6=null con7=null |
9 |
con8=null con9=null con10=null con11=null con12=null root=/dev/ram0 |
10 |
realm=grw readonly=/dev/ubdb readwrite=/dev/ubdc |
11 |
ubdc=machines/app.dev.dpvw/ubdc ubda=machines/app.dev.dpvw/ubda |
12 |
ubdb=machines/app.dev.dpvw/ubdb |
13 |
Locating the bottom of the address space ... 0x1000 |
14 |
Locating the top of the address space ... 0xc0000000 |
15 |
Core dump limits : |
16 |
soft - 0 |
17 |
hard - NONE |
18 |
Checking that ptrace can change system call numbers...OK |
19 |
Checking syscall emulation patch for ptrace...OK |
20 |
Checking advanced syscall emulation patch for ptrace...OK |
21 |
Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm |
22 |
Checking PROT_EXEC mmap in /tmp/...OK |
23 |
Checking for the skas3 patch in the host: |
24 |
- /proc/mm...not found: No such file or directory |
25 |
- PTRACE_FAULTINFO...not found |
26 |
- PTRACE_LDT...not found |
27 |
UML running in SKAS0 mode |
28 |
Segmentation fault |
29 |
uml : ~ $ |
30 |
|
31 |
Whenn changing con0 to 'null' or 'fd:0,fd:1' |
32 |
the segfault disappears and the uml is booting |
33 |
without problems. The user the UML runs |
34 |
under is member of the tty group and able to |
35 |
write to /dev/ttyXY. |
36 |
Both UML and Host source tree is 2.6.34-gentoo-r12 |
37 |
from gentoo portage. uml config is attached. |
38 |
|
39 |
The last lines when running with strace are: |
40 |
|
41 |
waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED|__WALL) |
42 |
= 19109 |
43 |
ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 |
44 |
ptrace(PTRACE_SETREGS, 19109, 0, 0x17c59e04) = 0 |
45 |
ptrace(0x1f /* PTRACE_??? */, 19109, 0, 0) = 0 |
46 |
--- SIGCHLD (Child exited) @ 0 (0) --- |
47 |
waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSEGV}], |
48 |
WSTOPPED|__WALL) = 19109 |
49 |
ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 |
50 |
ptrace(PTRACE_GETFPXREGS, 19109, 0, 0x17c63d58) = 0 |
51 |
ptrace(PTRACE_CONT, 19109, 0, SIGSEGV) = 0 |
52 |
--- SIGCHLD (Child exited) @ 0 (0) --- |
53 |
waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], |
54 |
WSTOPPED|__WALL) = 19109 |
55 |
ptrace(PTRACE_SETFPXREGS, 19109, 0, 0x17c63d58) = 0 |
56 |
ptrace(PTRACE_SETREGS, 19109, 0, 0x8253960) = 0 |
57 |
ptrace(PTRACE_CONT, 19109, 0, SIG_0) = 0 |
58 |
--- SIGCHLD (Child exited) @ 0 (0) --- |
59 |
waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], |
60 |
WSTOPPED|__WALL) = 19109 |
61 |
ptrace(PTRACE_SETREGS, 19109, 0, 0x17c59e04) = 0 |
62 |
ptrace(0x1f /* PTRACE_??? */, 19109, 0, 0) = 0 |
63 |
--- SIGCHLD (Child exited) @ 0 (0) --- |
64 |
waitpid(19109, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED|__WALL) |
65 |
= 19109 |
66 |
ptrace(PTRACE_GETREGS, 19109, 0, 0x17c59e04) = 0 |
67 |
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {0x8070d30, [USR1 |
68 |
VTALRM WINCH IO], SA_STACK|SA_NODEFER}, 8) = 0 |
69 |
rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTART}, {0x806d5c0, [], |
70 |
SA_NODEFER|SA_RESETHAND}, 8) = 0 |
71 |
kill(0, SIGTERM <unfinished ...> |
72 |
|
73 |
|
74 |
Further info: |
75 |
- gcc version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5) |
76 |
- GNU C Library stable release version 2.11.2 |
77 |
|
78 |
How can i make uml work with ttys as console i/o? |
79 |
|
80 |
|
81 |
Thanks in advance! |
82 |
|
83 |
Nico |