Hi,
Jeff Dike wrote:
>
> wil@... said:
> > No; looks like the UML kernel enters an endless loop right after the
> > first keystroke.
>
> Sapan Bhatia told me how to reproduce this bug. It will now die a quick
> death.
Sorry to be such a pain, but uml-patch-2.4.18-10 still appears to have
problems in this area, at least when the UML kernel is started from a
shell script. The symptoms have changed a bit, though:
(*) the problem now seems to occur just before the kernel is halted,
instead of at the first keystroke for the shell running on /dev/vc/0.
(*) sometimes, the UML kernel doesn't enter an endless loop, but only
prints a message about a failing TIOCSCTTY call.
(*) some UML runs seem completely fine.
I've added two session transcripts below; the first one ends in a
TIOCSCTTY complaint, the second one in a winch_interrupt message storm.
Please see one of my previous messages for the general setup I'm trying
to use.
- Wil
*** SESSION 1 ***
wil@...: ~/lenix$ tools/lenix -r /=fs/preinstall-root
tracing thread pid = 15768
Linux version 2.4.18-10um (wil@...) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #1 Sat Mar 23 10:45:26 CET 2002
On node 0 totalpages: 8192
zone(0): 0 pages.
zone(1): 8192 pages.
zone(2): 0 pages.
Kernel command line: ubd0=fs/preinstall-root con7=fd:7
lenix_status_file=/dev/vc/7 ro 7 root=/dev/ubd0
Calibrating delay loop... 362.52 BogoMIPS
Memory: 32244k 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 that the host ptrace works...OK
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: Diskquotas version dquot_6.4.0 initialized
devfs: v1.10 (20020120) Richard Gooch (rgooch@...)
devfs: boot_options: 0x1
pty: 256 Unix98 ptys configured
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
loop: loaded (max 8 devices)
PPP generic driver version 2.4.1
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Initializing stdio console driver
Initializing software serial port version 1
mconsole initialized on /net/home/wil/.uml/4UmSkF/mconsole
read_super_block: can't find a reiserfs filesystem on (dev 62:00, block
64, size 1024)
read_super_block: can't find a reiserfs filesystem on (dev 62:00, block
8, size 1024)
VFS: Mounted root (root-hostfs filesystem) readonly.
Mounted devfs on /dev
INIT: version 2.83 booting
/etc/init.d/rc.sysinit: starting lenix version 0.1-beta
/etc/init.d/rc.sysinit: mounting proc filesystem...
OK
INIT: Entering runlevel: 7
I have no name!@(none):/# exit
logout
winch_thread : TIOCSCTTY failed, errno = 25
register_winch : failed to write synchronization byte
INIT: Switching to runlevel: 0
INIT: Sending processes started by init the TERM signal
/etc/init.d/rc.sysexit: unmounting most filesystems...
/dev/ubd/0 umounted
OK
/etc/init.d/rc.sysexit: remaining filesystems are:
/dev/ubd/0 / root-hostfs ro 0 0
none /dev devfs rw 0 0
none /proc proc rw 0 0
/etc/init.d/rc.sysexit: unmounting proc filesystem...
OK
/etc/init.d/rc.sysexit: halting lenix version 0.1-beta
Power down.
nbd: module cleaned up.
wil@...: ~/lenix$
*** SESSION 2 ***
wil@...: ~/lenix$ tools/lenix -r /=fs/preinstall-root
tracing thread pid = 15921
Linux version 2.4.18-10um (wil@...) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #1 Sat Mar 23 10:45:26 CET 2002
On node 0 totalpages: 8192
zone(0): 0 pages.
zone(1): 8192 pages.
zone(2): 0 pages.
Kernel command line: ubd0=fs/preinstall-root con7=fd:7
lenix_status_file=/dev/vc/7 ro 7 root=/dev/ubd0
Calibrating delay loop... 362.66 BogoMIPS
Memory: 32244k 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 that the host ptrace works...OK
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: Diskquotas version dquot_6.4.0 initialized
devfs: v1.10 (20020120) Richard Gooch (rgooch@...)
devfs: boot_options: 0x1
pty: 256 Unix98 ptys configured
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
loop: loaded (max 8 devices)
PPP generic driver version 2.4.1
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Initializing stdio console driver
Initializing software serial port version 1
mconsole initialized on /net/home/wil/.uml/rKoaJZ/mconsole
read_super_block: can't find a reiserfs filesystem on (dev 62:00, block
64, size 1024)
read_super_block: can't find a reiserfs filesystem on (dev 62:00, block
8, size 1024)
VFS: Mounted root (root-hostfs filesystem) readonly.
Mounted devfs on /dev
INIT: version 2.83 booting
/etc/init.d/rc.sysinit: starting lenix version 0.1-beta
/etc/init.d/rc.sysinit: mounting proc filesystem...
OK
INIT: Entering runlevel: 7
I have no name!@(none):/# exit
logout
winch_thread : TIOCSCTTY failed, errno = 25
winch_interrupt : read failed, errno = 104
winch_interrupt : read failed, errno = 5
winch_interrupt : read failed, errno = 5
winch_interrupt : read failed, errno = 5
etc...
|