LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 04-28-2011, 01:48 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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?
 
Old 04-28-2011, 06:07 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
Don't you need to install some 'filesystem image' for the user mode Linux?
 
Old 04-28-2011, 08:45 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
That's what the ubda parameter is used for. I have the debian and centos image... they both fail.
 
Old 04-28-2011, 09:22 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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.
 
Old 04-29-2011, 12:08 AM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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.
 
Old 04-29-2011, 12:35 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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.

Last edited by TheIndependentAquarius; 04-29-2011 at 12:39 AM.
 
Old 04-29-2011, 12:37 AM   #7
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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.
 
Old 04-29-2011, 08:58 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Moved: This thread is more suitable in Linux - Kernel and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 04-29-2011, 09:10 AM   #9
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Ok. Let's see what happens. Thanks.
 
Old 04-29-2011, 09:27 AM   #10
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
Quote:
Originally Posted by eantoranz View Post
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/ ?
 
Old 05-03-2011, 09:01 PM   #11
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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.
 
Old 05-03-2011, 09:34 PM   #12
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
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.
 
Old 05-03-2011, 09:47 PM   #13
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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
 
Old 05-03-2011, 09:54 PM   #14
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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?
 
Old 05-03-2011, 09:56 PM   #15
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

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


Reply

Tags
abort, linux, uml


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
draw UML from java code xeon123 Linux - Newbie 1 04-27-2011 01:49 PM
Exit Code wasamzy Linux - Server 1 11-26-2010 04:11 AM
LXer: Transform UML model into actual Java source code LXer Syndicated Linux News 0 05-31-2007 12:03 AM
LXer: Create and transform a UML 2.0 model into code LXer Syndicated Linux News 0 03-28-2006 04:10 PM
UML and C++ code generation GŠutama Linux - Software 2 11-13-2003 07:56 AM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration