From: Dennis M. <de...@mu...> - 2004-05-11 21:30:30
|
Here is gdb output for the problem I'm getting. I'm using host 2.6.6 w/ skas. This is the 2.6.4 guest kernel. Keep in mind I'm running 2.6.4 on other machines and it works just fine. I can't think of any reason it shouldn't on this one either but maybe someone else can. If I run the program not in debug mode it goes into the background immediately. If I type fg at the prompt, it seg faults: --bash-- denlin uml # ./linux ubd0=./reiser_fs root=/dev/ubd/0 Checking for the skas3 patch in the host...found Checking for /proc/mm...found [1]+ Stopped ./linux ubd0=./reiser_fs root=/dev/ubd/0 denlin uml # fg ./linux ubd0=./reiser_fs root=/dev/ubd/0 Segmentation fault --bash-- The same thing happens each time I try to debug. I get to the process.c:180 and gdb starts looking kind of funny. The only breakpoint I set was the one where I started the debug output below ( um_arch:386). The debugger jumps back to line 103, 108 a few times then I get SIGSTOP. Here is the gdb output: --gdb-- Breakpoint 2, linux_main (argc=-2145784052, argv=0x80000000) at arch/um/kernel/um_arch.c:386 386 task_protections((unsigned long) &init_thread_info); (gdb) n 383 init_task.thread.kernel_stack = (unsigned long) &init_thread_info + (gdb) 386 task_protections((unsigned long) &init_thread_info); (gdb) 387 os_flush_stdout(); (gdb) 389 return(CHOOSE_MODE(start_uml_tt(), start_uml_skas())); (gdb) s start_uml_skas () at arch/um/kernel/skas/process_kern.c:165 165 start_userspace(0); (gdb) s start_userspace (cpu=0) at arch/um/kernel/skas/process.c:108 108 stack = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE | PROT_EXEC, (gdb) n 103 { (gdb) 108 stack = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE | PROT_EXEC, (gdb) 103 { (gdb) 108 stack = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE | PROT_EXEC, (gdb) 110 if(stack == MAP_FAILED) (gdb) 108 stack = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE | PROT_EXEC, (gdb) 110 if(stack == MAP_FAILED) (gdb) 114 pid = clone(userspace_tramp, (void *) sp, (gdb) 112 sp = (unsigned long) stack + PAGE_SIZE - sizeof(void *); (gdb) 114 pid = clone(userspace_tramp, (void *) sp, (gdb) Detaching after fork from child process 7137. Program received signal SIGSTOP, Stopped (signal). 0xffffe410 in ?? () --gdb-- Any ideas? -Dennis Dennis Muhlestein wrote: > I ran uml ok up until my host went from the 2.6.3 to 2.6.4 kernel. > I have a pentium 4 machine that is hyperthreaded. (1.5 gigs ram) > > When I try to start the uml kernel, I get a seg fault: > > Checking for the skas3 patch in the host...found > Checking for /proc/mm...found > Kernel virtual memory size shrunk to 124780544 bytes > Segmentation fault > > I've tried to debug the kernel to see where it is happening, but am > having trouble forking to the correct child process. When I set the > follow-fork-mode to child, I always end up in a different process from > the one that is seg faulting and I don't quite know enough about the > uml kernel to continue figuring this out. > > Anyway, I've attached the .config file I used to build the guest > kernel. It is for stock 2.6.4 kernel with uml-patch 2.6.4-1 > > I'm using the same guest kernel config on a separate machine that is > an pentium 4 2.0 g machine (not hyperthreaded) and it works fine. So > I think the only difference is the smp configuration in my host > kernel. I've tried various configurations with highmem on/off and > CONFIG_KERNEL_HALF_GIGS to 1 or 2 and it doesn't seem to make any > difference. > > My host is patched with the blaisorblade patch here: > http://www.user-mode-linux.org/~blaisorblade/patches/host-skas3-2.6.3-v1.patch > > > I've seen references in the mailing lists to bug fixes with smp and > this match but I'm not having luck with it after the 2.6.4 kernels. > It worked pre 2.6.4 ok. > > Thanks > > -Dennis > >------------------------------------------------------------------------ > ># ># Automatically generated make config: don't edit ># >CONFIG_USERMODE=y >CONFIG_MMU=y >CONFIG_UID16=y >CONFIG_RWSEM_GENERIC_SPINLOCK=y > ># ># UML-specific options ># ># CONFIG_MODE_TT is not set ># CONFIG_STATIC_LINK is not set >CONFIG_MODE_SKAS=y >CONFIG_NET=y >CONFIG_BINFMT_ELF=y >CONFIG_BINFMT_MISC=y >CONFIG_HOSTFS=y >CONFIG_HPPFS=y >CONFIG_MCONSOLE=y >CONFIG_MAGIC_SYSRQ=y ># CONFIG_HOST_2G_2G is not set ># CONFIG_UML_SMP is not set ># CONFIG_SMP is not set >CONFIG_NEST_LEVEL=0 >CONFIG_KERNEL_HALF_GIGS=2 ># CONFIG_HIGHMEM is not set >CONFIG_PROC_MM=y >CONFIG_KERNEL_STACK_ORDER=2 >CONFIG_UML_REAL_TIME_CLOCK=y > ># ># Code maturity level options ># >CONFIG_EXPERIMENTAL=y >CONFIG_CLEAN_COMPILE=y >CONFIG_STANDALONE=y >CONFIG_BROKEN_ON_SMP=y > ># ># General setup ># >CONFIG_SWAP=y >CONFIG_SYSVIPC=y >CONFIG_BSD_PROCESS_ACCT=y >CONFIG_SYSCTL=y >CONFIG_LOG_BUF_SHIFT=14 ># CONFIG_HOTPLUG is not set >CONFIG_IKCONFIG=y >CONFIG_IKCONFIG_PROC=y ># CONFIG_EMBEDDED is not set >CONFIG_KALLSYMS=y >CONFIG_FUTEX=y >CONFIG_EPOLL=y >CONFIG_IOSCHED_NOOP=y >CONFIG_IOSCHED_AS=y >CONFIG_IOSCHED_DEADLINE=y ># CONFIG_CC_OPTIMIZE_FOR_SIZE is not set > ># ># Loadable module support ># >CONFIG_MODULES=y >CONFIG_MODULE_UNLOAD=y ># CONFIG_MODULE_FORCE_UNLOAD is not set >CONFIG_OBSOLETE_MODPARM=y ># CONFIG_MODVERSIONS is not set >CONFIG_KMOD=y > ># ># Generic Driver Options ># > ># ># Character Devices ># >CONFIG_STDIO_CONSOLE=y >CONFIG_SSL=y >CONFIG_FD_CHAN=y >CONFIG_NULL_CHAN=y >CONFIG_PORT_CHAN=y >CONFIG_PTY_CHAN=y >CONFIG_TTY_CHAN=y >CONFIG_XTERM_CHAN=y >CONFIG_CON_ZERO_CHAN="fd:0,fd:1" >CONFIG_CON_CHAN="xterm" >CONFIG_SSL_CHAN="pty" >CONFIG_UNIX98_PTYS=y >CONFIG_UNIX98_PTY_COUNT=256 ># CONFIG_WATCHDOG is not set >CONFIG_UML_SOUND=y >CONFIG_SOUND=y >CONFIG_HOSTAUDIO=y > ># ># Block Devices ># >CONFIG_BLK_DEV_UBD=y ># CONFIG_BLK_DEV_UBD_SYNC is not set >CONFIG_BLK_DEV_COW_COMMON=y >CONFIG_BLK_DEV_LOOP=y >CONFIG_BLK_DEV_NBD=y ># CONFIG_BLK_DEV_RAM is not set ># CONFIG_MMAPPER is not set >CONFIG_NETDEVICES=y > ># ># UML Network Devices ># >CONFIG_UML_NET=y ># CONFIG_UML_NET_ETHERTAP is not set >CONFIG_UML_NET_TUNTAP=y ># CONFIG_UML_NET_SLIP is not set ># CONFIG_UML_NET_DAEMON is not set ># CONFIG_UML_NET_MCAST is not set ># CONFIG_UML_NET_PCAP is not set ># CONFIG_UML_NET_SLIRP is not set > ># ># Networking support ># > ># ># Networking options ># >CONFIG_PACKET=y >CONFIG_PACKET_MMAP=y ># CONFIG_NETLINK_DEV is not set >CONFIG_UNIX=y ># CONFIG_NET_KEY is not set >CONFIG_INET=y ># CONFIG_IP_MULTICAST is not set ># CONFIG_IP_ADVANCED_ROUTER is not set ># CONFIG_IP_PNP is not set ># CONFIG_NET_IPIP is not set ># CONFIG_NET_IPGRE is not set ># CONFIG_ARPD is not set ># CONFIG_INET_ECN is not set ># CONFIG_SYN_COOKIES is not set ># CONFIG_INET_AH is not set ># CONFIG_INET_ESP is not set ># CONFIG_INET_IPCOMP is not set ># CONFIG_IPV6 is not set ># CONFIG_DECNET is not set ># CONFIG_BRIDGE is not set ># CONFIG_NETFILTER is not set > ># ># SCTP Configuration (EXPERIMENTAL) ># >CONFIG_IPV6_SCTP__=y ># CONFIG_IP_SCTP is not set ># CONFIG_ATM is not set ># CONFIG_VLAN_8021Q is not set ># CONFIG_LLC2 is not set ># CONFIG_IPX is not set ># CONFIG_ATALK is not set ># CONFIG_X25 is not set ># CONFIG_LAPB is not set ># CONFIG_NET_DIVERT is not set ># CONFIG_ECONET is not set ># CONFIG_WAN_ROUTER is not set ># CONFIG_NET_FASTROUTE is not set ># CONFIG_NET_HW_FLOWCONTROL is not set > ># ># QoS and/or fair queueing ># ># CONFIG_NET_SCHED is not set > ># ># Network testing ># ># CONFIG_NET_PKTGEN is not set >CONFIG_DUMMY=y ># CONFIG_BONDING is not set ># CONFIG_EQUALIZER is not set >CONFIG_TUN=y > ># ># Ethernet (10 or 100Mbit) ># >CONFIG_NET_ETHERNET=y >CONFIG_MII=y > ># ># Ethernet (1000 Mbit) ># > ># ># Ethernet (10000 Mbit) ># ># CONFIG_PPP is not set ># CONFIG_SLIP is not set > ># ># Wireless LAN (non-hamradio) ># ># CONFIG_NET_RADIO is not set > ># ># Token Ring devices ># ># CONFIG_SHAPER is not set > ># ># Wan interfaces ># ># CONFIG_WAN is not set > ># ># Amateur Radio support ># ># CONFIG_HAMRADIO is not set > ># ># IrDA (infrared) support ># ># CONFIG_IRDA is not set > ># ># Bluetooth support ># ># CONFIG_BT is not set > ># ># File systems ># >CONFIG_EXT2_FS=y ># CONFIG_EXT2_FS_XATTR is not set ># CONFIG_EXT3_FS is not set ># CONFIG_JBD is not set >CONFIG_REISERFS_FS=y ># CONFIG_REISERFS_CHECK is not set ># CONFIG_REISERFS_PROC_INFO is not set ># CONFIG_JFS_FS is not set ># CONFIG_XFS_FS is not set >CONFIG_MINIX_FS=y ># CONFIG_ROMFS_FS is not set ># CONFIG_QUOTA is not set ># CONFIG_AUTOFS_FS is not set >CONFIG_AUTOFS4_FS=y > ># ># CD-ROM/DVD Filesystems ># ># CONFIG_ISO9660_FS is not set ># CONFIG_UDF_FS is not set > ># ># DOS/FAT/NT Filesystems ># ># CONFIG_FAT_FS is not set ># CONFIG_NTFS_FS is not set > ># ># Pseudo filesystems ># >CONFIG_PROC_FS=y >CONFIG_PROC_KCORE=y >CONFIG_DEVFS_FS=y >CONFIG_DEVFS_MOUNT=y ># CONFIG_DEVFS_DEBUG is not set ># CONFIG_DEVPTS_FS_XATTR is not set >CONFIG_TMPFS=y ># CONFIG_HUGETLB_PAGE is not set >CONFIG_RAMFS=y > ># ># Miscellaneous filesystems ># ># CONFIG_ADFS_FS is not set ># CONFIG_AFFS_FS is not set ># CONFIG_HFS_FS is not set ># CONFIG_HFSPLUS_FS is not set ># CONFIG_BEFS_FS is not set ># CONFIG_BFS_FS is not set ># CONFIG_EFS_FS is not set ># CONFIG_CRAMFS is not set ># CONFIG_VXFS_FS is not set ># CONFIG_HPFS_FS is not set ># CONFIG_QNX4FS_FS is not set ># CONFIG_SYSV_FS is not set ># CONFIG_UFS_FS is not set > ># ># Network File Systems ># ># CONFIG_NFS_FS is not set ># CONFIG_NFSD is not set ># CONFIG_EXPORTFS is not set >CONFIG_SMB_FS=y ># CONFIG_SMB_NLS_DEFAULT is not set ># CONFIG_CIFS is not set ># CONFIG_NCP_FS is not set ># CONFIG_CODA_FS is not set ># CONFIG_AFS_FS is not set > ># ># Partition Types ># ># CONFIG_PARTITION_ADVANCED is not set >CONFIG_MSDOS_PARTITION=y > ># ># Native Language Support ># >CONFIG_NLS=y >CONFIG_NLS_DEFAULT="iso8859-1" ># CONFIG_NLS_CODEPAGE_437 is not set ># CONFIG_NLS_CODEPAGE_737 is not set ># CONFIG_NLS_CODEPAGE_775 is not set ># CONFIG_NLS_CODEPAGE_850 is not set ># CONFIG_NLS_CODEPAGE_852 is not set ># CONFIG_NLS_CODEPAGE_855 is not set ># CONFIG_NLS_CODEPAGE_857 is not set ># CONFIG_NLS_CODEPAGE_860 is not set ># CONFIG_NLS_CODEPAGE_861 is not set ># CONFIG_NLS_CODEPAGE_862 is not set ># CONFIG_NLS_CODEPAGE_863 is not set ># CONFIG_NLS_CODEPAGE_864 is not set ># CONFIG_NLS_CODEPAGE_865 is not set ># CONFIG_NLS_CODEPAGE_866 is not set ># CONFIG_NLS_CODEPAGE_869 is not set ># CONFIG_NLS_CODEPAGE_936 is not set ># CONFIG_NLS_CODEPAGE_950 is not set ># CONFIG_NLS_CODEPAGE_932 is not set ># CONFIG_NLS_CODEPAGE_949 is not set ># CONFIG_NLS_CODEPAGE_874 is not set ># CONFIG_NLS_ISO8859_8 is not set ># CONFIG_NLS_CODEPAGE_1250 is not set ># CONFIG_NLS_CODEPAGE_1251 is not set ># CONFIG_NLS_ISO8859_1 is not set ># CONFIG_NLS_ISO8859_2 is not set ># CONFIG_NLS_ISO8859_3 is not set ># CONFIG_NLS_ISO8859_4 is not set ># CONFIG_NLS_ISO8859_5 is not set ># CONFIG_NLS_ISO8859_6 is not set ># CONFIG_NLS_ISO8859_7 is not set ># CONFIG_NLS_ISO8859_9 is not set ># CONFIG_NLS_ISO8859_13 is not set ># CONFIG_NLS_ISO8859_14 is not set ># CONFIG_NLS_ISO8859_15 is not set ># CONFIG_NLS_KOI8_R is not set ># CONFIG_NLS_KOI8_U is not set ># CONFIG_NLS_UTF8 is not set > ># ># Security options ># ># CONFIG_SECURITY is not set > ># ># Cryptographic options ># ># CONFIG_CRYPTO is not set > ># ># Library routines ># ># CONFIG_CRC32 is not set > ># ># SCSI support ># ># CONFIG_SCSI is not set > ># ># Multi-device support (RAID and LVM) ># ># CONFIG_MD is not set > ># ># Memory Technology Devices (MTD) ># ># CONFIG_MTD is not set > ># ># Kernel hacking ># ># CONFIG_DEBUG_SLAB is not set ># CONFIG_DEBUG_SPINLOCK is not set >CONFIG_DEBUG_INFO=y >CONFIG_FRAME_POINTER=y >CONFIG_PT_PROXY=y ># CONFIG_GPROF is not set ># CONFIG_GCOV is not set > > |