Hi, I think I solved it. I also think that I found a bug. Here's what I did and why I think it's a bug:
I thought the problem might be related to 2.6.17-9 so I downloaded 2.6.16 and compiled it. It's behavior was different but it still wouldn't boot. It would give me the following: 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 PROT_EXEC mmap in /tmp...OK Checking for the skas3 patch in the host: - /proc/mm...not found - PTRACE_FAULTINFO...not found - PTRACE_LDT...not found UML running in SKAS0 mode and then hang forever (adding stderr=1 didn't show anything after the UML running in SKAS0 mode line). Running top would show me 90%+ CPU utilization on the host. I then tried re-compiling both 2.6.17-9 and 2.6.16 again. This time, I removed support for TT (CONFIG_MODE_TT is not set). I had included it in both 2.6.17-9 and 2.6.16 in case I wanted to run this UML host on a 2.4 kernel which only had TT support (not SKAS0 support). Both kernels compiled fine and they both boot without any problems :D The strange thing is that both of them show "UML running in SKAS0 mode" but it looks like they might be using TT or that TT is somehow interacting with SKAS0 resulting in the incorrect behavior in both the kernels that I compiled. Do you think that this is the reason? > Thanks. I added stderr=1 to the kernel line and it gives me the > following: > > io scheduler noop registered > io scheduler anticipatory registered > io scheduler deadline registered > io scheduler cfq registered (default) > Kernel panic - not syncing: Segfault with no mm > <6>Stopping all CPUs...done > > EIP: 0073:[<a04271b1>] CPU: 0 Not tainted ESP: 007b:b7fa6fc0 EFLAGS: > 00200246 > Not tainted > EAX: 00000000 EBX: 00001788 ECX: 00000013 EDX: 00001788 > ESI: 00001784 EDI: 00000000 EBP: 00000000 DS: 007b ES: 007b > a0d2b7b0: [<a005c884>] notifier_call_chain+0x1a/0x2d > a0d2b7cc: [<a004e124>] panic+0x54/0xd1 > a0d2b7e4: [<a001bc07>] segv+0x10c/0x25c > a0d2b7fc: [<a00817e8>] kmem_cache_alloc+0x23/0x54 > a0d2b87c: [<a001ba3d>] segv_handler+0x0/0xbe > a0d2b884: [<a001baf5>] segv_handler+0xb8/0xbe > a0d2b894: [<a04271b1>] kill+0x11/0x20 > a0d2b8a8: [<a00406e0>] sig_handler_common_skas+0xbc/0xd5 > a0d2b8cc: [<a003d5f1>] sig_handler+0x48/0x53 > a0d2b91c: [<a00c1f88>] sysfs_create_group+0xf/0xa4 > a0d2b964: [<a0047d47>] __activate_task+0x1d/0x27 > a0d2b978: [<a0047eb5>] activate_task+0x8b/0x95 > a0d2b99c: [<a0426eba>] __libc_longjmp+0x3a/0x60 > a0d2b9bc: [<a003fdeb>] switch_threads+0x3b/0x4e > a0d2b9e0: [<a003fddd>] switch_threads+0x2d/0x4e > a0d2b9f0: [<a047b901>] schedule+0x4e5/0x50b > a0d2ba1c: [<a0047d47>] __activate_task+0x1d/0x27 > a0d2ba20: [<a006cfb3>] free_pages_bulk+0x15/0x1d7 > a0d2ba40: [<a006d19d>] free_one_page+0x28/0x2c > a0d2ba5c: [<a006d260>] __free_pages_ok+0xbf/0xd6 > a0d2ba8c: [<a006dc86>] __free_pages+0x49/0x4c > a0d2ba98: [<a0080860>] kmem_freepages+0xa2/0xc4 > a0d2baa8: [<a0081a50>] kmem_cache_free+0x51/0x58 > a0d2bac4: [<a00816f1>] free_block+0x8f/0xcc > a0d2bae8: [<a003d50f>] set_signals+0x18/0x28 > a0d2baf0: [<a0081812>] kmem_cache_alloc+0x4d/0x54 > a0d2bb04: [<a009bb39>] alloc_inode+0x29/0x17f > a0d2bb08: [<a009bc07>] alloc_inode+0xf7/0x17f > a0d2bb20: [<a009c3fc>] new_inode+0xc/0x77 > a0d2bb24: [<a009c40d>] new_inode+0x1d/0x77 > a0d2bb28: [<a00aa2bb>] inotify_d_instantiate+0x3b/0x5d > a0d2bb30: [<a009ad94>] d_instantiate+0x62/0x94 > a0d2bb48: [<a00bffb4>] sysfs_create+0x92/0xdc > a0d2bb64: [<a003d50f>] set_signals+0x18/0x28 > a0d2bb6c: [<a0081812>] kmem_cache_alloc+0x4d/0x54 > a0d2bb80: [<a00c0aff>] sysfs_new_dirent+0x17/0x62 > a0d2bb98: [<a00c0bb4>] sysfs_make_dirent+0x18/0x70 > a0d2bbd0: [<a000e1a4>] topology_add_dev+0x12/0x17 > a0d2bbdc: [<a027f575>] topology_cpu_callback+0x21/0x34 > a0d2bbe8: [<a000e1dd>] topology_sysfs_init+0x1d/0x41 > a0d2bbfc: [<a0001679>] do_initcalls+0x50/0xf5 > a0d2bc24: [<a0017180>] init+0x0/0x13c > a0d2bc34: [<a0017180>] init+0x0/0x13c > a0d2bc38: [<a00171ca>] init+0x4a/0x13c > a0d2bc50: [<a003cbfb>] run_kernel_thread+0x43/0x4d > a0d2bc64: [<a0017180>] init+0x0/0x13c > a0d2bc70: [<a003cbda>] run_kernel_thread+0x22/0x4d > a0d2bce8: [<a0048a2a>] schedule_tail+0x3b/0x12e > a0d2bcfc: [<a001e877>] new_thread_handler+0x7d/0xa5 > a0d2bd00: [<a0017180>] init+0x0/0x13c > a0d2bd5c: [<a04271b1>] kill+0x11/0x20 > > My host kernel version is 2.6.14-kanotix-9 and I'm compiling the latest > version of kernel for UML (2.6.17-9). When I looked at > http://user-mode-linux.sourceforge.net/new/problems.html, it recommended > I turn off GPROF or upgrade to a newer version of kernel but: > a) grep -i GPROF .config for the UML kernel doesn't give me any output > b) grep -i GPROF on the config file for my host kernel also doesn't > give me any output > c) I'm using hte latest version of UML by using the latest stable > version of the kernel (2.6.17-9). > > Any ideas? Thanks for your help. On Sat, 19 Aug 2006 20:44:25 -0400, "Jeff Dike" <[EMAIL PROTECTED]> said: > On Sat, Aug 19, 2006 at 11:58:44AM -0700, Mathew Brown wrote: > > 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 > > - PTRACE_FAULTINFO...not found > > - PTRACE_LDT...not found > > UML running in SKAS0 mode > > Checking that ptrace can change system call numbers...OK > > Checking syscall emulation patch for ptrace...OK > > Checking advanced syscall emulation patch for ptrace...OK > > > > Any ideas? Thanks. > > Can you add "stderr=1" to the command line? > > Jeff -- Mathew Brown [EMAIL PROTECTED] -- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user