LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   UML: exit code 134 (https://www.linuxquestions.org/questions/linux-kernel-70/uml-exit-code-134-a-877527/)

eantoranz 04-28-2011 12:48 AM

UML: exit code 134
 
Hi!

I had been able to compile and use UML from kernel's source code successfully (kernel 2.6.38.3 running on kubuntu 11.04... I updated a couple of weeks ago).... and I was able to run UML on my first attempt at compiling by hand.

I'm doing a kernel module development (my first real experiment of this kind) and I nneded to recompile the UML kernel... after I did this, UML always aborts:

Code:

$ ../Linux/linux-2.6.38.3/linux ubda=rootfs_debian
Locating the bottom of the address space ... 0x10000
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...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 33398784 bytes to physical memory to account for exec-shield gap
Abortado

What's going on?

Aquarius_Girl 04-28-2011 05:07 AM

Don't you need to install some 'filesystem image' for the user mode Linux?

eantoranz 04-28-2011 07:45 AM

That's what the ubda parameter is used for. I have the debian and centos image... they both fail.

Aquarius_Girl 04-28-2011 08:22 AM

Well, this tutorial (I found to be well written) demonstrates exactly the same errors you are getting, see if you have followed exactly the same procedure mentioned here: http://hanez.org/howto-user-mode-linux.html
Look out for the heading, Compile the kernel, there.

eantoranz 04-28-2011 11:08 PM

Yes, Anisha... I basically did the same thing. Just in case, I removed the whole linux directory (didn't delete anything related to the host machine, no9 worries), reextracted the whole kernel source and rebuilt... using default stuff (default uml .config without any changes), rebuilt and the same thing happens.

Also, in the tutorial, there's no information about abort signal / exit code.

Aquarius_Girl 04-28-2011 11:35 PM

Then I feel sorry, and I can't say anything further without monitoring every step which you have taken or by installing UML myself (I am very interested in these things, but don't have time).
I can only say, post your threads in a relevant forum rather than posting them randomly here and there. For all sorts of kernel programming, there is a kernel section. What has software section to do with UML, I fail to understand.
Posting in the relevant section can get relevant people attracted to your threads.
Report this thread to be moved to the kernel section.

Truly speaking, people don't know what exact steps you have taken or what did you mistype or etc. This is not some program which you can paste here for others to look out.

eantoranz 04-28-2011 11:37 PM

Perhaps I should file in another forum... as it's not directly related to kernel development but to UML as a piece of software I thought it was ok here. Sorry anyway.

archtoad6 04-29-2011 07:58 AM

Moved: This thread is more suitable in Linux - Kernel and has been moved accordingly to help your thread/question get the exposure it deserves.

eantoranz 04-29-2011 08:10 AM

Ok. Let's see what happens. Thanks.

Aquarius_Girl 04-29-2011 08:27 AM

Quote:

Originally Posted by eantoranz (Post 4340602)
Ok. Let's see what happens. Thanks.

Instead of waiting for something to happen, you can also direct this question to their mailing lists: https://lists.sourceforge.net/lists/...ode-linux-user

and did you see this: http://user-mode-linux.sourceforge.net/ ?

eantoranz 05-03-2011 08:01 PM

Look at the last pages of information from strace:

Code:

write(2, "Checking that ptrace can change "..., 54Checking that ptrace can change system call numbers...) = 54
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x49cba8) = 7075
waitpid(7075, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED) = 7075
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x15 /* PTRACE_??? */, 7075, 0, 0x1) = 0
ptrace(PTRACE_SYSCALL, 7075, 0, SIG_0)  = 0
waitpid(7075, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED) = 7075
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(PTRACE_PEEKUSER, 7075, 4*ORIG_EAX, [0x14]) = 0
ptrace(PTRACE_POKEUSER, 7075, 4*ORIG_EAX, 0x40) = 0
ptrace(PTRACE_CONT, 7075, 0, SIG_0)    = 0
waitpid(7075, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7075
--- SIGCHLD (Child exited) @ 0 (0) ---
write(2, "OK\n", 3OK
)                    = 3
write(2, "Checking syscall emulation patch"..., 46Checking syscall emulation patch for ptrace...) = 46
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x49cba8) = 7076
waitpid(7076, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED) = 7076
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x1f /* PTRACE_??? */, 7076, 0, 0) = 0
waitpid(7076, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7076
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(PTRACE_GETREGS, 7076, 0, 0xbff1381c) = 0
getpid()                                = 7074
ptrace(PTRACE_POKEUSER, 7076, 4*EAX, 0x1ba2) = 0
ptrace(PTRACE_CONT, 7076, 0, SIG_0)    = 0
waitpid(7076, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7076
--- SIGCHLD (Child exited) @ 0 (0) ---
write(2, "OK\n", 3OK
)                    = 3
write(2, "Checking advanced syscall emulat"..., 55Checking advanced syscall emulation patch for ptrace...) = 55
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x49cba8) = 7077
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x15 /* PTRACE_??? */, 7077, 0, 0x1) = 0
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x20 /* PTRACE_??? */, 7077, 0, 0) = 0
waitpid(7077, [{WIFSTOPPED(s) && WSTOPSIG(s) == 133}], WSTOPPED) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
getpid()                                = 7074
ptrace(PTRACE_POKEUSER, 7077, 4*EAX, 0x1ba2) = 0
ptrace(PTRACE_CONT, 7077, 0, SIG_0)    = 0
waitpid(7077, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7077
--- SIGCHLD (Child exited) @ 0 (0) ---
write(2, "OK\n", 3OK
)                    = 3
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
read(3, "rootfs / rootfs rw 0 0\nnone /sys"..., 127) = 127
read(3, "none /d", 7)                  = 7
read(3, "ev devtmpfs rw,r", 16)        = 16
read(3, "elati", 5)                    = 5
read(3, "me,size=1015768k,nr_inodes=21356"..., 47) = 47
read(3, "none ", 5)                    = 5
read(3, "/dev/pts devpts rw,nosuid,noexec"..., 47) = 47
read(3, ",mode", 5)                    = 5
read(3, "=620,ptmxmode=000 0 0\nfusectl /s"..., 70) = 70
read(3, "time ", 5)                    = 5
read(3, "0 0\n/dev/disk/by-uuid/3a4cd983-c"..., 74) = 74
read(3, "ime,erro", 8)                  = 8
read(3, "rs=remount-ro,barrier=1,data=ord"..., 49) = 49
read(3, "s/kernel/debug debugfs rw,relati"..., 55) = 55
read(3, "/security securityfs rw,relatime"..., 64) = 64
read(3, "id,no", 5)                    = 5
read(3, "dev,relatime 0 0\nnone /var/run t"..., 42) = 42
read(3, "suid,", 5)                    = 5
read(3, "relatime,mode=755 0 0\nnone /var/"..., 48) = 48
read(3, "suid,", 5)                    = 5
read(3, "nodev,noe", 9)                = 9
write(1, "Checking for tmpfs mount on /dev"..., 42Checking for tmpfs mount on /dev/shm...OK
) = 42
close(3)                                = 0
gettimeofday({1304470622, 545514}, NULL) = 0
getpid()                                = 7074
open("/dev/shm/vm_file-sVZlGE", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
unlink("/dev/shm/vm_file-sVZlGE")      = 0
fchmod(3, 0777)                        = 0
_llseek(3, 4095, [4095], SEEK_SET)      = 0
write(3, "\0", 1)                      = 1
mmap2(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x290000
write(1, "Checking PROT_EXEC mmap in /dev/"..., 39Checking PROT_EXEC mmap in /dev/shm/...) = 39
write(1, "OK\n", 3OK
)                    = 3
munmap(0x290000, 4096)                  = 0
close(3)                                = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x49cba8) = 7078
waitpid(7078, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED) = 7078
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(PTRACE_GETREGS, 7078, 0, 0x822c080) = 0
ptrace(PTRACE_GETFPXREGS, 7078, 0, 0xbff13600) = 0
ptrace(PTRACE_CONT, 7078, 0, SIG_0)    = 0
waitpid(7078, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 7078
--- SIGCHLD (Child exited) @ 0 (0) ---
write(2, "Checking for the skas3 patch in "..., 42Checking for the skas3 patch in the host:
) = 42
write(2, "  - /proc/mm...", 15  - /proc/mm...)        = 15
access("/proc/mm", W_OK)                = -1 ENOENT (No such file or directory)
write(2, "not found: No such file or direc"..., 37not found: No such file or directory
) = 37
write(2, "  - PTRACE_FAULTINFO...", 23  - PTRACE_FAULTINFO...) = 23
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x49cba8) = 7079
waitpid(7079, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED) = 7079
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x34 /* PTRACE_??? */, 7079, 0, 0xbff13864) = -1 EIO (Input/output error)
write(2, "not found\n", 10not found
)            = 10
ptrace(PTRACE_CONT, 7079, 0, SIG_0)    = 0
waitpid(7079, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 7079
--- SIGCHLD (Child exited) @ 0 (0) ---
write(2, "  - PTRACE_LDT...", 17  - PTRACE_LDT...)      = 17
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x49cba8) = 7080
waitpid(7080, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED) = 7080
--- SIGCHLD (Child exited) @ 0 (0) ---
ptrace(0x36 /* PTRACE_??? */, 7080, 0, 0xbff13864) = -1 EIO (Input/output error)
write(2, "not found\n", 10not found
)            = 10
ptrace(PTRACE_CONT, 7080, 0, SIG_0)    = 0
waitpid(7080, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 7080
--- SIGCHLD (Child exited) @ 0 (0) ---
write(1, "UML running in SKAS0 mode\n", 26UML running in SKAS0 mode
) = 26
write(1, "Adding 27131904 bytes to physica"..., 72Adding 27131904 bytes to physical memory to account for exec-shield gap
) = 72
uname({sys="Linux", node="nano", ...})  = 0
open("/dev/shm/vm_file-2nH38w", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
unlink("/dev/shm/vm_file-2nH38w")      = 0
fchmod(3, 0777)                        = 0
_llseek(3, 60686335, [60686335], SEEK_SET) = 0
write(3, "\0", 1)                      = 1
fcntl64(3, F_SETFD, FD_CLOEXEC)        = 0
mmap2(0xa400000, 23232512, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_FIXED, 3, 0x23b8) = 0xa400000
_llseek(3, 1462272, [1462272], SEEK_SET) = 0
write(3, "U\272x\0\0\0\211\345\271\374\27\20\0W\211\320VS\273\21\204\0\0\315\200\211\302\205\322uV\277"..., 4096) = 4096
mprotect(0x821d000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x821e000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
sigaltstack({ss_sp=0x821e000, ss_flags=0, ss_size=4092}, NULL) = 0
rt_sigaction(SIGSEGV, {0x805ffac, [USR1 VTALRM WINCH IO], SA_STACK|SA_NODEFER}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
rt_sigaction(SIGTRAP, {0x805ffac, [USR1 VTALRM WINCH IO], SA_STACK}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [TRAP], NULL, 8) = 0
rt_sigaction(SIGFPE, {0x805ffac, [USR1 VTALRM WINCH IO], SA_STACK}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [FPE], NULL, 8) = 0
rt_sigaction(SIGILL, {0x805ffac, [USR1 VTALRM WINCH IO], SA_STACK}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ILL], NULL, 8) = 0
rt_sigaction(SIGBUS, {0x805ffac, [USR1 VTALRM WINCH IO], SA_STACK}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [BUS], NULL, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN, [HUP], SA_RESTART}, {0x805df98, [], SA_NODEFER|SA_RESETHAND}, 8) = 0
rt_sigaction(SIGIO, {0x805ffac, [USR1 ALRM VTALRM WINCH IO], SA_STACK|SA_RESTART}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [IO], NULL, 8) = 0
rt_sigaction(SIGWINCH, {SIG_IGN, [WINCH], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x805ffac, [USR1 VTALRM IO], SA_STACK|SA_RESTART}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [WINCH], NULL, 8) = 0
getpid()                                = 7074
uname({sys="Linux", node="nano", ...})  = 0
mmap2(0x9c19000, 8286208, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 3, 0x1bd1) = 0x9c19000
gettimeofday({1304470622, 648513}, NULL) = 0
rt_sigaction(SIGVTALRM, {0x805ffac, [USR1 WINCH IO], SA_STACK|SA_RESTART}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [VTALRM], NULL, 8) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 0}, it_value={0, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 10000}, it_value={0, 10000}}, NULL) = 0
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) @ 0 (0) ---
sigreturn()                            = ? (mask now [])
--- SIGILL (Illegal instruction) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {0x805ffac, [USR1 VTALRM WINCH IO], SA_STACK|SA_NODEFER}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTART}, {0x805df98, [], SA_NODEFER|SA_RESETHAND}, 8) = 0
kill(0, SIGTERM <unfinished ...>

The part about /proc/mm has me wondering because apparently, things start falling apart from that ṕoint on.

Aquarius_Girl 05-03-2011 08:34 PM

If you look in the link I pointed out in post 4, you'll find that the link says /proc/mm...not found: No such file or directory is related to filesystem image not found.

eantoranz 05-03-2011 08:47 PM

Don't go mad. With an existing rootfs it's the same thing:

Code:

$ !1894
../Linux/linux-2.6.38.3/linux debug ubda=rootfs_debian mem=256M
'debug' is not necessary to gdb UML in skas mode - run
'gdb linux'
Locating the bottom of the address space ... 0x10000
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...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 7872512 bytes to physical memory to account for exec-shield gap
Abortado


eantoranz 05-03-2011 08:54 PM

Well, what do you know? On strace we have: --- SIGILL (Illegal instruction) @ 0 (0) ---

On gdb at that point we have:
Code:

Program received signal SIGILL, Illegal instruction.
kmem_cache_create (name=0x81e515b "pid", size=44, align=4, flags=270336, ctor=0) at mm/slab.c:2180
2180                    BUG();
(gdb) backtrace full
#0  kmem_cache_create (name=0x81e515b "pid", size=44, align=4, flags=270336, ctor=0) at mm/slab.c:2180
        left_over = <value optimized out>
        slab_size = <value optimized out>
        ralign = <value optimized out>
        cachep = 0x0
        pc = <value optimized out>
        gfp = <value optimized out>
        __func__ = "kmem_cache_create"
#1  0x0804c662 in pidmap_init () at kernel/pid.c:563
No locales.
#2  0x080494e7 in start_kernel () at init/main.c:679
        command_line = 0x8218ee8 "ubda=rootfs_debian mem=256M root=98:0"
#3  0x0804a53d in start_kernel_proc (unused=0x0) at arch/um/kernel/skas/process.c:46
        pid = <value optimized out>
#4  0x0805e73e in run_kernel_thread (fn=0x804a511 <start_kernel_proc>, arg=0x0, jmp_ptr=0x821f7dc) at arch/um/os-Linux/process.c:267
        buf = {{__ebx = 136437692, __esp = 136437688, __ebp = 136437724, __esi = 0, __edi = 0, __eip = 134604579}}
        n = 0
#5  0x080573dd in new_thread_handler () at arch/um/kernel/process.c:153
        fn = <value optimized out>
        n = <value optimized out>
        arg = <value optimized out>
#6  0x00000000 in ?? ()
No symbol table info available.

I compiled the UML kernel with maverick back when it worked... when I updated to natty I was still using the maverick-compiled kernel.... but after I compiled on natty it's been broken... could it be a compiler problem?

eantoranz 05-03-2011 08:56 PM

Apparently I found another person with the same problem: http://us.generation-nt.com/answer/g...202788512.html


All times are GMT -5. The time now is 06:42 PM.