redefinition of `struct ptrace_faultinfo' with uml-2.4.22-4 + skas3
This has come up before on the lists (first report in late 2002), and nobody's ever come up with preprocessed source. Until now.
Here's my .config:
#
# Automatically generated make config: don't edit
#CONFIG_USERMODE=y
# CONFIG_ISA is not set
# CONFIG_SBUS is not set
# CONFIG_PCI is not setCONFIG_UID16=yCONFIG_RWSEM_XCHGADD_ALGORITHM=y
#
# Code maturity level options
#CONFIG_EXPERIMENTAL=y
#
# General Setup
#CONFIG_MODE_SKAS=y
# CONFIG_MODE_TT is not set
# CONFIG_STATIC_LINK is not setCONFIG_NET=yCONFIG_SYSVIPC=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_SYSCTL=y
# CONFIG_BINFMT_AOUT is not setCONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not setCONFIG_HOSTFS=yCONFIG_HPPFS=yCONFIG_MCONSOLE=y
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_HOST_2G_2G is not set
# CONFIG_UML_SMP is not set
# CONFIG_SMP is not setCONFIG_NEST_LEVEL=0CONFIG_KERNEL_HALF_GIGS=1
# CONFIG_HIGHMEM is not setCONFIG_PROC_MM=yCONFIG_KERNEL_STACK_ORDER=2
#
# Loadable module support
#
# CONFIG_MODULES is not set
#
# Character Devices
#CONFIG_STDIO_CONSOLE=yCONFIG_SSL=y
# CONFIG_DEV_ANON is not setCONFIG_FD_CHAN=yCONFIG_NULL_CHAN=yCONFIG_PORT_CHAN=yCONFIG_PTY_CHAN=yCONFIG_TTY_CHAN=yCONFIG_XTERM_CHAN=yCONFIG_CON_ZERO_CHAN="fd:0,fd:1"CONFIG_CON_CHAN="port"CONFIG_SSL_CHAN="pty"CONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256
# CONFIG_WATCHDOG is not set
# CONFIG_WATCHDOG_NOWAYOUT is not set
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_UML_WATCHDOG is not set
# CONFIG_UML_SOUND is not set
# CONFIG_SOUND is not set
# CONFIG_HOSTAUDIO is not setCONFIG_TTY_LOG=y
#
# Block Devices
#CONFIG_BLK_DEV_UBD=y
# CONFIG_BLK_DEV_UBD_SYNC is not setCONFIG_COW=yCONFIG_COW_COMMON=y
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_MMAPPER is not setCONFIG_NETDEVICES=y
#
# Network Devices
#CONFIG_UML_NET=y
# CONFIG_UML_NET_ETHERTAP is not setCONFIG_UML_NET_TUNTAP=y
# CONFIG_UML_NET_SLIP is not set
# CONFIG_UML_NET_SLIRP is not setCONFIG_UML_NET_DAEMON=y
# CONFIG_UML_NET_MCAST is not set
# CONFIG_UML_NET_PCAP is not setCONFIG_DUMMY=y
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_SLIP_COMPRESSED is not set
# CONFIG_SLIP_SMART is not set
# CONFIG_SLIP_MODE_SLIP6 is not set
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=y
# CONFIG_NETLINK_DEV is not setCONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
# CONFIG_FILTER is not setCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_FWMARK=yCONFIG_IP_ROUTE_NAT=y
# CONFIG_IP_ROUTE_MULTIPATH is not setCONFIG_IP_ROUTE_TOS=y
# CONFIG_IP_ROUTE_VERBOSE is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=yCONFIG_IP_NF_FTP=y
# CONFIG_IP_NF_AMANDA is not set
# CONFIG_IP_NF_TFTP is not setCONFIG_IP_NF_IRC=y
# CONFIG_IP_NF_QUEUE is not setCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_LIMIT=yCONFIG_IP_NF_MATCH_MAC=yCONFIG_IP_NF_MATCH_PKTTYPE=yCONFIG_IP_NF_MATCH_MARK=yCONFIG_IP_NF_MATCH_MULTIPORT=yCONFIG_IP_NF_MATCH_TOS=yCONFIG_IP_NF_MATCH_RECENT=yCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_DSCP=yCONFIG_IP_NF_MATCH_AH_ESP=yCONFIG_IP_NF_MATCH_LENGTH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_TCPMSS=yCONFIG_IP_NF_MATCH_HELPER=yCONFIG_IP_NF_MATCH_STATE=yCONFIG_IP_NF_MATCH_CONNTRACK=yCONFIG_IP_NF_MATCH_UNCLEAN=yCONFIG_IP_NF_MATCH_OWNER=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=y
# CONFIG_IP_NF_TARGET_MIRROR is not setCONFIG_IP_NF_NAT=yCONFIG_IP_NF_NAT_NEEDED=y
# CONFIG_IP_NF_TARGET_MASQUERADE is not setCONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_NAT_LOCAL=y
# CONFIG_IP_NF_NAT_SNMP_BASIC is not setCONFIG_IP_NF_NAT_IRC=yCONFIG_IP_NF_NAT_FTP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_TOS=yCONFIG_IP_NF_TARGET_ECN=yCONFIG_IP_NF_TARGET_DSCP=yCONFIG_IP_NF_TARGET_MARK=yCONFIG_IP_NF_TARGET_LOG=yCONFIG_IP_NF_TARGET_ULOG=yCONFIG_IP_NF_TARGET_TCPMSS=y
# CONFIG_IP_NF_ARPTABLES is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set
#
#
#
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
#
# Appletalk devices
#
# CONFIG_DEV_APPLETALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_LLC 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=yCONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_CSZ=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_RED=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=yCONFIG_NET_SCH_GRED=yCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_INGRESS=yCONFIG_NET_QOS=yCONFIG_NET_ESTIMATOR=yCONFIG_NET_CLS=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=yCONFIG_NET_CLS_ROUTE=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_NET_CLS_RSVP=y
# CONFIG_NET_CLS_RSVP6 is not setCONFIG_NET_CLS_POLICE=y
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
#
# File systems
#CONFIG_QUOTA=y
# CONFIG_QFMT_V2 is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW 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_BEFS_DEBUG is not set
# CONFIG_BFS_FS is not setCONFIG_EXT3_FS=yCONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_JFFS2_FS is not set
# CONFIG_CRAMFS is not setCONFIG_TMPFS=yCONFIG_RAMFS=y
# CONFIG_ISO9660_FS is not set
# CONFIG_JOLIET is not set
# CONFIG_ZISOFS is not set
# CONFIG_JFS_FS is not set
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not setCONFIG_MINIX_FS=y
# CONFIG_VXFS_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS_RW is not set
# CONFIG_HPFS_FS is not setCONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not setCONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
# CONFIG_ROMFS_FS is not setCONFIG_EXT2_FS=y
# CONFIG_SYSV_FS is not set
# CONFIG_UDF_FS is not set
# CONFIG_UDF_RW is not set
# CONFIG_UFS_FS is not set
# CONFIG_UFS_FS_WRITE is not set
#
# Network File Systems
#
# CONFIG_CODA_FS is not set
# CONFIG_INTERMEZZO_FS is not setCONFIG_NFS_FS=yCONFIG_NFS_V3=y
# CONFIG_NFS_DIRECTIO is not set
# CONFIG_ROOT_NFS is not set
# CONFIG_NFSD is not set
# CONFIG_NFSD_V3 is not set
# CONFIG_NFSD_TCP is not setCONFIG_SUNRPC=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=y
# CONFIG_SMB_FS is not set
# CONFIG_NCP_FS is not set
# CONFIG_NCPFS_PACKET_SIGNING is not set
# CONFIG_NCPFS_IOCTL_LOCKING is not set
# CONFIG_NCPFS_STRONG is not set
# CONFIG_NCPFS_NFS_NS is not set
# CONFIG_NCPFS_OS2_NS is not set
# CONFIG_NCPFS_SMALLDOS is not set
# CONFIG_NCPFS_NLS is not set
# CONFIG_NCPFS_EXTRAS is not set
# CONFIG_ZISOFS_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=y
# CONFIG_SMB_NLS is not set
# CONFIG_NLS is not set
#
# SCSI support
#
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
# CONFIG_BLK_DEV_MD is not set
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_MULTIPATH is not set
# CONFIG_BLK_DEV_LVM is not set
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Library routines
#
# CONFIG_CRC32 is not setCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=y
#
# Kernel hacking
#
# CONFIG_DEBUG_SLAB is not setCONFIG_DEBUGSYM=y
# CONFIG_PT_PROXY is not set
# CONFIG_GPROF is not set
# CONFIG_GCOV is not set
The build fails almost immediately like so:
make[1]: Entering directory `/tmp/uml/linux/arch/um/sys-i386/util'
gcc-2.95.4 -c mk_thread_user.c
gcc-2.95.4 -D__KERNEL__ -I/tmp/uml/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE -I/tmp/uml/linux/arch/um/include -Derrno=kernel_errno -I/tmp/uml/linux/arch/um/kernel/skas/include -c mk_thread_kern.c In file included from /tmp/uml/linux/include/asm/ptrace-generic.h:26,
from /tmp/uml/linux/include/asm/ptrace.h:10,
from /tmp/uml/linux/include/linux/ptrace.h:24,
from /tmp/uml/linux/include/linux/binfmts.h:4,
from /tmp/uml/linux/include/linux/sched.h:9,
from mk_thread_kern.c:3:/tmp/uml/linux/arch/um/include/skas_ptrace.h:9: redefinition of `struct ptrace_faultinfo'/tmp/uml/linux/arch/um/include/skas_ptrace.h:14: redefinition of `struct ptrace_ldt'
make[1]: *** [mk_thread_kern.o] Error 1
make[1]: Leaving directory `/tmp/uml/linux/arch/um/sys-i386/util'
make: *** [arch/um/sys-i386/util/mk_thread] Error 2
because skas_ptrace.h is being included after include/asm-um/arch/ptrace.h, which defines the same structures.
bzipped preprocessed source:
The duplicate definitions stand out clearly in here. I've tried conditionalizing the clashing definitions in skas_ptrace.h on _I386_PTRACE_H not being defined, but that falls over deeper into the build.
I'll try to track it down tomorrow if nobody else has done so.
Signature · 2 lines
`I treat debconf as a hostile imperialist agent. "ALL CONFIGS YOURS NOW CONFIGS OURS ARE."' --- Stephen J. Turnbull
On Wed, 17 Sep 2003, [email protected] muttered drunkenly:
Quoted 2 lines
This has come up before on the lists (first report in late 2002), and nobody's ever come up with preprocessed source. Until now.
I've kludged around it like so:
Index: linux/include/asm-um/ptrace-generic.h
===================================================================
RCS file: /cvsroot/user-mode-linux/linux/include/asm-um/ptrace-generic.h,v retrieving revision 1.11
include/asm-um/ptrace-generic.h +4 -0
@@ -14,6 +14,8 @@#define pt_regs pt_regs_subarch#define show_regs show_regs_subarch +#define ptrace_faultinfo ptrace_faultinfo_subarch +#define ptrace_ldt ptrace_ldt_subarch#include "asm/arch/ptrace.h"
@@ -21,6 +23,8 @@#undef show_regs#undef user_mode#undef instruction_pointer +#undef ptrace_faultinfo +#undef ptrace_ldt#include "sysdep/ptrace.h" #include "skas_ptrace.h"
However, I now have *another* problem. (This could well be a problem for -user, but I can't tell; SourceForge's useless mail archive search system is down. Again.)
loki:/mirror/uml# uml-esperi ubd0=/mirror/uml/esperi-core-cow.image,/mirror/uml/esperi-core.image umid=esperi eth0=tuntap,tap0 eth1=tuntap,tap1 Checking for the skas3 patch in the host...found Checking for /proc/mm...found Linux version 2.4.22-4um (compiler@loki) (gcc version 2.95.4 20010319 (prerelease)) #2 Thu Sep 18 10:46:56 BST 2003 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: ubd0=/mirror/uml/esperi-core-cow.image,/mirror/uml/esperi-core.image umid=esperi eth0=tuntap,tap0 root=/dev/ubd0 Calibrating delay loop... 483.69 BogoMIPS Memory: 30116k available Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for host processor cmov support...No Checking for host processor xmm support...No Checking that ptrace can change system call numbers...OK Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 Journalled Block Device driver loaded pty: 256 Unix98 ptys configured Initializing software serial port version 1 mconsole (version 2) initialized on /root/.uml/esperi/mconsole Creating "/mirror/uml/esperi-core-cow.image" as COW file for "/mirror/uml/esperi-core.image" Partition check: ubda: unknown partition table io_thread - read failed, err = 9 Kernel panic: Kernel mode signal 8
<6>Initializing stdio console driver
Netdevice 0 : TUN/TAP backend -
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)ip_conntrack version 2.1 (235 buckets, 1880 max) - 288 bytes per conntrackip_tables: (C) 2000-2002 Netfilter core teamipt_recent v0.3.1: Stephen Frost <[email protected]>. http://snowman.net/projects/ipt_recent/
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
[freeze]
It's not completely repeatable; I get a boot about 20% of the time (identical log up to the entry to userspace except for the absence of the read failed and panic messages), and this the rest of the time. If I turn TUN/TAP off, the problem goes away, so it looks like I'm using TUN/TAP wrongly.
I get the same failure mode whether I say
eth0=tuntap,tap0
or whether I let uml_net do the magic via
eth0=tuntap,,,192.168.14.20
I presume something is wrong with the TUN/TAP code.
Signature · 12 lines
`I treat debconf as a hostile imperialist agent. "ALL CONFIGS YOURS NOW CONFIGS OURS ARE."' --- Stephen J. Turnbull ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · [email protected] said:
This has come up before on the lists (first report in late 2002), and nobody's ever come up with preprocessed source. Until now.
This is nasty because the UML tree has to assume that the i386 tree doesn't have ptrace_faultinfo in it. Since you applied the host skas patch to your UML tree, that assumption is broken.
So, for now, I would say that you shouldn't try to build both host kernels and UML kernels from a tree which has that patch in it.
Jeff
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
On Sun, 09 Nov 2003, Jeff Dike yowled:
Quoted 7 lines
Quoted 2 lines · [email protected] said:
This has come up before on the lists (first report in late 2002), and nobody's ever come up with preprocessed source. Until now.
This is nasty because the UML tree has to assume that the i386 tree doesn't have
ptrace_faultinfoin it. Since you applied the host skas patch to your UML tree, that assumption is broken.
OK. Who knows, maybe this caused some of my bizarre crashes (grasping in the dark here)...
Quoted 2 lines
So, for now, I would say that you shouldn't try to build both host kernels and UML kernels from a tree which has that patch in it.
OK. I should go up to 2.4.22-5 anyway; this gives me an excuse. :)
(I reverted every other patch, but considered that *of course* skas wouldn't clash with other patches involved in the same project. Oops.)
Signature · 14 lines
`Me, I want exploding spaceships and pulverized worlds and clashes of
billion-year-old empires *and* competently written sentences.'
--- Matt Austern
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel