Skip to contentSkip to conversation

Problem with 2.4.22-uml6 & skas...

uml-devel Sven 'Darkman' Michels 2 participants 2 messages Nov 24, 2003 – Dec 5, 2003 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Hi there,

i try to get 2.4.22-6 running with skas mode.

The host:
Running vanilla 2.4.22 with host-skas3.patch (applied without any error), PROC_MM enabled.
GCC is 3.3.1
The box is running fine with the kernel.

The UML:
2.4.22 patched with uml6, skas enabled etc.pp.

Problem:
i start the uml with:
linux-2.4.22 ubd0=/home/uml1/uml/10/root_fs ubd1=/home/uml1/uml/10/swap.disk mem=64M con1=pts umid=uml10 eth0=tuntap,uml10-eth0 devfs=mount and it stops here:
VFS: Mounted root (ext2 filesystem) readonly.
Mounted devfs on /dev

if i take a look at the host, i can see the following:

uml1     12180  0.0  0.0     4    0 pts/4    TW   03:41   0:00 [linux-2.4.22-te]
uml1     12185  0.0  0.9 65956 4640 pts/4    S    03:41   0:00 /home/uml1/uml/linux-2.4.22-test 

uml1 12186 0.0 0.9 65956 4640 pts/4 S 03:41 0:00 /home/uml1/uml/linux-2.4.22-test

uml1 12164 99.7 0.9 65956 4640 pts/4 R 03:41 4:13 /home/uml1/uml/linux-2.4.22-test

(one uml running with nearly 100% cpu usage..)
attached strace on that one, i get:

--- SIGSEGV (Segmentation fault) @ 0 (0) --- rt_sigprocmask(SIG_UNBLOCK, [USR1], [], 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [ALRM VTALRM PROF IO], NULL, 8) = 0
getpid() = 12164
write(12, "7\0\0\0\0\1@\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 28) = 28 write(12, "6\0\0\0\0\1@\0\20\0\0\7\0\0\0\21\0\0\0\3\0\0\0\0P\\\0"..., 28) = 28
sigreturn() = ? (mask now [])
--- SIGSEGV (Segmentation fault) @ 0 (0) --- rt_sigprocmask(SIG_UNBLOCK, [USR1], [], 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [ALRM VTALRM PROF IO], NULL, 8) = 0
getpid() = 12164
write(12, "7\0\0\0\0\1@\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 28) = 28 write(12, "6\0\0\0\0\1@\0\20\0\0\7\0\0\0\21\0\0\0\3\0\0\0\0P\\\0"..., 28) = 28
sigreturn() = ? (mask now [])
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
and so on...

with mode=tt the kernel runs. Then i tried another kernel from kernels.usermodelinux.org:
linux-2.4.23-rc3-djc3-6um (nomods)
and: it works.
I talked to david and he said the kernel builds without problems which is not the case on my host. I get this error:
bugs.c: In function `disable_lcall':
bugs.c:111: error: storage size of ldt' isn't known bugs.c:118: warning: implicit declaration of function modify_ldt' bugs.c:111: warning: unused variable `ldt'

which is fixed with a patch from:
http://people.0x63.nu/~andersg/uml-minor-fixes.diff

so, for now, i don't have more ideas to solve this Problem. If someone of you has an idea or fix, please commit ;)

Thanks and regards,
Sven

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 7 lines · [email protected] said:

The host: Running vanilla 2.4.22 with host-skas3.patch (applied without any error), PROC_MM enabled.

Problem: i start the uml with: linux-2.4.22 ubd0=/home/uml1/uml/10/
root_fs ubd1=/home/uml1/uml/10/swap.disk mem=64M con1=pts umid=uml10 eth0=tuntap,uml10-eth0 devfs=mount and it stops here: VFS: Mounted root (ext2 filesystem) readonly. Mounted devfs on /dev

Every case of this I've seen has been caused by David's 2.4.21 (or so) skas patch being applied to 2.4.22. Applying my 2.4.19 skas patch has fixed the problem.

Jeff

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel